简体   繁体   中英

adding custom Cartographical Model to a map in WP8

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:

在此处输入图片说明

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

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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM