Skip to content

Commit

Permalink
map updating at 2024-01-08
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Jan 8, 2024
1 parent de9a0a7 commit 402a8ac
Showing 1 changed file with 27 additions and 27 deletions.
54 changes: 27 additions & 27 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
<meta name="viewport" content="width=device-width,
initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
<style>
#map_80c9104cade2076eacceed0e235fb774 {
#map_a8dc1e132e95979b1835ce5e89345b39 {
position: relative;
width: 100.0%;
height: 100.0%;
Expand Down Expand Up @@ -74,7 +74,7 @@
<body>


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

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


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





var tile_layer_9041bd89b51028f4bed47891adbb30a0 = L.tileLayer(
var tile_layer_37aae3c10b555c2f769097abda797cf0 = L.tileLayer(
"https://tile.openstreetmap.org/{z}/{x}/{y}.png",
{"attribution": "\u0026copy; \u003ca href=\"https://www.openstreetmap.org/copyright\"\u003eOpenStreetMap\u003c/a\u003e contributors", "detectRetina": false, "maxNativeZoom": 19, "maxZoom": 19, "minZoom": 2, "noWrap": false, "opacity": 0.7, "subdomains": "abc", "tms": false}
);


tile_layer_9041bd89b51028f4bed47891adbb30a0.addTo(map_80c9104cade2076eacceed0e235fb774);
tile_layer_37aae3c10b555c2f769097abda797cf0.addTo(map_a8dc1e132e95979b1835ce5e89345b39);


function geo_json_f356babe02f3ca0bb59cab4e87032bcd_highlighter(feature) {
function geo_json_7bf2bf28c7325df1a37d7a9bad725380_highlighter(feature) {
switch(feature.id) {
default:
return {"weight": 12};
}
}
function geo_json_f356babe02f3ca0bb59cab4e87032bcd_pointToLayer(feature, latlng) {
function geo_json_7bf2bf28c7325df1a37d7a9bad725380_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_f356babe02f3ca0bb59cab4e87032bcd_onEachFeature(feature, layer) {
function geo_json_7bf2bf28c7325df1a37d7a9bad725380_onEachFeature(feature, layer) {
layer.on({
mouseout: function(e) {
if(typeof e.target.setStyle === "function"){
geo_json_f356babe02f3ca0bb59cab4e87032bcd.resetStyle(e.target);
geo_json_7bf2bf28c7325df1a37d7a9bad725380.resetStyle(e.target);
}
},
mouseover: function(e) {
if(typeof e.target.setStyle === "function"){
const highlightStyle = geo_json_f356babe02f3ca0bb59cab4e87032bcd_highlighter(e.target.feature)
const highlightStyle = geo_json_7bf2bf28c7325df1a37d7a9bad725380_highlighter(e.target.feature)
e.target.setStyle(highlightStyle);
}
},
});
};
var geo_json_f356babe02f3ca0bb59cab4e87032bcd = L.geoJson(null, {
onEachFeature: geo_json_f356babe02f3ca0bb59cab4e87032bcd_onEachFeature,
var geo_json_7bf2bf28c7325df1a37d7a9bad725380 = L.geoJson(null, {
onEachFeature: geo_json_7bf2bf28c7325df1a37d7a9bad725380_onEachFeature,

pointToLayer: geo_json_f356babe02f3ca0bb59cab4e87032bcd_pointToLayer,
pointToLayer: geo_json_7bf2bf28c7325df1a37d7a9bad725380_pointToLayer,
});

function geo_json_f356babe02f3ca0bb59cab4e87032bcd_add (data) {
geo_json_f356babe02f3ca0bb59cab4e87032bcd
function geo_json_7bf2bf28c7325df1a37d7a9bad725380_add (data) {
geo_json_7bf2bf28c7325df1a37d7a9bad725380
.addData(data);
}
geo_json_f356babe02f3ca0bb59cab4e87032bcd_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_7bf2bf28c7325df1a37d7a9bad725380_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_f356babe02f3ca0bb59cab4e87032bcd.bindPopup(
geo_json_7bf2bf28c7325df1a37d7a9bad725380.bindPopup(
function(layer){
let div = L.DomUtil.create('div');

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


geo_json_f356babe02f3ca0bb59cab4e87032bcd.addTo(map_80c9104cade2076eacceed0e235fb774);
geo_json_7bf2bf28c7325df1a37d7a9bad725380.addTo(map_a8dc1e132e95979b1835ce5e89345b39);


var geo_json_f356babe02f3ca0bb59cab4e87032bcdsearchControl = new L.Control.Search({
layer: geo_json_f356babe02f3ca0bb59cab4e87032bcd,
var geo_json_7bf2bf28c7325df1a37d7a9bad725380searchControl = new L.Control.Search({
layer: geo_json_7bf2bf28c7325df1a37d7a9bad725380,

propertyName: 'city_name',

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

});
geo_json_f356babe02f3ca0bb59cab4e87032bcdsearchControl.on('search:locationfound', function(e) {
geo_json_f356babe02f3ca0bb59cab4e87032bcd.setStyle(function(feature){
geo_json_7bf2bf28c7325df1a37d7a9bad725380searchControl.on('search:locationfound', function(e) {
geo_json_7bf2bf28c7325df1a37d7a9bad725380.setStyle(function(feature){
return feature.properties.style
})

if(e.layer._popup)
e.layer.openPopup();
})
geo_json_f356babe02f3ca0bb59cab4e87032bcdsearchControl.on('search:collapsed', function(e) {
geo_json_f356babe02f3ca0bb59cab4e87032bcd.setStyle(function(feature){
geo_json_7bf2bf28c7325df1a37d7a9bad725380searchControl.on('search:collapsed', function(e) {
geo_json_7bf2bf28c7325df1a37d7a9bad725380.setStyle(function(feature){
return feature.properties.style
});
});
map_80c9104cade2076eacceed0e235fb774.addControl( geo_json_f356babe02f3ca0bb59cab4e87032bcdsearchControl );
map_a8dc1e132e95979b1835ce5e89345b39.addControl( geo_json_7bf2bf28c7325df1a37d7a9bad725380searchControl );


</script>
Expand Down

0 comments on commit 402a8ac

Please sign in to comment.