Google Map APi缩放栏不显示 [英] Google Map APi zoom bar not showing
问题描述
Google地图api没有完全显示缩放栏和图片类型,而只是显示加减号按钮进行放大和缩小,以便选择地图类型。
网址是 http://booking.smanager.net/design/index .php?lv = 2 请参阅标签位置。我使用的是Firefox 3.6.10。可能是什么原因?
var myLatlng = new google.maps.LatLng(-34.397,150.644);
var myOptions = {
zoom:8,
center:myLatlng,
mapTypeId:google.maps.MapTypeId.ROADMAP
}
var map = new google.maps.Map(document.getElementById(map_canvas),myOptions);
< div id =map_canvas>< / div>
另外我想在几对经纬度对插入地标。我得到了几个地点的标题和描述,我想在地标中显示。任何人都可以告诉如何做到这一点?
当包含div的地图尺寸不合适时,通常会发生这种情况。虽然你已经表明你正在使用V3 api,但它仍然需要考虑......这里有一些信息:
http://econym.org.uk/gmap/basic19.htm
Duncan
Google map api is not showing zoom bar and imagetype completely instead it is just displaying plus minus buttons for zoom in and out and drop down for selecting map type. Url is http://booking.smanager.net/design/index.php?lv=2 please see tab "Location". I m using firefox 3.6.10. What might be the reason?
var myLatlng = new google.maps.LatLng(-34.397, 150.644);
var myOptions = {
zoom: 8,
center: myLatlng,
mapTypeId: google.maps.MapTypeId.ROADMAP
}
var map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);
<div id="map_canvas"></div>
Also I want to insert placemarker at several lat/long pairs. I got title and description of several locations which I want to be displayed inside a placemarker. Can anyone tell how to do that?
This usually happens when the map that contains the div isn't sized properly.. whilst you've indicated that you're using V3 api its still something to consider.. some info here:
http://econym.org.uk/gmap/basic19.htm
Duncan
这篇关于Google Map APi缩放栏不显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!