Hi Horacio,
I'm fowarding this mail to he spip-zone mailing list too.
2008/11/28 Horacio Gonzalez Dieguez <horaciogd@vhplab.net>:
Hi Bruno,
As I see it Gis should contain and manage lat, long data and asociate it
to articles, rubriques, etc. And complementary plugins such as Open_layers
or Googlemap_api should provide suport for diferent map apis.
I agree with it but other plugins can do the same thing in their own
tables of the database. Inscription2.
Obiously configuration can't depend on the complementary plugins, but as you
need a map to clic on it to choose defaul lat and lonx I couldn't find
another way to make it.
I think that every complementary plugins should have his own squelette
fonds/cfg_name_of_api.html and fonds/cfg_gis.html for GIS. This way we
can use CFG plugin to store the settings of each api independantly of
GIS (and GIS should only access to settings of APIs plugins).
My idea was to define general configuration in /gis/exec/gis_config.php and
call config maps stored in complementary plugin from it like this:
$gis_config = charger_fonction ($GLOBALS['meta']['gis_map'].'_config','inc')
Where GLOBALS['meta']['gis_map'] is the prefix of the complementary plugin
you are using. This way depending on the plugin you choose it would apear a
Google Map or an Open Street Map.
Exactlly, we can do it like this : use the fonds/cfg_gis.html to
define wich api is used by GIS and include the configuration squelette
of this api plugin with recuperer_fond() or #INCLURE (or simply a link
to the configuration page of the selected api).
There may be even sligly diferences betwen configuration maps deppendig in
the Api you use, for example Google needs a key and Open Layer don't.
I understand that with new CFG configuration structure there are many
changes to be made and I would like to help, but I am still trying to
understand how CFG works. The only thing I don't see is how Open_layers or
Googlemap_api could work by their own without Gis.
These plugins could be used by other plugins like Inscription2 here :
http://trac.rezo.net/trac/spip-zone/browser/_plugins_/_dev_/googlemap_api/geomap_pipeline.php
I will keep an eye on last changes during this weekend and try to help with
configuration. Any way, if you need to make any change to adapt the plugin,
I trust your judgment.
I'll try to do this work one of these days.