Closed galadril closed 4 years ago
Maybe it would be an idea for me to use custom TileLayer of Google when i detect that the user is based in China..
var objTile = TileLayer.FromTileUri((int x, int y, int zoom) => new Uri($"http://{"mt".Substring(new Random().Next(3), 1)}.google.cn/vt/src=app&x={x}&y={y}&z={zoom}"), 512);
objTile.Tag = "china";
map.TileLayers.Add(objTile);
Ill try this
neverminds.. ill use a different control for china
I need to show the map also in China. The Google Maps APIs are served within China from the domain maps.google.cn. This domain does not support https. When making requests to the Google Maps APIs from China, please replace https://maps.googleapis.com with http://maps.google.cn.
For example: https://**maps.googleapis.com**/maps/api/geocode/json?address=1600+Amphitheatre+Parkway,+Mountain+View,+CA
would become: http://**maps.google.cn**/maps/api/geocode/json?address=1600+Amphitheatre+Parkway,+Mountain+View,+CA
Is this possible via this library (of the Xamarin Forms Maps library)??