Sijo Kurian
Sijo Kurian

Reputation: 486

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?

Upvotes: 10

Views: 7012

Answers (1)

Pratik
Pratik

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

Related Questions