
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() {
展开
1个回答
展开全部
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 %>';
本回答被提问者采纳
已赞过
已踩过<
评论
收起
你对这个回答的评价是?
推荐律师服务:
若未解决您的问题,请您详细描述您的问题,通过百度律临进行免费专业咨询