I've noticed a problem in the v3 example while reading documentation. In the "Add state to controls" section on this page: http://code.google.com/apis/maps/documentation/javascript/controls.html#ControlState
There is line of code like this: // Define a property to hold the Home state HomeControl.prototype.home_ = null; This is not correct. It can lead some developers to think the "home_" property defined in this line is actually same as the "this.home_" used in the getter and setter method, and the comments also implied so. The property defined in the prototype is completely different that the actual home_ property hold by the instance (which is where the state is actually stored) so this line of code should be removed. See this modified example (click the controls to see results below map) http://gmaps-utility-gis.googlecode.com/svn/trunk/v3test/control-custom-state.html -- You received this message because you are subscribed to the Google Groups "Google Maps JavaScript API v3" group. To post to this group, send email to [email protected]. To unsubscribe from this group, send email to [email protected]. For more options, visit this group at http://groups.google.com/group/google-maps-js-api-v3?hl=en.
