Mike Thanks very much for that detailed reply. I'll need some time to investigate and digest it all - and this is a long term project. I'll have a look and see if I could use Excel to process the KML file (eg strip the category and swap the lat/lgn fields) I appreciate the trouble you've gone to. Mark
On Oct 5, 6:55 pm, Mike Williams <[EMAIL PROTECTED]> wrote: > My Maps doesn't have the concept of categories. So you've got several > approaches. None of which are simple: > > 1. You could reproduce parts of the interactive functionality of My Maps > within your own page and capture the extra category information before > sending the data to your database. That's seriously difficult for a > newbie. If you want to go that route, consider using the new Geometry > Controls from Chris Marx > > <http://gmaps-utility-library-dev.googlecode.com/svn/trunk/geometrycontro > ls/> > > 2. You could use My Maps to generate the markers, and somehow store the > category information inside the My Maps data. E.g. you could set the > titles of all the "school" category markers to be like > "school:Sunnydale High" > [Hint: be careful to be consistent with things like spaces and > capitalisation.] > > Right-click the [View in Google Earth] link and choose "Copy Link > Location" (or whatever the equivalent is in the browser you are using). > Paste that into your browser window, but change the bit that says > "&output=nl" to say "&output=kml". That will give you a static KML file > of the info from THAT PAGE of your My Map. > > You could then process that KML file offline to produce a suitable XML > file, which you could then use with the examples that you already know > about. > [Hint: KML coordinates are in the opposite order to what you expect: > lng,lat rather than lat,lng.] > > 3. You could use My Maps to capture the data, as above. Then use the > Lance Dyas GeoXml to process the KML, writing your own {createmarker} > function to capture the category information and remove it from the > Title string. > > 4. You could use My Maps to capture the data, as above, but not > necessarily change the "nl" into "kml". Then use BOTH the tricks listed > on this page: > http://econym.org.uk/gmap/interceptor.htm > Use the first trick to obtain the category information. > Use the second trick to remove the category information from the > infowindow display. > > If you use the &output=nl version, then you get dynamic KML. So your > page will keep up to date with changes to the corresponding My Map page. > If you use the &output=kml version, then you get a snapshot of the My > Map page at that instant. > > With method 4, there's no way to handle more than one My Maps page at > once. > > --http://econym.org.uk/gmap > The Blackpool Community Church Javascript Team --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
