Google Maps Javascript API V3 - How to remove Custom Control?

和自甴很熟 提交于 2020-01-02 02:43:13

问题


I have created custom controller by following http://code.google.com/apis/maps/documentation/javascript/controls.html Is there any way to remove custom controller? is it possible to use setOptions() for this?


回答1:


you can remove using this two function using removeAt() or clear() should accomplish the task.

or by it's position in MVCArray map.controls[position] is an MVCArray.

http://code.google.com/apis/maps/documentation/javascript/reference.html#MVCArray



来源:https://stackoverflow.com/questions/8414587/google-maps-javascript-api-v3-how-to-remove-custom-control

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!