@Andrew thanks a lot - and of course you are right! http://www.weltmeer.ch/divelog/index1.php now it works - to show it - but it is not working like i hoped or would expect. When selecting the country it shoul zoom to the country and still be showing the dives. have a nice day vincent
On Mar 28, 9:29 pm, Andrew Leach <[email protected]> wrote: > On Mar 28, 8:04 pm, vincent <[email protected]> wrote: > > > @Rossko > > thanks for your information > > I have tryed to do it - to get the xml file it works > > link to the map - there is a link to the XML > > filehttp://www.weltmeer.ch/divelog/index1.php > > > but then it is not loading to the Map > > i have done it like this > > examplehttp://code.google.com/apis/maps/articles/phpsqlajax.html > > No you haven't. You have: > var markers = xml.documentElement.getElementsByTagName("markers"); > whereas the example has > var markers = xml.documentElement.getElementsByTagName("marker"); > Your code is doing exactly what it's told to do: but your single > <markers> element contains no attributes. You need to get the > collection of <marker> elements. > > But you also have > var map1 = new GMap2(...) > but then do > map.addOverlay(marker); > > What is "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.
