Select to view content in your preferred language

Is there not a way to have different operational layers for each basemap?

1184
5
08-13-2014 01:40 PM
JoshWhite
Honored Contributor

I'm frustrated that I cannot use a different operational layer over different basemaps.  The Imagery webmaps require relatively vivid colors for overlaying layers.  The Streets (General Purpose) basemap looks better with duller colors.  I've created a perfect overlay operational layer for the Streets basemap but don't understand how to change which layers are visible for each basemap.  My only other option would be to create separate webmaps for each basemap which is a horrible workaround.  Am I missing something?

Josh White, AICP
Principal Planner

City of Arkansas City
0 Kudos
5 Replies
RobertScheitlin__GISP
MVP Emeritus

Josh,

   If the operational layers are reference data for the basemap then you can assign the same label to the operational layer as the basemap and both layers will act as one (i.e. turn on and off together). If that is not what you are after (which it does not sound like it), then the only way to do this is by modifying the viewers source code to handle this.

0 Kudos
JoshWhite
Honored Contributor

Well, that method might work for me.  I'll try it out and see what happens.

Josh White, AICP
Principal Planner

City of Arkansas City
0 Kudos
JoshWhite
Honored Contributor

That seems to work.  As long as I make only one of the operational layers and one basemap layer visible="true" it seems to work.  That is until I tried the Identify widget which doesn't seem to recognize the operational layer anymore.  The other layers that have different labels still work just fine.  Is this the issue that would require source code changes?  I guess I could have another layer for those layers that has no symbology but that stinks if that is what I have to do.  Seemed like such a good idea at the time.

Josh White, AICP
Principal Planner

City of Arkansas City
0 Kudos
RobertScheitlin__GISP
MVP Emeritus

Josh,

   There is just no good OTB solution from what you are trying to do. The code change I actually had in mind was in the MapManager.mxml watch for the AppEvent BASEMAP_SWITCH and based on the basemap choose turn off and on certain operational layers.

JoshWhite
Honored Contributor

Well, I appreciate your help and understand it is a limitation of the Flex Viewer that could be enhanced only by doing customization, I can make due with the single operational layer for each basemap, it works, its just not as visually appealing.

Josh White, AICP
Principal Planner

City of Arkansas City
0 Kudos