[SPIP Zone] [Spip-zone-commit] r11250 - in /_plugins_/_dev_/gis: inc-gis_map.html js/googlemap.js rss-gis.html

Author: christian.quentin5@wanadoo.fr
Date: Fri Apr 13 01:14:47 2007
New Revision: 11250

Log:
Ré-écriture d'une partie du plugin gis pour bon fonctionnement avec IE :
- googlemap.js : extraction des données du fichier XML généré par rss-gis.html (via le tableau d'item, il y avait un rang de décalage entre IE et Firefox => utiliser getElementsByTagName)
- extraction en utilisant getElementsByTagName ne fonctionne pas avec tags du type geo:xxx
=> renommage des tags en geo_xxx dans rss-gis.html et googlemap.js

Tu peux utiliser getElementsByTagNameNS, c'est fait pour ça. Par contre, je crois qu'il faut mettre l'URI de geo, pas simplement "geo".

-Nicolas

--
Nicolas "Brush" HOIZEY
Clever Age : http://www.clever-age.com/
Gastero Prod : http://www.gasteroprod.com/
Photos : http://www.flickr.com/gp/38608514@N00/M1c002

I think we sould try to use a standard like kml (google earth) or geo rss (flickr) in gis plugin. This will make possible to get information from diferent web pages and put it into a single map in the future. The idea is to create some kind of geo/map sindication.

Google has recently created an object (GGeoXml) to directly read this kind of data (http://www.google.com/apis/maps/documentation/index.html#XML_Overlays).

have a loock on this
http://www.openstreetmap.org/index.html