A Marker is also an MVC object so you can use MVC methods to set and get values of new properties:
http://code.google.com/apis/maps/documentation/javascript/reference.html#MVCObject http://code.google.com/apis/maps/articles/mvcfun.html As mentioned the name of any new property you create must not conflict with existing (and future) Marker property names. Also the new property name must not conflict with existing documented properties but also any undocumented Marker properties. I generally prefix new property names with an underscore and have had no problems so far: myMarker._myValue=42; or myMarker.set('_myValue', 42); Martin. On May 7, 10:37 pm, Chris Broadfoot <[email protected]> wrote: > Oh whoops. I misunderstood ... > > Yeah, this should work - Markers are JavaScript objects. Like any JavaScript > object, its properties can be modified at any time. > > Sounds like you have a bug somewhere, though. Post up a link to your page so > people can help out. > > --http://twitter.com/broady -- 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.
