You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
When "initialView" is set in the "viewSettings" of the map config,
and the "overrideGeojsonSource" method is used to replace a GeoJSON data layer,
then:
Zoom to the extent of the new data layer
Change the "Home" button to zoom to that extent.
Implementation UI
When creating a map manually with "createMapFromConfig", and then using "overrideGeojsonSource", this zoom does NOT happen automatically, and the Home button ("Reset to initial view") ISN'T changed to new extent.
However, when the map is created using cgpv.init, and then using "overrideGeojsonSource", this DOES automatically zoom to the new extent, and the Home button IS changed. (@DamonU2 is surprised that this happens here at all, so it might be accidental).
For an example of this good behaviour using cgpv.init, see this DMP web page
If you'd like copies of the underlying code, please ask. Thanks
The text was updated successfully, but these errors were encountered:
Is there an existing issue for this?
Who request this Feature
DMP tool (Data Management Plan)
User Story
When "initialView" is set in the "viewSettings" of the map config,
and the "overrideGeojsonSource" method is used to replace a GeoJSON data layer,
then:
Implementation UI
When creating a map manually with "createMapFromConfig", and then using "overrideGeojsonSource", this zoom does NOT happen automatically, and the Home button ("Reset to initial view") ISN'T changed to new extent.
However, when the map is created using cgpv.init, and then using "overrideGeojsonSource", this DOES automatically zoom to the new extent, and the Home button IS changed. (@DamonU2 is surprised that this happens here at all, so it might be accidental).
For an example of this good behaviour using cgpv.init, see this DMP web page
If you'd like copies of the underlying code, please ask. Thanks
The text was updated successfully, but these errors were encountered: