I'm having difficulty understanding the relationship between adding a 
marker to a map object and creating an array/object that holds the marker's 
attributes.  I'm developing a JavaScript page that will allow users to 
toggle three types of markers.  The data is obtained from a getjson jQuery 
call which returns a properly formed JSON object.  I parse through the JSON 
object with $.each and add the markers to the map.  I'm having difficulty 
assigning the same JSON object or each element from that object to the 
second array which holds the map attributes used to hide the markers.  

I've attempted to assign the JSON object to an array and then use that to 
hide the markers but run into difficulty creating a multidimensional 
associative array in JavaScript.  The array fills but this is not what the 
Maps API is expecting and generates [Object][Object] as the result.

I'm pretty new to Maps and JavaScript and can't see what this bridge step 
between the JSON object and the expected Maps format should be.

Any help is appreciated.

Thanks!

-- 
You received this message because you are subscribed to the Google Groups 
"Google Maps JavaScript API v3" group.
To view this discussion on the web visit 
https://groups.google.com/d/msg/google-maps-js-api-v3/-/Q3koxQwXl_gJ.
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