Request an existing public Google Map through the Google Maps API v3

I am trying to embed an existing public Google map on a website. In particular, this is: http://goo.gl/maps/cHf2

Of course, I could use iframe embed to achieve this, but I would like to have a little more control over the map ... I imagined being able to pull out all the markers from the map and display them as an index next to the map. Just like Google already does, but is embedded in my page with my own styles and images.

I dug through google, qaru and API instructions and could not find any relevant posts. In the GET line of the map in Google, we can see this fragment:

& MSID = 212828439842926497866.0004bfae4da003d8ffd1f & mid = 1341413217

I thought there might be a map identifier, and could I use it to request map contents via the API? The goal is to use Google Maps as a CMS for less technical people, rather than working with geodata in our own CMS.

Any help would be greatly appreciated. Maybe I just missed the forest for the trees.

+4
source share
1 answer

You can download kml, which indicates the markers on this page and displays it on your map based on the API. This example shows it by default with geoxml3, but you can hide it and display the version of KmlLayer.

KmlLayer ( kml , geoxml3).

( ),

+3

All Articles