So i’m pretty new to using the Bing Maps control in Silverlight, but I have managed to get a collection of pushpin objects (each with lat/long values) plotted on the map.
My question now is, how can I change the visibility of these based on the current zoom level?.
Say I have 10 locations scattered across the UK, I only want them visible when the UK is in the current view, not when the whole world is in view…
I realise this is a very general question but any help would be fantastic!
Kris
you need to handle one of the map controls events, like viewchangeend or TargetViewChanged and decide whether to show the pins based on the new views zoom level and bounding box (the lat/lons that make up the boundary of the new view)
http://msdn.microsoft.com/en-us/library/microsoft.maps.mapcontrol.map_events.aspx