Google Maps JavaScript API V3 - 如何删除自定义控件? [英] Google Maps Javascript API V3 - How to remove Custom Control?
问题描述
我通过遵循 http://code.google.com/apis/创建了自定义控制器maps / documentation / javascript / controls.html 有什么办法可以删除自定义控制器吗?你可以使用这两个函数removeAt()或clear()来清除(可以使用setOptions()方法吗?
)应完成任务。或由它在MVCArray中的位置 map.controls [position]是一个MVCArray
。
http://code.google.com/apis/maps/documentation/javascript/reference.html#MVCArray
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?
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
这篇关于Google Maps JavaScript API V3 - 如何删除自定义控件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!