Diferencia entre revisiones de «Mapas de nodos en la web»
De Guifi.net - Wiki Hispano
| Línea 19: | Línea 19: | ||
{| border="1" cellspacing="0" | {| border="1" cellspacing="0" | ||
| − | ! nombre || nombre_campo || tipo | + | ! nombre || nombre_campo || tipo || Formulario |
|- | |- | ||
| latitut || field_latitut || float || text | | latitut || field_latitut || float || text | ||
Revisión de 18:39 11 mayo 2012
Objetivos:
- Hacer que los nodos sean clickables y aparezca un enlace al nodo y disponibilidad
- Tablas donde está información de los nodos: guifi_location
Campos Importantes:
| id | nick | zone_id | lat | lon | elevation | status_flag |
|---|---|---|---|---|---|---|
| 1573 | GurbCanFalgueres | 2451 | 41.945611 | 2.226083 | 127 | Working |
| 1571 | GurbMasPugell | 2451 | 41.943117 | 2.242995 | 12 | Working |
- Que las líneas representen el estado real del enlaca
- Migrar a una solución libre: openlayers y OSM
Instalamos los módulos: openlayers, ctools, cck y views
Creamos el tipo de contenido open_layer_node con los campos:
| nombre | nombre_campo | tipo | Formulario |
|---|---|---|---|
| latitut | field_latitut | float | text |
| longitut | field_longitut | float | text |
| mapa | field_mapa | OpenLayers WKT | OpenLayers Map |