Google Maps平移控件不显示 [英] Google Maps pan control does not display

查看:76
本文介绍了Google Maps平移控件不显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个带有此选项的google maps:

I have a google maps with this options :

mapProp = {
        center: new google.maps.LatLng(39.92553, 32.86628),
        zoom: 6,
        panControl: true,
        mapTypeId: google.maps.MapTypeId.ROADMAP

    };

map =新的google.maps.Map(document.getElementById("map"),mapProp);

map = new google.maps.Map(document.getElementById("map"), mapProp);

我要使用此控件:

我想要此控件,但不显示我的地图.

I want to this control but not showing my map.

或者我想使用地图上的按钮进行旅程.

Or I want to journey with button on map.

谢谢.

推荐答案

您很可能正在使用比3.22还要新的Google Maps版本.

Most likely your are using a version of Google Maps newer than 3.22.

在发行说明中所述的版本之后,摇摄控件将不再可用.要继续使用它,您必须请求一个较早的版本.

After that version as stated in the release notes, the Pan Control is no longer available. To continue to use it you must request an earlier version.

地图上的平移控件不再可用.要平移视图, 用户单击并拖动或滑动地图. (请注意,平移控件位于 街景视图仍然可用.)

The Pan control on the map is no longer available. To pan the view, users click and drag, or swipe, the map. (Note that the Pan control in Street View remains available.)

在回答此问题时,我们的版本是3.37,而3.22已经淘汰.

At the time of this answer we are at version 3.37and 3.22 is already retired.

这篇关于Google Maps平移控件不显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆