Zum Hauptinhalt gehen

Zoom to - default scale?

Kommentare

1 Kommentar

  • S. Burgert

    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.