p.s. my changelog to get it working consisted of: updating my project to SL3
adding to XAML <m:Map Name="VEMap" CredentialsProvider="you know what" <m:Map Name="minimap" CredentialsProvider="you know what" using Microsoft.VirtualEarth.MapControl; becomes using Microsoft.Maps.MapControl; LocationRect targetBounds = VEMap.GetBoundingRectangle(VEMap.TargetView); becomes LocationRect targetBounds = VEMap.BoundingRectangle; VEMap.TargetView.Center becomes VEMap.Center VEMap.TargetView.ZoomLevel becomes VEMap.ZoomLevel *SomeLayer*.AddChild(mp) becomes *SomeLayer*.Children.Add(mp) MapLayer.MapPositionProperty becomes MapLayer.PositionProperty MapLayer.MapPositionMethodProperty becomes MapLayer.PositionOriginProperty PositionMethod.Center becomes PositionOrigin.Center *examples:* el.SetValue(MapLayer.MapPositionProperty, VEMap.ViewportPointToLocation(pos)); becomes el.SetValue(MapLayer.PositionProperty, VEMap.ViewportPointToLocation(pos)); cel.SetValue(MapLayer.MapPositionMethodProperty, PositionMethod.Center); becomes cel.SetValue(MapLayer.PositionOriginProperty, PositionOrigin.Center); The OSM tile source described back here<http://pietschsoft.com/post/2009/03/Virtual-Earth-Silverlight-Overlay-OpenStreetMap2c-OpenAerialMap-and-Yahoo-Map-Imagery-using-Custom-Tile-Layers%21.aspx>continues to work public class OpenStreetMapTileSource : Microsoft.Maps.MapControl.TileSource { public OpenStreetMapTileSource() : base("http://tile.openstreetmap.org/{2}/{0}/{1}.png") { } public override Uri GetUri(int x, int y, int zoomLevel) { return new Uri(String.Format(this.UriFormat, x, y, zoomLevel)); } } The minimap described here <http://www.earthware.co.uk/blog/index.php/2009/03/virtual-earth-silverlight-minimap-tutorial/>also continues to work. Does that count as TWO Map Sessions since I have had to enter credentials for both the main and the 'mini'map? Way to double your apparent usage while providing a nice UI experience! cd On Wed, Nov 11, 2009 at 9:42 AM, Craig Dunn < [email protected]> wrote: > Yeah - that's fine if you are using Bing Maps data... but are they now > implying that if you use the silverlight _control_ as a host for OSM map > tiles (for example) you still need a key? > > How do 'session counts' etc apply if you are using the SL control with open > source data? Does MS expect 'payment' for these uses of the control? > > Curious... > > cd > > On Wed, Nov 11, 2009 at 9:31 AM, David Burela <[email protected]>wrote: > >> although one thing that IS annoying, is that it looks like you now need >> a bing maps "key" in order to use the control... >> >> >> >> David Burela >> Readify | Senior Developer** >> >> Suite 206 Nolan Tower | 29 Rakaia Way | Docklands | VIC 3008 | Australia >> M: +61 (0)407 363 860 | E: [email protected]| W: www.readify.net >> ------------------------------ >> *From:* [email protected] [ >> [email protected]] On Behalf Of David Burela [ >> [email protected]] >> *Sent:* Wednesday, 11 November 2009 9:30 AM >> *To:* ozSilverlight >> *Subject:* New release of the Silverlight Bing Maps control >> >> For anyone who hasn't seen the announcement yet today, they have >> released a new version of the silverlight bing maps control >> http://www.microsoft.com/maps/ >> >> Changes to the SDK can be seen here >> http://msdn.microsoft.com/en-us/library/ee681889.aspx >> the interesting one for me, is the inclusion of the "MapItemsControl" >> class, >> http://msdn.microsoft.com/en-us/library/microsoft.maps.mapcontrol.mapitemscontrol.aspx >> It allows for databinding to a map layer now, meaning I can get rid of >> the custom stuff on my blog :-) >> >> >> >> David Burela >> Readify | Senior Developer** >> >> Suite 206 Nolan Tower | 29 Rakaia Way | Docklands | VIC 3008 | Australia >> M: +61 (0)407 363 860 | E: [email protected]| W: www.readify.net >> >> _______________________________________________ >> ozsilverlight mailing list >> [email protected] >> http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight >> >> >
_______________________________________________ ozsilverlight mailing list [email protected] http://prdlxvm0001.codify.net/mailman/listinfo/ozsilverlight
