Asp.net 谷歌地图上的指针
我需要在点击按钮时显示一个地址,我得到了所需位置的纬度和经度 在URl中映射时Asp.net 谷歌地图上的指针,asp.net,visual-studio-2010,google-maps,c#-4.0,google-maps-api-3,Asp.net,Visual Studio 2010,Google Maps,C# 4.0,Google Maps Api 3,我需要在点击按钮时显示一个地址,我得到了所需位置的纬度和经度 在URl中映射时 https://maps.google.com/?ll=28.64036031970850,77.24250191970849 像这样。我在谷歌地图上找不到欲望指针,就像我们得到的红色指针一样。 谢谢您的帮助。您可以为此使用自定义标记。以下是一个让您开始学习的片段: // Create the map var map = new google.maps.Map($("#map-result"), mapOptions
https://maps.google.com/?ll=28.64036031970850,77.24250191970849
像这样。我在谷歌地图上找不到欲望指针,就像我们得到的红色指针一样。
谢谢您的帮助。您可以为此使用自定义标记。以下是一个让您开始学习的片段:
// Create the map
var map = new google.maps.Map($("#map-result"), mapOptions);
// Create the marker on the map
var marker = new CustomMarker(new google.maps.LatLng(pinLatitude, pinLongitude), map, searchResults[i], markerNumber);
// Add listener to react to click of marker
google.maps.event.addListener(marker, 'click', (function (marker, i) {
return function () {
// Call some function to do something
showSelectedMarker();
}
})(marker, i));
这里有一个很好的例子:
试试这个。根据需要更改纬度/长度。
先生,我想重定向到谷歌地图。而不是显示在我的网站上。所以我只想通过url找到我指定的地址。创建另一个网页并在新选项卡中打开它,该网页将包含谷歌地图