Last active
          October 7, 2021 08:28 
        
      - 
      
- 
        Save geospatialem/0e81d4f82aa5021613a5 to your computer and use it in GitHub Desktop. 
Revisions
- 
        geospatialem revised this gist Jul 26, 2015 . 1 changed file with 4 additions and 1 deletion.There are no files selected for viewingThis file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -11,7 +11,10 @@ ] }; var map = L.map('map', { center: [46.7830, -92.1005], zoom: 15 }); var OpenStreetMap_Mapnik = L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', { maxZoom: 19, 
- 
        geospatialem revised this gist Jul 26, 2015 . 1 changed file with 1 addition and 3 deletions.There are no files selected for viewingThis file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -1,10 +1,8 @@ <link rel="stylesheet" href="//cdn.leafletjs.com/leaflet-0.7.3/leaflet.css"> <script src="//cdn.leafletjs.com/leaflet-0.7.3/leaflet.js"></script> <div id="map" style="width: 600px; height: 400px"></div> <script> var geojson = { "type": "FeatureCollection", 
- 
        geospatialem revised this gist Jul 26, 2015 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewingThis file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -9,7 +9,7 @@ var geojson = { "type": "FeatureCollection", "features": [ { "type": "Feature", "id": 0, "properties": { "NAME": "Duluth Entertainment Convention Center (DECC)" }, "geometry": { "type": "Point", "coordinates": [ -92.097675, 46.781194 ] } } ] }; 
- 
        geospatialem revised this gist Jul 26, 2015 . 1 changed file with 7 additions and 2 deletions.There are no files selected for viewingThis file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -22,10 +22,15 @@ geojsonLayer = L.geoJson(geojson, { style: function(feature) { return { color: "green" }; }, pointToLayer: function(feature, latlng) { return new L.CircleMarker(latlng, { radius: 10, fillOpacity: 0.85 }); }, onEachFeature: function (feature, layer) { layer.bindPopup(feature.properties.NAME); 
- 
        geospatialem revised this gist Jul 26, 2015 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewingThis file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -22,7 +22,7 @@ geojsonLayer = L.geoJson(geojson, { style: function(feature) { return {color: "green"}; }, pointToLayer: function(feature, latlng) { return new L.CircleMarker(latlng, {radius: 10, fillOpacity: 0.85}); 
- 
        geospatialem renamed this gist Jul 26, 2015 . 1 changed file with 0 additions and 0 deletions.There are no files selected for viewingFile renamed without changes.
- 
        geospatialem revised this gist Jul 26, 2015 . 1 changed file with 1 addition and 1 deletion.There are no files selected for viewingThis file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -9,7 +9,7 @@ var geojson = { "type": "FeatureCollection", "features": [ { "type": "Feature", "id": 3, "properties": { "NAME": "Duluth Entertainment Convention Center (DECC)" }, "geometry": { "type": "Point", "coordinates": [ -92.097675, 46.781194 ] } } ] }; 
- 
        geospatialem created this gist Jul 26, 2015 .There are no files selected for viewingThis file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters. Learn more about bidirectional Unicode charactersOriginal file line number Diff line number Diff line change @@ -0,0 +1,36 @@ <link rel="stylesheet" href="//cdn.leafletjs.com/leaflet-0.7.3/leaflet.css"> <div id="map" style="width: 600px; height: 400px"></div> <script src="//code.jquery.com/jquery-2.1.4.min.js"></script> <script src="//cdn.leafletjs.com/leaflet-0.7.3/leaflet.js"></script> <script> var geojson = { "type": "FeatureCollection", "features": [ { "type": "Feature", "id": 3, "properties": { "NAME": "Duluth Entertainment Convention Center (DECC)", "ADDRESS": "350 Harbor Drive", "HOURS": "10:00 am - 5:00 pm", "WEBSITE": "http://www.decc.org" }, "geometry": { "type": "Point", "coordinates": [ -92.097675, 46.781194 ] } } ] }; var map = L.map('map').setView([46.7830, -92.1005], 15); var OpenStreetMap_Mapnik = L.tileLayer('http://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png', { maxZoom: 19, attribution: '© <a href="http://www.openstreetmap.org/copyright">OpenStreetMap</a>' }).addTo(map); geojsonLayer = L.geoJson(geojson, { style: function(feature) { return {color: feature.properties.GPSUserColor}; }, pointToLayer: function(feature, latlng) { return new L.CircleMarker(latlng, {radius: 10, fillOpacity: 0.85}); }, onEachFeature: function (feature, layer) { layer.bindPopup(feature.properties.NAME); } }); map.addLayer(geojsonLayer); </script>