Skip to content

Commit

Permalink
map updating at 2024-08-27
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Aug 27, 2024
1 parent 9fc25e4 commit 71f1fe1
Showing 1 changed file with 30 additions and 29 deletions.
59 changes: 30 additions & 29 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,15 @@
<script src="https://cdnjs.cloudflare.com/ajax/libs/Leaflet.awesome-markers/2.0.2/leaflet.awesome-markers.js"></script>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/leaflet.css"/>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/[email protected]/dist/css/bootstrap.min.css"/>
<link rel="stylesheet" href="https://netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap.min.css"/>
<link rel="stylesheet" href="https://netdna.bootstrapcdn.com/bootstrap/3.0.0/css/bootstrap-glyphicons.css"/>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/@fortawesome/[email protected]/css/all.min.css"/>
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/Leaflet.awesome-markers/2.0.2/leaflet.awesome-markers.css"/>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/gh/python-visualization/folium/folium/templates/leaflet.awesome.rotate.min.css"/>

<meta name="viewport" content="width=device-width,
initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<style>
#map_0cc81a67fa156aaba82d956c2abf55c8 {
#map_71009525ad101d85c34704f5bd11b588 {
position: relative;
width: 100.0%;
height: 100.0%;
Expand Down Expand Up @@ -74,7 +74,7 @@
<body>


<div class="folium-map" id="map_0cc81a67fa156aaba82d956c2abf55c8" > <a href="https://kauevestena.github.io/opensidewalkmap/about.html">
<div class="folium-map" id="map_71009525ad101d85c34704f5bd11b588" > <a href="https://kauevestena.github.io/opensidewalkmap/about.html">

<img
src="assets/page_logo.png"
Expand All @@ -93,8 +93,8 @@
<script>


var map_0cc81a67fa156aaba82d956c2abf55c8 = L.map(
"map_0cc81a67fa156aaba82d956c2abf55c8",
var map_71009525ad101d85c34704f5bd11b588 = L.map(
"map_71009525ad101d85c34704f5bd11b588",
{
center: [0.0, 0.0],
crs: L.CRS.EPSG3857,
Expand All @@ -103,63 +103,64 @@
preferCanvas: false,
}
);
L.control.scale().addTo(map_0cc81a67fa156aaba82d956c2abf55c8);
L.control.scale().addTo(map_71009525ad101d85c34704f5bd11b588);





var tile_layer_7355c51f117a4fd851ff563777b4931d = L.tileLayer(
var tile_layer_304bb80b0ae4e813b413f4afff477013 = L.tileLayer(
"https://{s}.basemaps.cartocdn.com/dark_all/{z}/{x}/{y}{r}.png",
{"attribution": "\u0026copy; \u003ca href=\"https://www.openstreetmap.org/copyright\"\u003eOpenStreetMap\u003c/a\u003e contributors \u0026copy; \u003ca href=\"https://carto.com/attributions\"\u003eCARTO\u003c/a\u003e", "detectRetina": false, "maxNativeZoom": 20, "maxZoom": 20, "minZoom": 2, "noWrap": false, "opacity": 0.5, "subdomains": "abcd", "tms": false}
{"attribution": "\u0026copy; \u003ca href=\"https://www.openstreetmap.org/copyright\"\u003eOpenStreetMap\u003c/a\u003e contributors \u0026copy; \u003ca href=\"https://carto.com/attributions\"\u003eCARTO\u003c/a\u003e", "detectRetina": false, "maxNativeZoom": 20, "maxZoom": 10, "minZoom": 2, "noWrap": false, "opacity": 0.5, "subdomains": "abcd", "tms": false}
);


tile_layer_7355c51f117a4fd851ff563777b4931d.addTo(map_0cc81a67fa156aaba82d956c2abf55c8);
tile_layer_304bb80b0ae4e813b413f4afff477013.addTo(map_71009525ad101d85c34704f5bd11b588);


function geo_json_6c2e618d942867ef72b7c809526dffa5_highlighter(feature) {
function geo_json_46b726c1c6e9f4c10c2d52507c14057b_highlighter(feature) {
switch(feature.id) {
default:
return {"weight": 12};
}
}
function geo_json_6c2e618d942867ef72b7c809526dffa5_pointToLayer(feature, latlng) {
function geo_json_46b726c1c6e9f4c10c2d52507c14057b_pointToLayer(feature, latlng) {
var opts = {"bubblingMouseEvents": true, "color": "#800080", "dashArray": null, "dashOffset": null, "fill": true, "fillColor": "magenta", "fillOpacity": 1, "fillRule": "evenodd", "lineCap": "round", "lineJoin": "round", "opacity": 1.0, "radius": 7, "stroke": true, "weight": 3};

return new L.CircleMarker(latlng, opts)
}

function geo_json_6c2e618d942867ef72b7c809526dffa5_onEachFeature(feature, layer) {
function geo_json_46b726c1c6e9f4c10c2d52507c14057b_onEachFeature(feature, layer) {
layer.on({
mouseout: function(e) {
if(typeof e.target.setStyle === "function"){
geo_json_6c2e618d942867ef72b7c809526dffa5.resetStyle(e.target);
geo_json_46b726c1c6e9f4c10c2d52507c14057b.resetStyle(e.target);
}
},
mouseover: function(e) {
if(typeof e.target.setStyle === "function"){
const highlightStyle = geo_json_6c2e618d942867ef72b7c809526dffa5_highlighter(e.target.feature)
const highlightStyle = geo_json_46b726c1c6e9f4c10c2d52507c14057b_highlighter(e.target.feature)
e.target.setStyle(highlightStyle);
}
},
});
};
var geo_json_6c2e618d942867ef72b7c809526dffa5 = L.geoJson(null, {
onEachFeature: geo_json_6c2e618d942867ef72b7c809526dffa5_onEachFeature,
var geo_json_46b726c1c6e9f4c10c2d52507c14057b = L.geoJson(null, {
onEachFeature: geo_json_46b726c1c6e9f4c10c2d52507c14057b_onEachFeature,

pointToLayer: geo_json_6c2e618d942867ef72b7c809526dffa5_pointToLayer,
pointToLayer: geo_json_46b726c1c6e9f4c10c2d52507c14057b_pointToLayer,
});

function geo_json_6c2e618d942867ef72b7c809526dffa5_add (data) {
geo_json_6c2e618d942867ef72b7c809526dffa5
function geo_json_46b726c1c6e9f4c10c2d52507c14057b_add (data) {
geo_json_46b726c1c6e9f4c10c2d52507c14057b
.addData(data);
}
geo_json_6c2e618d942867ef72b7c809526dffa5_add({"bbox": [-77.041315, -25.4295963, -49.2712724, -12.065698], "features": [{"bbox": [-49.2712724, -25.4295963, -49.2712724, -25.4295963], "geometry": {"coordinates": [-49.2712724, -25.4295963], "type": "Point"}, "id": "0", "properties": {"Place:": "\u003ca href=\"https://kauevestena.github.io/opensidewalkmap_beta/\"\u003eCuritiba\u003c/a\u003e", "center_lat": -25.4295963, "center_long": -49.2712724, "city_name": "Curitiba", "url": "https://kauevestena.github.io/opensidewalkmap_beta/"}, "type": "Feature"}, {"bbox": [-77.041315, -12.065698, -77.041315, -12.065698], "geometry": {"coordinates": [-77.041315, -12.065698], "type": "Point"}, "id": "1", "properties": {"Place:": "\u003ca href=\"https://opensidewalkmap.github.io/lima/\"\u003eLima\u003c/a\u003e", "center_lat": -12.065698, "center_long": -77.041315, "city_name": "Lima", "url": "https://opensidewalkmap.github.io/lima/"}, "type": "Feature"}], "type": "FeatureCollection"});
geo_json_46b726c1c6e9f4c10c2d52507c14057b_add({"bbox": [-77.041315, -25.4295963, -49.2712724, -12.065698], "features": [{"bbox": [-49.2712724, -25.4295963, -49.2712724, -25.4295963], "geometry": {"coordinates": [-49.2712724, -25.4295963], "type": "Point"}, "id": "0", "properties": {"Place:": "\u003ca href=\"https://kauevestena.github.io/opensidewalkmap_beta/\"\u003eCuritiba\u003c/a\u003e", "center_lat": -25.4295963, "center_long": -49.2712724, "city_name": "Curitiba", "url": "https://kauevestena.github.io/opensidewalkmap_beta/"}, "type": "Feature"}, {"bbox": [-77.041315, -12.065698, -77.041315, -12.065698], "geometry": {"coordinates": [-77.041315, -12.065698], "type": "Point"}, "id": "1", "properties": {"Place:": "\u003ca href=\"https://opensidewalkmap.github.io/lima/\"\u003eLima\u003c/a\u003e", "center_lat": -12.065698, "center_long": -77.041315, "city_name": "Lima", "url": "https://opensidewalkmap.github.io/lima/"}, "type": "Feature"}], "type": "FeatureCollection"});
geo_json_46b726c1c6e9f4c10c2d52507c14057b.setStyle(function(feature) {return feature.properties.style;});



geo_json_6c2e618d942867ef72b7c809526dffa5.bindPopup(
geo_json_46b726c1c6e9f4c10c2d52507c14057b.bindPopup(
function(layer){
let div = L.DomUtil.create('div');

Expand All @@ -183,11 +184,11 @@
,{"className": "foliumpopup"});


geo_json_6c2e618d942867ef72b7c809526dffa5.addTo(map_0cc81a67fa156aaba82d956c2abf55c8);
geo_json_46b726c1c6e9f4c10c2d52507c14057b.addTo(map_71009525ad101d85c34704f5bd11b588);


var geo_json_6c2e618d942867ef72b7c809526dffa5searchControl = new L.Control.Search({
layer: geo_json_6c2e618d942867ef72b7c809526dffa5,
var geo_json_46b726c1c6e9f4c10c2d52507c14057bsearchControl = new L.Control.Search({
layer: geo_json_46b726c1c6e9f4c10c2d52507c14057b,

propertyName: 'city_name',

Expand All @@ -200,20 +201,20 @@
hideMarkerOnCollapse: true

});
geo_json_6c2e618d942867ef72b7c809526dffa5searchControl.on('search:locationfound', function(e) {
geo_json_6c2e618d942867ef72b7c809526dffa5.setStyle(function(feature){
geo_json_46b726c1c6e9f4c10c2d52507c14057bsearchControl.on('search:locationfound', function(e) {
geo_json_46b726c1c6e9f4c10c2d52507c14057b.setStyle(function(feature){
return feature.properties.style
})

if(e.layer._popup)
e.layer.openPopup();
})
geo_json_6c2e618d942867ef72b7c809526dffa5searchControl.on('search:collapsed', function(e) {
geo_json_6c2e618d942867ef72b7c809526dffa5.setStyle(function(feature){
geo_json_46b726c1c6e9f4c10c2d52507c14057bsearchControl.on('search:collapsed', function(e) {
geo_json_46b726c1c6e9f4c10c2d52507c14057b.setStyle(function(feature){
return feature.properties.style
});
});
map_0cc81a67fa156aaba82d956c2abf55c8.addControl( geo_json_6c2e618d942867ef72b7c809526dffa5searchControl );
map_71009525ad101d85c34704f5bd11b588.addControl( geo_json_46b726c1c6e9f4c10c2d52507c14057bsearchControl );


</script>
Expand Down

0 comments on commit 71f1fe1

Please sign in to comment.