<!DOCTYPE html><html><head> <meta charset=utf-8 /> <title>A simple map</title> <meta name='viewport' content='initial-scale=1,maximum-scale=1,user-scalable=no' /> <style type="text/css" media="screen"> body { margin:0; padding:0; } #map { position:absolute; top:0; bottom:0; width:100%; } </style></head><body> <script src="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.js"></script> <link rel="stylesheet" href="http://cdn.leafletjs.com/leaflet-0.7.3/leaflet.css" /> <div id='map'></div> <script src="src/leaflet.js"></script> <script src="src/catiline.js"></script> <script src="leaflet.fgdb.js"></script> <script src="src/colorbrewer.js"></script> <script src="src/spin.js"></script><script >
//creo una mappa con relativa posizione e zoom iniziali var map = L.map('map').setView([42.4110, 12.8868], 6);
//aggiungo un layer di sfondo, o Base Layer var baseLayer = L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',{ attribution: 'Map data © <a href="http://openstreetmap.org">OpenStreetMap</a> contributors, <a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>, Imagery © <a href="http:// mapbox.com">Mapbox</a>', maxZoom: 18 }).addTo(map); var options = { onEachFeature: function(feature, layer) { if (feature.properties) { layer.bindPopup(Object.keys(feature.properties).map(function(k) { return k + ": " + feature.properties[k]; }).join("<br />"), { maxHeight: 200 }); } }, style:function(f){ return { opacity: 1, fillOpacity: 0.7, radius: 6, color: color(f) }; }, pointToLayer: function(feature, latlng) { return L.circleMarker(latlng, { opacity: 1, fillOpacity: 0.7, color: color(feature) }); } }; L.fileGDB('site/NIDI.gdb',options).addTo(m);
</script> </body></html>--
---
You received this message because you are subscribed to a topic in the Google Groups "Leaflet" group.
To unsubscribe from this topic, visit https://groups.google.com/d/topic/leaflet-js/EAELTM3TXwA/unsubscribe.
To unsubscribe from this group and all its topics, send an email to leaflet-js+...@googlegroups.com.
For more options, visit https://groups.google.com/d/optout.