我试图为我的网站设计Google地图的样式如下:http://www.sidewalkprophets.com/shows 他们只显示美国,不幸的是该网站使用API V2。使用API V3的造型/主题谷歌地图
使用Google Maps API V3的可能性相同吗?有人能帮我吗?
我试图为我的网站设计Google地图的样式如下:http://www.sidewalkprophets.com/shows 他们只显示美国,不幸的是该网站使用API V2。使用API V3的造型/主题谷歌地图
使用Google Maps API V3的可能性相同吗?有人能帮我吗?
我有一个简单的表格,你这样做没有这么多的脚本,等
可以使用gmap3.net工具,它的simples编辑您的地图你怎么想。
检查此链接:
要锁定您可以使用map.Options{ draggable: false};
,使用户无法拖动地图的位置,并将其设置你想要的纬度和经度和缩放级别。这是一个简单的例子:
var mapDiv = document.getElementById('mappy');
var mapOptions = {
zoom: 12, //select the zoom that you want
draggable: false, //this will lock the draggable option
center: new google.maps.LatLng(-23.563594, -46.654239), //change here the latitude and longitude
mapTypeId : google.maps.MapTypeId.ROADMAP
}
pode ser ROADMAP, SATELLITE, HYBRID, TERRAIN
map = new google.maps.Map(mapDiv, mapOptions); //this will include the variables in one to create the map with the options
好运=)!
如何只显示美国? – 2012-08-01 08:14:12
我编辑了代码,检查它,如果你的问题解决了,请检查其他用户有相同问题的答案=) – 2012-08-01 13:18:20
以下是用于风格化地图的Google Maps文档:[Static Maps](https://developers.google.com/maps/documentation/staticmaps/#StyledMaps)和[Dynamic Maps](https://developers.google .com/maps/documentation/javascript/styling) – 2012-07-31 15:48:39