The solution to this approach is to use the Google Earth returned XML
file.

This is the code to accomplish this:

<script type="text/javascript">
    google.load("maps", "2.x");

    // Call this function when the page has been loaded
    function initialize()
    {
        var map = new google.maps.Map2(document.getElementById
("map"));
        map.setCenter(new google.maps.LatLng(37.781705, -122.447948),
13);
        map.addControl(new GLargeMapControl());
        map.addControl(new GMapTypeControl());

        var gx = new GGeoXml("http://maps.google.com/maps/ms?
ie=UTF8&hl=en&msa=0&output=nl&msid=106070518142218002792.00045d1576793905568c4");
        map.addOverlay(gx);
    }
    google.setOnLoadCallback(initialize);
</script>

There is a problem with this however if you are using Google data
points. For example, lets say you search for 'Apple Store', then click
add to My Maps and select a map. The relative link locations returned
in the KLM file are '/maps?datavalues' which are useless to click on
in your custom maps.

Any ideas how to do with maps.google.com information returned in the
KLM file in a sensible way without massive string parsing?

On Dec 5, 3:54 pm, jms <[EMAIL PROTECTED]> wrote:
> I have a My Maps that I've done up using maps.google.com.
>
> What I'd like to do is use the custom map as the source for the Google
> Maps API.
>
> Is it possible to use the RSS feed or something similar as the data
> source, and if, so what does that code look like?
>
> What I'm also looking to do is get the RSS feed, list out all all the
> points on a page and then have the items as hyperlinks to the pre-
> populated data marks on the map I'm rendering using Google Maps. Any
> suggestions on how to do this as well would be great.
>
> ------
>
> MAP -- from My Maps Feed>
>
> - item 1 on the My Map, link (to center on Map) >>
> - item 2 on the My Map, link (to center on Map) >>
> - item 3 on the My Map, link (to center on Map) >>
--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Maps API" 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-API?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to