Reputation: 486
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?
Upvotes: 10
Views: 7012
Reputation: 30855
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
Upvotes: 17