> I have a php script which write the xml file with it > ... > What I can do ? there is another way to present my data ?
Yes. Maybe you didn't write this stuff to begin with; your XML feed is currently a form of GeoRSS It says so at the top - <rss version="2.0" xmlns:geo="http://www.w3.org/2003/01/geo/ wgs84_pos#"> Standard GeoRSS doesn't support using custom icon images. As GeoRSS is just one sort of XML, you could easily extend it by adding your own non-standard <tag> for a custom icon, something like Yahoo maps have already done - <ymaps:BaseIcon>http://www.example.com/icon.gif</ymaps:BaseIcon> Unfortunately nothing but Yahoo recognises that. In particular, Google's GGeoXml that you use now would completely ignore it. So you'd need to devise a custom GeoRSS parser for your page, which possibly isn't as difficult as it sounds if you base it on the existing open source GeoXml, but requires javascript skills. Or persuading the author of GeoXml to support the Yahoo tag, perhaps! An alternative standard to GeoRSS which is also based on XML, is KML. KML does support custom images, and as it happens the same GGeoXml will deal with it as well. So you could convert your output completely to KML format and not have to change your map page at all. That would require coding in php. If you don't require your data feed to conform to any standards at all (does anyone else use it?), then you needn't use either KML or GeoRSS at all. You could change your php to outpat data in the <markers> form, which happens to common because it's used in so many Google Maps tutorials and examples. In fact, if you can find an example that does what you need, you can use that javascript in your map (instead of GGeoXml) and only change your php feed. Which way to go depends on your skills, and if you have to meet any particular standards for other people's benefit. cheers, Ross K --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
