Google map 地图无法添加鼠标滚轮的放大缩小功能 如果来做

Googlemap地图无法添加鼠标滚轮的放大缩小功能还有鹰眼如果来改调用的是GoogleMap的apiJS文件//JScriptFilefunctionIgnoreZer... Google map 地图无法添加鼠标滚轮的放大缩小功能 还有鹰眼 如果来改 调用的是GoogleMap的api JS文件// JScript File function IgnoreZeroLatLongs(bIgnore) { //Check if there is any visible pushpin on map. var cnt = 0; bounds = new GLatLngBounds(); for(var i=0;i<markers.getLength();i++) { var ignoremarker = false; var point1 = markers.markers[i].getPoint(); if(bIgnore) { if((point1.x==0) && (point1.y==0)) { ignoremarker = true; } } if(!ignoremarker) { if(!markers.markers[i].isHidden()) { bounds.extend(markers.markers[i].getPoint()); //Increment visible pushpin count cnt++; } } } var iZoomLevel = map.getBoundsZoomLevel(bounds); var point = bounds.getCenter(); map.setZoom(iZoomLevel); map.setCenter(point); } function ShowFullScreenMap() { 展开
 我来答
手机用户89051
2014-06-23 · 超过49用户采纳过TA的回答
知道答主
回答量:98
采纳率:0%
帮助的人:124万
展开全部
var objButton = document.getElementById('btnFullScreen'); if(objButton.value=='Full Screen') { var objMap = document.getElementById('GoogleMap_Div'); var objDiv = document.getElementById('GoogleMap_Div_Container'); objMap.style.width='100%'; objMap.style.height='100%'; objDiv.style.position='absolute'; objDiv.style.left='0px'; objDiv.style.top='0px'; objDiv.style.width='99%'; objDiv.style.height='95%'; objDiv.style.backgroundColor='LightGrey'; objButton.value='Close Fullscreen'; DrawGoogleMap(); } else { var objMap = document.getElementById('GoogleMap_Div'); var objDiv = document.getElementById('GoogleMap_Div_Container'); objMap.style.width='<%=GoogleMapObject.Width %>'; objMap.style.height='<%=GoogleMapObject.Height %>';
本回答被提问者采纳
已赞过 已踩过<
你对这个回答的评价是?
评论 收起
推荐律师服务: 若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询

为你推荐:

下载百度知道APP,抢鲜体验
使用百度知道APP,立即抢鲜体验。你的手机镜头里或许有别人想知道的答案。
扫描二维码下载
×

类别

我们会通过消息、邮箱等方式尽快将举报结果通知您。

说明

0/200

提交
取消

辅 助

模 式