Zoom to - default scale?
Apologies if this has been asked previously - I can't seem to find anything specifically on this other than setting scales per each layer though…
so, I'm wondering if anyone out there has worked out how to set the zoom to scale of results, for layers (points in particular) - to a ‘global’ scale.
The problem arises when you click on a result from a search for example, and the map just does not zoom in enough to a feature. I can, yes, set a specific zoom to scale on that layer, but with 200+ layers in the mix, it gets kinda tedious.
Is there a way of configuring ALL layer types to zoom to a particular default scale (or feature+buffer)?
any tips and or tricks welcome.
There's also the problem (we see) of the feature not highlighting if the layer is not turned on, but I've added my thoughts on that to another thread that I hope is also considered!
cheers
-
Hi Gareth,
I'm not sure if this is what you need:
You could add the following command chain as a click event in your results list:[
“map.zoom-to-features”,
{
“name”: “map.zoom-to-scale”,
“arguments”: {
“scale”: 2000
}
}
]When you click on a result in your results list, it will zoom in to the defined scale for that result. Of course, it won't be able to distinguish between points and larger features. To do that, you’d need to create a workflow that first checks the geometry type and only zooms to the set scale if the geometry is a point.
Cheers
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
1 Kommentar