asp.net - How to use the map from maps.google.ae (map for UAE) instead of map from maps.google.com -
i use following google map api snippet in asp.net application retrieve latitude , longitude of selected point user.
this code show map same https://www.google.com/maps/@25.3812696,58.4464073,6z. instead of map '.com', want see map '.ae'.
that map same https://www.google.ae/maps/@25.3812696,58.4464073,6z. both maps google based on country. there way achieve ?
<html xmlns="http://www.w3.org/1999/xhtml"> <head> <title>location tracking</title> </head> <body> <script type="text/javascript"src="http://maps.googleapis.com/maps/api/js?sensor=false"></script> <script type="text/javascript"> window.onload = function () { var mapoptions = { center: new google.maps.latlng(24, 54), zoom: 14, maptypeid: google.maps.maptypeid.roadmap }; var infowindow = new google.maps.infowindow(); var latlngbounds = new google.maps.latlngbounds(); var map = new google.maps.map(document.getelementbyid("dvmap"), mapoptions); google.maps.event.addlistener(map, 'click', function (e) { //this part return coordinates parent page alert("latitude: " + e.latlng.lat() + "\r\nlongitude: " + e.latlng.lng()); }); } </script> <div id="dvmap" style="width: 500px; height: 500px"> </div>
with , regards,
i played around javascript map little bit , figured out adding &languange=ae
@ end of src
, can have similar effect. please check out example jsfiddle, , try add language code src="http://maps.googleapis.com/maps/api/js?sensor=false&language=ae"
. hope works you.
Comments
Post a Comment