Thanks to all of you.
There is a simple way to achieve what I wanted:
You can get the "MyMaps" kml on the fly by just open your disered map
in mymaps, get the link , paste it in your browser and add a
"&output=kml" to it.
Thats the way, you can call your mymap with the api:
if (GBrowserIsCompatible()) {
map = new GMap2(document.getElementById("map"),{
googleBarOptions:
{linkTarget:G_GOOGLEBAR_LINK_TARGET_SELF}
})
map.setCenter(new GLatLng(startLatitude, startLongitude), 2,
mapType);
map.addControl(new GSmallMapControl());
map.addControl(new GMapTypeControl());
map.enableGoogleBar();
map.enableScrollWheelZoom();
//map.addControl(new GOverviewMapControl());
map.addOverlay(new GGeoXml("http://maps.google.de/maps/ms?
hl=de&ie=UTF8&msa=0&msid=YOUR_MSID&output=kml"));
}//EoF ifBrowserIsCompatible
On 28 Nov., 16:23, Joseph Elfelt <[email protected]> wrote:
> Oops, I should have provided a brief overview.
>
> In order to use the v3 API to display a Google MyMap you need to:
>
> 1. Make a small KML file that includes a NetworkLink which points to
> the MyMap
> 2. Place that small KML file online
> 3. Use the v3 API to display that small KML file
>
> See the link above for details.
--
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 [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-js-api-v3?hl=en.