Skip to main content

Setting Extent for Layer Themes

Comments

3 comments

  • Nico Burgerhart

    You can use a startup workflow and display a list of layer themes to the user. When the user selects a layer theme, you can use the external command SwitchToLayerTheme to switch to the selected layer theme, and zoom to an extent specified in your workflow for the layer theme.

    0
  • Permanently deleted user

    Instead of allowing the users to select the theme from the table of content, I would suggest creating a html page with the different themes as a separate link. The URL for each theme will be the theme you want plus the extent

     

    so theme 1 is http://yoursite/viewer=viewername&LayerTheme=0&extent=minx,miny,maxy,maxy

     

    theme 2 is http://yoursite/viewer=viewername&LayerTheme=1&extent=minx,miny,maxy,maxy

     

    However, if the only thing that changes is the extent from theme to theme, probably better to create bookmarks
    0
  • Permanently deleted user
    Hey Jason,

     

    Did you ever get this working? I'd like to do the same thing.
    0

Please sign in to leave a comment.