Jump to: navigation, search

Changes


Map View (Xamarin)

1,692 bytes added, 12:52, 1 September 2023
Some basic UI options commonly seen in map applications are available as well. For example, an indicator for the current device position, buttons to center around the current position, etc.
== Customizable tile source for Bing road maps {{Version/XamarinSince|4.5}} ==
Bing maps support many parameters and offer multiple servers to deliver map tiles. {{UBIK}} allows the user to customize the BingRoadTilesUrl in a profile to achieve the following.
* Use different servers to get the more reliable and suitable tiles service if necessary;
* Specify a language/culture in which the tiles should be delivered;
* Or even request different types of Bing map tiles.
By default (namely BingRoadTilesUrl is unspecified), the following URL pattern is used.
<code><nowiki>http://ak.dynamic.t{s}.tiles.virtualearth.net/comp/ch/{quadkey}?mkt=en-US&amp;it=G,L&amp;shading=hill&amp;og=2290&amp;n=z&amp;token={k}</nowiki></code>
 
In this case, all tiles are delivered in English since that's requested through <code><nowiki>mkt=en-US</nowiki></code>. Please refer to [https://learn.microsoft.com/en-us/bingmaps/rest-services/common-parameters-and-types/supported-culture-codes supported culture codes] from Microsoft when you want tiles in other languages.
 
{{Hint|Microsoft also provides a Chinese server URL pattern<br/> <code><nowiki>https://dynamic.t{s}.tiles.ditu.live.com/comp/ch/{quadkey}?mkt=zh-CN&amp;it=G,L&amp;ur=CN&amp;og=804&amp;n=z&amp;token={k}</nowiki></code>.<br/> Just for clarification, it is also possible to request map tiles in Chinese using the default URL pattern as long as the correct culture code is specified, namely <code><nowiki>mkt=zh-Hans</nowiki></code>, <code><nowiki>mkt=zh-Hant</nowiki></code> or <code><nowiki>mkt=zh-CN</nowiki></code>.<br/> But the dedicated one might deliver tiles that comply more to the local laws. Please choose one that you see fit.}}