Question

How can i add a custom Cartographical Model to a map in WP8

example: in order to add a map with a Cartographical Mode of "Aerial" i uses the following code in written XAML:

<maps:Map x:Name="myMap" CartographicMode="Aerial"/>

and the provided Cartographical Model of the maps in the WP8 SDK are:

enter image description here

so how can i add a custom one to my map;

Was it helpful?

Solution

You can't create a custom CartographicMode directly but you can add a custom tile layer to the map and use that as your custom CartographicMode. To do this you can create a TileSource

http://msdn.microsoft.com/en-us/library/windowsphone/develop/microsoft.phone.maps.controls.tilesource(v=vs.105).aspx

Once this is created you can add it to the TileSources property of the map:

http://msdn.microsoft.com/en-us/library/windowsphone/develop/microsoft.phone.maps.controls.map.tilesources(v=vs.105).aspx

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top