The markers are contained in an array readily accessible. Not sure if you can find the name / title off the marker (though this is doable in the GeoXml parser)
One of the features of the more elaborate GeoXml parser (the linked item off the EGeoXml page is that it handles a more elaborate side bar with icons and folders and highlighted mouse overs and similar things. (No reverse order currently). It also has some features allowing the page to be zoomed to a particular marker on load based on a url containing the name or id of the entry you want to zoom to. This sidebar uses snippets of information listed under each entry. (The actual KML element called a snippet). http://www.dyasdesigns.com/geoxml/customsidebar.htm Dont think my maps lets you define snippets perhaps I should adjust so snippets can be taken from the description. On Thu, Jul 1, 2010 at 10:09 AM, Mart <[email protected]> wrote: > That worked really well thanks. Infact the examples on the EGeoXml > site are just what I was looking for. > > My problem now is trying to access individual exml gmarkers myself. > The EGeoXml code is very well written but a bit too complex for me to > decipher, plus I don't want to start editing the EGeoXml code if I > don't have too (despite what I say below). > > Basically, I want to get details from each marker to use elsewhere on > the page. This would allow me to briefly list the markers description > under each title. Mainly, I'd like to zoom to the most recent marker > by getting it's co-ordinates. As this will change often I can't hard > code them. > > How can I do this? > > Also, as a side note, I was going to ask how to show the markers in > reverse chronological order (i.e, most recent first). But I've done > it. > If anyone's interested, for reference, just add this near the bottom > of EGeoXml.js (where processing is performed if it's the last file. > Under sortbyname): > > if(that.opts.reverseorder) { > that.side_bar_list.reverse(); > } > > > Mart > > On Jun 30, 5:55 am, Martin <[email protected]> wrote: > > On My Maps click the 'View in Google Earth' link and save the KML > > file. > > > > Now open the KML file in a text editor and look at the <href> element > > URL. > > > > Replace all occurences of & in that URL with &. > > > > The URL is now a link to the KML that you want to build your map with, > > you could use the API built in GGeoXml() method to build your map with > > the KML:http://econym.org.uk/gmap/geoxml.htm > > > > Or EGeoXml() can be used which allows more control over how the KML is > > rendered:http://econym.org.uk/gmap/egeoxml.htm > > > > Martin. > > > > On 29 June, 16:25, Mart <[email protected]> wrote: > > > > > > > > > Hello All, > > > > > I'm trying to create a simple travel blog site for my future travels. > > > I can't be bothered with a full blown blog and I'd like people to see > > > where I am. My idea is to edit a My Map (whilst on the road) with my > > > route and some quick comments on place markers I'll add along the way. > > > > > I'd like to put it on my own website and present it so that comments > > > are listed separately to the map. A lot like this infact: > http://marcgrabanski.com/articles/jquery-google-maps-tutorial-basics > > > (See 'View Final Demo'). > > > > > The above tutorial puts the markers on seperatly using the API which > > > won't work in my case (I think?). I would simply like to 'read' the > > > comments from the place markers (Replacing point0,1, etc with London, > > > Paris, etc depending on the marker title). > > > > > How can I do this? > > > > > I've spent the whole day reading too many tutorials and stuff but it > > > all seems to refer to placing markers on a static map which is no > > > good. > > > > > Some threads, including on this forum, suggest using the 'Link to > > > Google Earth' to generate a KML and read it in like that but my KML > > > only contains a 'Network Link' with a href to my map but with an > > > 'output=KML' suffix. > > > > > Any help or pointers would be great. At the moment I'm just too > > > confused! > > > > > Thanks in advance > > -- > 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]<google-maps-api%[email protected]> > . > For more options, visit this group at > http://groups.google.com/group/google-maps-api?hl=en. > > -- 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.
