Labeling color based on base map
Is there a way to have the labeling on a layer change color depending on the base map that's chosen, i.e. white font on imagery & black on street?
A really good example of this is Google Maps. When switching from Map view to Earth view the labels change colors to create a higher contrast. I've considered creating a map theme, but with so many layers, I would have to publish out several services and that would prove inefficient.
Thanks in advance!
-
Interesting question, but I don't think so....
If you never need to turn off the street labels...then create the street labels as part of the basemap's mxd file.
Ken
0 -
Thanks for the great suggestion Ken. Unfortunately, there are several layers that need to have the ability to be turned on/off, not just a roads layer. So, having my labels on the base map wouldn't work in this instance. I'll definitely keep it in mind for future projects though.
Part of the issue isn't just the labels being over the base map, it's labels being over other layers that make them difficult to read. I'm trying to work out some way for the label to be readable regardless of what is behind it.
JD
0 -
My solution was to add the labels as a separate layer in my Map Service...One layer with labels only that are dark and one layer with labels ony that are light. The user needs to toggle the approriate layer on/off. If you are using Silverlight as your viewer you can also create a Theme that has your different layers turned on/off based on the basemap that is used in the Theme.
Bobby Jo
0
Bitte melden Sie sich an, um einen Kommentar zu hinterlassen.
Kommentare
3 Kommentare