mirror of
https://github.com/bilawalsidhu/gods-eye-view.git
synced 2026-11-16 08:12:24 +00:00
Follow a local GeoJSON feature on double-click through the camera port
A double-click on a point or polygon of a local GeoJSON layer follows it again, as the default renderer followed the loader's entities: looking at the centre of what the feature draws, north up, pitched down 45 degrees, at the range that fits it in view. A line is zoomed to at once instead. The layer acts only while the renderer's own double-click follow is on, stops a follow it started when disabled, and stops listening when destroyed.
This commit is contained in:
1 parent
c5fffae09e
commit
abef2800fb
5 files changed
+277
-5
No files matched your search
@@ -56,7 +56,11 @@ Cesium viewer with no renderer bound loads
|
||||
`gods-eye-view/render/cesium/unbound` once first; until then the layer reports
|
||||
an error naming it, as it does for a dataset it cannot load.
|
||||
A selected feature is the context record its draw item carries as `meta`; the
|
||||
layer no longer sets the viewer's `selectedEntity`.
|
||||
layer no longer sets the viewer's `selectedEntity`. While the renderer's own
|
||||
double-click follow is on, a double-click follows a point or polygon through
|
||||
the camera port, looking at the centre of what it draws (stem included), framed
|
||||
as the default renderer framed an entity it began following, and zooms to a
|
||||
line, which has no stem to follow.
|
||||
Features keep their own simplestyle `fill`, `fill-opacity`, `stroke`,
|
||||
`stroke-opacity`, `stroke-width`, `marker-color` and `marker-size`, given as
|
||||
hex, `rgb()` or `hsl()` colours or by the CSS colour names the default renderer
|
||||
|
||||
Reference in new issue
Block a user