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 1cbbb0c commit 26dc4c0
Showing 1 changed file with 30 additions and 30 deletions.
60 changes: 30 additions & 30 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
}

.responsive {
max-width: 80%;
max-width: 100%;
height: auto;
}
</style>
Expand Down 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_71009525ad101d85c34704f5bd11b588 {
#map_987ab9758c708703978419c398416244 {
position: relative;
width: 100.0%;
height: 100.0%;
Expand Down Expand Up @@ -74,7 +74,7 @@
<body>


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

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


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





var tile_layer_304bb80b0ae4e813b413f4afff477013 = L.tileLayer(
var tile_layer_75d29784d7213f2041da2b6af6b60e81 = 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": 10, "minZoom": 2, "noWrap": false, "opacity": 0.5, "subdomains": "abcd", "tms": false}
);


tile_layer_304bb80b0ae4e813b413f4afff477013.addTo(map_71009525ad101d85c34704f5bd11b588);
tile_layer_75d29784d7213f2041da2b6af6b60e81.addTo(map_987ab9758c708703978419c398416244);


function geo_json_46b726c1c6e9f4c10c2d52507c14057b_highlighter(feature) {
function geo_json_76972e76e227c4d8d4d4b37e7474b5d3_highlighter(feature) {
switch(feature.id) {
default:
return {"weight": 12};
}
}
function geo_json_46b726c1c6e9f4c10c2d52507c14057b_pointToLayer(feature, latlng) {
function geo_json_76972e76e227c4d8d4d4b37e7474b5d3_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_46b726c1c6e9f4c10c2d52507c14057b_onEachFeature(feature, layer) {
function geo_json_76972e76e227c4d8d4d4b37e7474b5d3_onEachFeature(feature, layer) {
layer.on({
mouseout: function(e) {
if(typeof e.target.setStyle === "function"){
geo_json_46b726c1c6e9f4c10c2d52507c14057b.resetStyle(e.target);
geo_json_76972e76e227c4d8d4d4b37e7474b5d3.resetStyle(e.target);
}
},
mouseover: function(e) {
if(typeof e.target.setStyle === "function"){
const highlightStyle = geo_json_46b726c1c6e9f4c10c2d52507c14057b_highlighter(e.target.feature)
const highlightStyle = geo_json_76972e76e227c4d8d4d4b37e7474b5d3_highlighter(e.target.feature)
e.target.setStyle(highlightStyle);
}
},
});
};
var geo_json_46b726c1c6e9f4c10c2d52507c14057b = L.geoJson(null, {
onEachFeature: geo_json_46b726c1c6e9f4c10c2d52507c14057b_onEachFeature,
var geo_json_76972e76e227c4d8d4d4b37e7474b5d3 = L.geoJson(null, {
onEachFeature: geo_json_76972e76e227c4d8d4d4b37e7474b5d3_onEachFeature,

pointToLayer: geo_json_46b726c1c6e9f4c10c2d52507c14057b_pointToLayer,
pointToLayer: geo_json_76972e76e227c4d8d4d4b37e7474b5d3_pointToLayer,
});

function geo_json_46b726c1c6e9f4c10c2d52507c14057b_add (data) {
geo_json_46b726c1c6e9f4c10c2d52507c14057b
function geo_json_76972e76e227c4d8d4d4b37e7474b5d3_add (data) {
geo_json_76972e76e227c4d8d4d4b37e7474b5d3
.addData(data);
}
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_76972e76e227c4d8d4d4b37e7474b5d3_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_76972e76e227c4d8d4d4b37e7474b5d3.setStyle(function(feature) {return feature.properties.style;});



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

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


geo_json_46b726c1c6e9f4c10c2d52507c14057b.addTo(map_71009525ad101d85c34704f5bd11b588);
geo_json_76972e76e227c4d8d4d4b37e7474b5d3.addTo(map_987ab9758c708703978419c398416244);


var geo_json_46b726c1c6e9f4c10c2d52507c14057bsearchControl = new L.Control.Search({
layer: geo_json_46b726c1c6e9f4c10c2d52507c14057b,
var geo_json_76972e76e227c4d8d4d4b37e7474b5d3searchControl = new L.Control.Search({
layer: geo_json_76972e76e227c4d8d4d4b37e7474b5d3,

propertyName: 'city_name',

Expand All @@ -201,21 +201,21 @@
hideMarkerOnCollapse: true

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

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


</script>
</html>
</html>

0 comments on commit 26dc4c0

Please sign in to comment.