Oh. Alright.
Thank you.
Here is the Code for V3:
function loadGoogleMaps() {
var myLatlng = new google.maps.LatLng(48.699120,8.989563);
var myOptions = {
center: myLatlng,
mapTypeId: google.maps.MapTypeId.HYBRID
}
var map = new google.maps.Map(document.getElementById("map_canvas"),
myOptions);
var georssLayer = new google.maps.KmlLayer('http://maps.google.de/
yourKml&output=kml',{preserveViewport:true});
georssLayer.setMap(map);
map.setZoom(2);
}
On 2 Dez., 16:51, "[email protected]" <[email protected]> wrote:
> On Dec 2, 7:44 am,DSP<[email protected]> 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
> don't use GGeoXml, you use kmlLayer (and a lot of other things in your
> code snippet would need to change), but the general advice on how to
> access myMaps is useful for both APIs.
>
> If you have questions on v2 API maps, that group
> is:http://groups.google.com/group/google-maps-api
>
> -- Larry
>
>
>
> > 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.- Hide quoted text -
>
> > - Show quoted text -
--
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.