如何使用来自 maps.google.ae 的地图(阿联酋地图)而不是来自 maps.google.com 的地图

How to use the map from maps.google.ae (map for UAE) instead of map from maps.google.com

我想在我的 ASP.net 应用程序中使用以下 google 地图 API 片段来检索用户所选点的纬度和经度。

此代码显示的地图与 https://www.google.com/maps/@25.3812696,58.4464073,6z 相同。我想查看来自“.ae”的地图,而不是来自“.com”的地图。

就是和https://www.google.ae/maps/@25.3812696,58.4464073,6z一样的地图。两张地图均来自 google 国家/地区。 有什么办法可以做到这一点吗?

<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 will return the coordinates to the parent page
            alert("Latitude: " + e.latLng.lat() + "\r\nLongitude: " + e.latLng.lng());
        });
    }
</script>
<div id="dvMap" style="width: 500px; height: 500px">
</div>

感谢和问候,

我玩了一下 javascript 地图,发现通过在 src 的末尾添加 &languange=ae,可以获得类似的效果。请查看 example for jsfiddle,并尝试将语言添加到您的代码 src="http://maps.googleapis.com/maps/api/js?sensor=false&language=ae"。希望对你有用。