Outils pour utilisateurs

Outils du site


geo_data:associations_map_js

Différences

Ci-dessous, les différences entre deux révisions de la page.

Lien vers cette vue comparative

Les deux révisions précédentes Révision précédente
Prochaine révision
Révision précédente
geo_data:associations_map_js [31/07/2016 20:52]
cyrille37
geo_data:associations_map_js [21/08/2020 14:46] (Version actuelle)
administrateur JQuery ...
Ligne 1: Ligne 1:
 +
 /** /**
  * Javascript pour construire la carte.  * Javascript pour construire la carte.
Ligne 7: Ligne 8:
  
   var dataFiles = {   var dataFiles = {
-   assosLayer: '/geo_data/associations_geojson?do=export_raw', +   assosLayer: '/geo_data/associations_geojson?do=export_text', 
-   epnsLayer: '/geo_data/associations_geojson?datafilter=epn&do=export_raw',+   epnsLayer: '/geo_data/associations_geojson?datafilter=epn&do=export_text',
    adminLayer: '/_media/geo_data/agglo_tours_admin.geo.json',    adminLayer: '/_media/geo_data/agglo_tours_admin.geo.json',
    cucsLayer : '/_media/geo_data/cucs_wgs84.geo.json' ,    cucsLayer : '/_media/geo_data/cucs_wgs84.geo.json' ,
Ligne 82: Ligne 83:
      "QPPV 2015" : qppvLayer ,      "QPPV 2015" : qppvLayer ,
      "Assos" : assosLayer,      "Assos" : assosLayer,
-     'EPNs assos <img src="http://savoirscom1.comptoir.net/_media/geo_data/arobase-black_25x26.png" width="14px"/>' : epnsLayer+     'EPNs assos <img src="http://savoirscommuns.comptoir.net/_media/geo_data/arobase-black_25x26.png" width="14px"/>' : epnsLayer
    }    }
    var tilesOsmFr = L    var tilesOsmFr = L
Ligne 252: Ligne 253:
   var EpnIcon = L.Icon.extend({   var EpnIcon = L.Icon.extend({
     options: {     options: {
-  iconUrl: 'http://savoirscom1.comptoir.net/_media/geo_data/arobase-black_25x26.png',+  iconUrl: 'http://savoirscommuns.comptoir.net/_media/geo_data/arobase-black_25x26.png',
       iconSize:     [25,26],       iconSize:     [25,26],
       iconAnchor:   [0,0],       iconAnchor:   [0,0],
Ligne 262: Ligne 263:
     return {     return {
       fillColor : 'green',       fillColor : 'green',
-      fillOpacity : 0.1+      fillOpacity : 0.4
-      weight : 2,+      weight : 3,
       opacity : 1,       opacity : 1,
-      color : 'darkgrey',+      color : 'black',
       dashArray : '2'       dashArray : '2'
     };     };
Ligne 290: Ligne 291:
      */      */
   }   }
-   + 
-  mapInit(); +document.addEventListener('DOMContentLoaded', mapInit, false);
-  +
  
geo_data/associations_map_js.1469991136.txt.gz · Dernière modification: 21/08/2020 13:26 (modification externe)