On Dec 2, 7:44 am, DSP <
dsp.sprin...@googlemail.com> wrote:
> 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:
FYI - that code uses the v2 API. This is the v3 group. In v3 you
>
> 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 <
josephelf...@gmail.com> 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
>