使用谷歌地图KeyDragZoom的自定义控制 - 如何激活拖动缩放? [英] Using custom control with Google Maps KeyDragZoom - how to activate drag zoom?
问题描述
我正在使用KeyDragZoom
I am using KeyDragZoom
http://google-maps-utility-library-v3.googlecode.com/svn/tags/keydragzoom/2.0.5/docs/examples.html
我想将控件放在页面上的其他位置,而不是在Google地图中。我无法弄清楚如何做到这一点。我甚至可以在地图上放一个按钮,只需点击地图上的按钮即可。 如何激活拖动缩放?
I would like to put the control somewhere else on the page, not within the google map. I can not figure out how to do this. I would even be fine with having a button off the map that would just trigger a click of the button within the map. How can I activate the drag zoom?
P.S。我正在使用可视化拖动缩放控件,而不是使用像Shift一样的键盘按键。
P.S. I am using the Visual Drag Zoom Control instead of using a keyboard key like shift.
推荐答案
完成此操作 $('img [src = http://maps.gstatic。 com / mapfiles / ftr / controls / dragzoom_btn.png]')。click();
感谢hookedonwinter
Thanks hookedonwinter
这篇关于使用谷歌地图KeyDragZoom的自定义控制 - 如何激活拖动缩放?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!