{{ message }}
Add viewer_open as new Kind#855
Merged
Merged
Conversation
Contributor
tariqksoliman
requested changes
Jan 29, 2026
tariqksoliman
left a comment
Member
There was a problem hiding this comment.
Looks good but I'm seeing that when selecting a feature with the viewer_open kind, if I pan or zoom away from the feature while it's still selected, it automatically snaps back to the feature. Could you make it so that it doesn't keep fixating on the features after the initial selection. Thanks!
tariqksoliman
approved these changes
Jan 29, 2026
tariqksoliman
left a comment
Member
There was a problem hiding this comment.
I couldn't replicate the issue I found so I'm approving.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.

This adds
viewer_openas a new Kind. This will zoom to a clicked feature and expand the Viewer panel if it is not already open.This works on GeoJSON features with the following geometry types: Point, LineString, Polygon, MultiPoint, MultiLineString, and MultiPolygon.
For points, the map will zoom to the zoom level set in "Zoom Level of Map Scale" (found under the UI configuration), if it is set, otherwise it will use the current zoom level of the map. For all other geometry types, the map will zoom to the bounds of the feature.