Hi Keith,

If I am understanding you correctly, you are wanting to "invent" an extra 
variable and attach it to the javascript object which represents the marker.
The answer to your question is .... yes.
You can indeed dynamically create new variables on an existing javascript 
object and then interact with it.

However (there is always a but), should you wish to use the closure compiler 
to try to protect your code, it could cause naming conflicts with the 
compiled api code.
The recommended method is to place the marker in your own object which will 
contain the extra variables/properties desired.

Hope this helps
Simon

-- 
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 google-maps-js-api-v3@googlegroups.com.
To unsubscribe from this group, send email to 
google-maps-js-api-v3+unsubscr...@googlegroups.com.
For more options, visit this group at 
http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Reply via email to