Skip to content

Commit

Permalink
map updating at 2023-10-31
Browse files Browse the repository at this point in the history
  • Loading branch information
github-actions committed Oct 31, 2023
1 parent d374c37 commit d57d4bc
Showing 1 changed file with 29 additions and 29 deletions.
58 changes: 29 additions & 29 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_2df2997593cf419a9b2bccacdfc0d860 {
#map_91d0c6d6e4e5f45e8c483cfd35e93b82 {
position: relative;
width: 100.0%;
height: 100.0%;
Expand Down Expand Up @@ -74,7 +74,7 @@
<body>


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

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


var map_2df2997593cf419a9b2bccacdfc0d860 = L.map(
"map_2df2997593cf419a9b2bccacdfc0d860",
var map_91d0c6d6e4e5f45e8c483cfd35e93b82 = L.map(
"map_91d0c6d6e4e5f45e8c483cfd35e93b82",
{
center: [0, 0],
crs: L.CRS.EPSG3857,
Expand All @@ -103,61 +103,61 @@
preferCanvas: false,
}
);
L.control.scale().addTo(map_2df2997593cf419a9b2bccacdfc0d860);
L.control.scale().addTo(map_91d0c6d6e4e5f45e8c483cfd35e93b82);





var tile_layer_94e315681493923e36be528a84ef7cb4 = L.tileLayer(
"https://stamen-tiles-{s}.a.ssl.fastly.net/toner/{z}/{x}/{y}.png",
{"attribution": "Map tiles by \u003ca target=\"_blank\" href=\"http://stamen.com\"\u003eStamen Design\u003c/a\u003e, under \u003ca target=\"_blank\" href=\"http://creativecommons.org/licenses/by/3.0\"\u003eCC BY 3.0\u003c/a\u003e. Data by \u0026copy; \u003ca target=\"_blank\" href=\"http://openstreetmap.org\"\u003eOpenStreetMap\u003c/a\u003e, under \u003ca target=\"_blank\" href=\"http://www.openstreetmap.org/copyright\"\u003eODbL\u003c/a\u003e.", "detectRetina": false, "maxNativeZoom": 10, "maxZoom": 10, "minZoom": 2, "noWrap": false, "opacity": 0.4, "subdomains": "abc", "tms": false}
).addTo(map_2df2997593cf419a9b2bccacdfc0d860);
var tile_layer_1a78eaf8ba227a8e0da5f9ce5176b3e4 = L.tileLayer(
"https://tiles.stadiamaps.com/tiles/stamen_toner/{z}/{x}/{y}{r}.{ext}",
{"attribution": "\u0026copy; \u003ca href=\"https://www.stadiamaps.com/\" target=\"_blank\"\u003eStadia Maps\u003c/a\u003e \u0026copy; \u003ca href=\"https://www.stamen.com/\" target=\"_blank\"\u003eStamen Design\u003c/a\u003e \u0026copy; \u003ca href=\"https://openmaptiles.org/\" target=\"_blank\"\u003eOpenMapTiles\u003c/a\u003e \u0026copy; \u003ca href=\"https://www.openstreetmap.org/copyright\"\u003eOpenStreetMap\u003c/a\u003e contributors", "detectRetina": false, "maxNativeZoom": 10, "maxZoom": 10, "minZoom": 2, "noWrap": false, "opacity": 0.4, "subdomains": "abc", "tms": false}
).addTo(map_91d0c6d6e4e5f45e8c483cfd35e93b82);


function geo_json_0240e67dd3ca14698cc50174d5e55124_highlighter(feature) {
function geo_json_fe7f6805d8bad9e7d94f344f44beba23_highlighter(feature) {
switch(feature.id) {
default:
return {"weight": 12};
}
}
function geo_json_0240e67dd3ca14698cc50174d5e55124_pointToLayer(feature, latlng) {
function geo_json_fe7f6805d8bad9e7d94f344f44beba23_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_0240e67dd3ca14698cc50174d5e55124_onEachFeature(feature, layer) {
function geo_json_fe7f6805d8bad9e7d94f344f44beba23_onEachFeature(feature, layer) {
layer.on({
mouseout: function(e) {
if(typeof e.target.setStyle === "function"){
geo_json_0240e67dd3ca14698cc50174d5e55124.resetStyle(e.target);
geo_json_fe7f6805d8bad9e7d94f344f44beba23.resetStyle(e.target);
}
},
mouseover: function(e) {
if(typeof e.target.setStyle === "function"){
const highlightStyle = geo_json_0240e67dd3ca14698cc50174d5e55124_highlighter(e.target.feature)
const highlightStyle = geo_json_fe7f6805d8bad9e7d94f344f44beba23_highlighter(e.target.feature)
e.target.setStyle(highlightStyle);
}
},
});
};
var geo_json_0240e67dd3ca14698cc50174d5e55124 = L.geoJson(null, {
onEachFeature: geo_json_0240e67dd3ca14698cc50174d5e55124_onEachFeature,
var geo_json_fe7f6805d8bad9e7d94f344f44beba23 = L.geoJson(null, {
onEachFeature: geo_json_fe7f6805d8bad9e7d94f344f44beba23_onEachFeature,

pointToLayer: geo_json_0240e67dd3ca14698cc50174d5e55124_pointToLayer
pointToLayer: geo_json_fe7f6805d8bad9e7d94f344f44beba23_pointToLayer
});

function geo_json_0240e67dd3ca14698cc50174d5e55124_add (data) {
geo_json_0240e67dd3ca14698cc50174d5e55124
function geo_json_fe7f6805d8bad9e7d94f344f44beba23_add (data) {
geo_json_fe7f6805d8bad9e7d94f344f44beba23
.addData(data)
.addTo(map_2df2997593cf419a9b2bccacdfc0d860);
.addTo(map_91d0c6d6e4e5f45e8c483cfd35e93b82);
}
geo_json_0240e67dd3ca14698cc50174d5e55124_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_fe7f6805d8bad9e7d94f344f44beba23_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_0240e67dd3ca14698cc50174d5e55124.bindPopup(
geo_json_fe7f6805d8bad9e7d94f344f44beba23.bindPopup(
function(layer){
let div = L.DomUtil.create('div');

Expand All @@ -181,8 +181,8 @@
,{"className": "foliumpopup"});


var geo_json_0240e67dd3ca14698cc50174d5e55124searchControl = new L.Control.Search({
layer: geo_json_0240e67dd3ca14698cc50174d5e55124,
var geo_json_fe7f6805d8bad9e7d94f344f44beba23searchControl = new L.Control.Search({
layer: geo_json_fe7f6805d8bad9e7d94f344f44beba23,

propertyName: 'city_name',

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

});
geo_json_0240e67dd3ca14698cc50174d5e55124searchControl.on('search:locationfound', function(e) {
geo_json_0240e67dd3ca14698cc50174d5e55124.setStyle(function(feature){
geo_json_fe7f6805d8bad9e7d94f344f44beba23searchControl.on('search:locationfound', function(e) {
geo_json_fe7f6805d8bad9e7d94f344f44beba23.setStyle(function(feature){
return feature.properties.style
})

if(e.layer._popup)
e.layer.openPopup();
})
geo_json_0240e67dd3ca14698cc50174d5e55124searchControl.on('search:collapsed', function(e) {
geo_json_0240e67dd3ca14698cc50174d5e55124.setStyle(function(feature){
geo_json_fe7f6805d8bad9e7d94f344f44beba23searchControl.on('search:collapsed', function(e) {
geo_json_fe7f6805d8bad9e7d94f344f44beba23.setStyle(function(feature){
return feature.properties.style
});
});
map_2df2997593cf419a9b2bccacdfc0d860.addControl( geo_json_0240e67dd3ca14698cc50174d5e55124searchControl );
map_91d0c6d6e4e5f45e8c483cfd35e93b82.addControl( geo_json_fe7f6805d8bad9e7d94f344f44beba23searchControl );


</script>
Expand Down

0 comments on commit d57d4bc

Please sign in to comment.