Maps Javascript API and My Places

868 views
Skip to first unread message

Paulo Fabiano Langer

unread,
May 22, 2012, 1:19:03 PM5/22/12
to google-map...@googlegroups.com
Hi, everybody!
The Marketing department of my company has registered in google places all our stores addresses. From there, each one were saved as a marker in a existent map on My Places.
Now I need to create a web page where I need to show a map with markers of all stores we have around the world.
I decided to use Maps Javascript API instead an embedded iframe map (given by My Places) because, over this map, we will have a form where clients can choose the city and I would like to just set a new map's center by the API. All markes would be loaded already.
The things is: How could I get all markers from the map I have on My Places and add them to my map with js API ?

I read that maps data api is deprecated already and I still didn´t understand about fusion tables very well. It is pretty new to me. Is there a way to export all my markers from My Places to fusion tables ?

thanks,
Paulo

Barry Hunter

unread,
May 23, 2012, 6:33:38 AM5/23/12
to google-map...@googlegroups.com
When viewing the custom map, you should have a "KML" link just under
the description. Grab the URL of that link.

Can then use it directly with KmlLayer to display the content on a API
based map.
> --
> 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/-/XaiHjfsKiGwJ.
> To post to this group, send email to google-map...@googlegroups.com.
> To unsubscribe from this group, send email to
> google-maps-js-a...@googlegroups.com.
> For more options, visit this group at
> http://groups.google.com/group/google-maps-js-api-v3?hl=en.

Paulo Fabiano Langer

unread,
May 23, 2012, 10:00:28 AM5/23/12
to google-map...@googlegroups.com
Thank you, Barry!
It works fine!

Att,
Paulo

Paulo Fabiano Langer

unread,
May 23, 2012, 12:49:09 PM5/23/12
to google-map...@googlegroups.com
Hey, Barry!
Thanks again for your help but I have one more doubt.
After loading my map with the kml layer, I have a form with 2 selects: coutries and cities list.
When I select a country or a city, I search it by the geocoder and set a new center. Till now, it´s ok but, after choose a country or a city, I need to list in a box all the stores addresses from that country or city.
Is there a way to load if from the kml layer or from our My Places or Google Places ? There is a click event from the kmlLayer where I can return the featureData from the marker but I would need to list all marker's featureData.

Thanks,
Paulo
Reply all
Reply to author
Forward
0 new messages