Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

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

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?

like image 713
Sijo Kurian Avatar asked Dec 07 '11 11:12

Sijo Kurian


1 Answers

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

like image 133
Pratik Avatar answered Sep 28 '22 11:09

Pratik