ZoomLevel only accepts and int and the difference between two levels is pretty large (e.g. 7 and 8 for the State shapefiles in the demos. Is there a way I can fake that in code somehow, I need just a little more zoom, not the huge zoom that going from 7 to 8 gives me?
Also, when adding labels to counties on a state map, the Location of GeographicalBounds.Center is often not desirable since it sometimes is not even within the same county as a result of oddly shaped counties. How can I tweak the Location placement when doing MapLayer.SetLocation(lblCounty, shape.GeographicalBounds.Center)?
Lastly, thanks for giving me this code a few weeks ago, but I have one more problem with it. The HotSpot makes my mouseover tooltip not work when the mouse is over the HotSpot - very confusing behavior for a user. How can I fix that? I've tried a few things, but can't seem to get it.
foreach (MapShape shape in this.InformationLayer.Items)
string name = (string)shape.ExtendedData.GetValue("NAME");
TextBlock lblCounty = new TextBlock();
//lblCounty.Text = name.Substring(0, 2);
lblCounty.Text = name;
lblCounty.FontFamily = new FontFamily("Arial");
lblCounty.FontSize = 9.5;
double newRotation = -20.00;
rotateTransform = new RotateTransform(newRotation);
lblCounty.RenderTransform = rotateTransform;
If possible, I really need some answers this week.
Thanks in advance.