Web-Map-Custom-Element icon indicating copy to clipboard operation
Web-Map-Custom-Element copied to clipboard

Map Query API + zooming to features returned to query

Open ahmadayubi opened this issue 4 years ago • 2 comments

When a feature is returned from a query, the given feature should be focused/zoomed into view. The webpage author should also be able to decide whether a queried feature should be focused or not, through some facility.

ahmadayubi avatar Apr 27 '21 19:04 ahmadayubi

Related: https://github.com/Maps4HTML/Web-Map-Custom-Element/issues/482.

Malvoz avatar Oct 21 '21 00:10 Malvoz

Also possibly related. A "Map Query API" should really just be a querySelector, I believe. The API for (one or more) features could be based on returning the extent of that set, which could be rendered by a mapml-viewer.fitExtent(extent), perhaps (the latter function doesn't exist yet, but I think it might have been / might yet be useful for development of Aliyan's client)

prushforth avatar Oct 21 '21 17:10 prushforth