guifi.net:desarrollo_web:nodos_seleccionables
Differences
This shows you the differences between two versions of the page.
| Next revision | Previous revision | ||
| guifi.net:desarrollo_web:nodos_seleccionables [2012/02/07 22:32] – creado jose | guifi.net:desarrollo_web:nodos_seleccionables [2015/04/13 20:19] (current) – external edit 127.0.0.1 | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| - | Versión Api v2.0 | + | ====== Exemples ====== |
| + | http:// | ||
| + | http:// | ||
| + | Traceroute: | ||
| + | http:// | ||
| + | |||
| + | Descargado branche de Google Api V3 de: \\ | ||
| + | https:// | ||
| + | |||
| + | Una capa con los nodos dibujados: | ||
| + | http:// | ||
| + | |||
| + | |||
| + | Jose, si te animas a mirar lo de los nodos clickables perfecto. Yo tenía la duda de donde extraer el json con la lista de nodos, urls y coordenadas para cargarlos dinámicamente en el mapa. ¿Sabéis si ya existe, o tendríamos que desarrollarlo? | ||
| + | |||
| + | Si no existe no sería complicado crear un url en drupal que al llamarla por GET o POST devuelva un json con la lista de nodos. Yo mismo lo crearía. | ||
| + | |||
| + | |||
| + | |||
| + | ====== Datos de Guifi ====== | ||
| + | Donde descargar los CNML:\\ | ||
| + | http:// | ||
| + | |||
| + | Descarga por zonas:\\ | ||
| + | http:// | ||
| + | |||
| + | ====== Modificado ====== | ||
| + | De la página de configuración: | ||
| + | http:// | ||
| + | |||
| + | URL for WMS service: \\ | ||
| + | http:// | ||
| + | |||
| + | URL for maps module: \\ | ||
| + | http:// | ||
| + | |||
| + | ====== Fucionamiento web de guifi ====== | ||
| + | En la web de guifi los ficheros del API de google están en: | ||
| + | modules/ | ||
| + | |||
| + | Borrar cache. Botón abajo del todo Clear cached data: \\ | ||
| + | http:// | ||
| + | |||
| + | ====== Api V3 ====== | ||
| + | |||
| + | Si funciona | ||
| + | < | ||
| + | < | ||
| + | < | ||
| + | <meta name=" | ||
| + | <script type=" | ||
| + | src=" | ||
| + | <script type=" | ||
| + | | ||
| + | |||
| + | //mapa | ||
| + | var myLatlng = new google.maps.LatLng(41.549, | ||
| + | |||
| + | //nodo | ||
| + | var myLatlng2 = new google.maps.LatLng(41.549, | ||
| + | |||
| + | var myOptions = { | ||
| + | zoom: 18, | ||
| + | center: myLatlng, | ||
| + | mapTypeId: google.maps.MapTypeId.SATELLITE | ||
| + | }; | ||
| + | |||
| + | var map = new google.maps.Map(document.getElementById(" | ||
| + | |||
| + | var contentString = '< | ||
| + | '< | ||
| + | '</ | ||
| + | '< | ||
| + | '< | ||
| + | '< | ||
| + | '< | ||
| + | ' | ||
| + | '</ | ||
| + | '</ | ||
| + | |||
| + | var infowindow = new google.maps.InfoWindow({ | ||
| + | content: contentString | ||
| + | }); | ||
| + | |||
| + | var icono2tam = new google.maps.Size({ | ||
| + | width:10, | ||
| + | height:10 | ||
| + | }) | ||
| + | |||
| + | var marker = new google.maps.Marker({ | ||
| + | position: myLatlng, | ||
| + | map: map, | ||
| + | title:" | ||
| + | }); | ||
| + | |||
| + | google.maps.event.addListener(marker, | ||
| + | infowindow.open(map, | ||
| + | }); | ||
| + | |||
| + | } | ||
| + | </ | ||
| + | </ | ||
| + | <body onload=" | ||
| + | < | ||
| + | </ | ||
| + | </ | ||
| + | |||
| + | </ | ||
guifi.net/desarrollo_web/nodos_seleccionables.1328653926.txt.gz · Last modified: (external edit)
