Skip to main content

Change ZoomToFeature so that it .expand(s) more?

Comments

1 comment

  • Permanently deleted user
    Hi Michael,

     

    I’m not aware of the existence of that setting but I can give you a couple of idea/work around:

     

    - If you need to use that command in a specific place or workflow you could think of using SetMapExtent or ZoomToExtent commands and as parameter you could pass something like MyFeature.Geometry.Extent.Expand(1.50)

     

    - If you want ZoomToFeature always zoom out a bit, you might want to create a custom module that does that for you using command above and replace your custom command instead of ZoomToFeature in json.js files where needed

     

    I hope this helps
    0

Please sign in to leave a comment.