问题
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