On Nov 11, 11:12 am, Howie <[EMAIL PROTECTED]> wrote:
>
> http://www.wiltshire.gov.uk/maps/ajaxfeed_flickr.php
It works in Firefox, although I think that's accidental. It looks like
the structure of the feed has changed since the example was put
together and it now uses the georss namespace. The elements it should
look for are geo:lat and geo:long.
This seems to work, although you'll need to sort out the line wrapping
I expect...
// get latitude/longitude values from feed
if (result.feed.entries[i].xmlNode.getElementsByTagNameNS) {
var latnode =
result.feed.entries[i].xmlNode.getElementsByTagNameNS("http://
www.w3.org/2003/01/geo/wgs84_pos#","lat");
var longnode =
result.feed.entries[i].xmlNode.getElementsByTagNameNS("http://
www.w3.org/2003/01/geo/wgs84_pos#","long");
}
else {
var latnode =
result.feed.entries[i].xmlNode.getElementsByTagName("geo:lat");
var longnode =
result.feed.entries[i].xmlNode.getElementsByTagName("geo:long");
}
Andrew
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---