Setting Extent for Layer Themes
Apologies if this is answered elsewhere, I couldn't find it if it was.
Currently our initial extent covers an area of several states. However, we just implemented some layer themes more some specific project areas, and I'm wanting to make the map zoom to the specific area whenever the user selects the Project Area layer theme.
Is this possible to accomplish, and if so, how?
Thanks!
-
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 -
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 bookmarks0 -
Hey Jason,
Did you ever get this working? I'd like to do the same thing.0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
3 Kommentare