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 36aead4 commit ddac4d4
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_a8dc1e132e95979b1835ce5e89345b39 {
#map_c56fed9badf7c131c0426f4887135b1f {
position: relative;
width: 100.0%;
height: 100.0%;
Expand Down Expand Up @@ -74,7 +74,7 @@
<body>


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

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


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





var tile_layer_37aae3c10b555c2f769097abda797cf0 = L.tileLayer(
var tile_layer_bd951defba1347c6dfc6beb0d26243fd = 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_37aae3c10b555c2f769097abda797cf0.addTo(map_a8dc1e132e95979b1835ce5e89345b39);
tile_layer_bd951defba1347c6dfc6beb0d26243fd.addTo(map_c56fed9badf7c131c0426f4887135b1f);


function geo_json_7bf2bf28c7325df1a37d7a9bad725380_highlighter(feature) {
function geo_json_47ae3c6d2d4548bdae6b967f764195fd_highlighter(feature) {
switch(feature.id) {
default:
return {"weight": 12};
}
}
function geo_json_7bf2bf28c7325df1a37d7a9bad725380_pointToLayer(feature, latlng) {
function geo_json_47ae3c6d2d4548bdae6b967f764195fd_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_7bf2bf28c7325df1a37d7a9bad725380_onEachFeature(feature, layer) {
function geo_json_47ae3c6d2d4548bdae6b967f764195fd_onEachFeature(feature, layer) {
layer.on({
mouseout: function(e) {
if(typeof e.target.setStyle === "function"){
geo_json_7bf2bf28c7325df1a37d7a9bad725380.resetStyle(e.target);
geo_json_47ae3c6d2d4548bdae6b967f764195fd.resetStyle(e.target);
}
},
mouseover: function(e) {
if(typeof e.target.setStyle === "function"){
const highlightStyle = geo_json_7bf2bf28c7325df1a37d7a9bad725380_highlighter(e.target.feature)
const highlightStyle = geo_json_47ae3c6d2d4548bdae6b967f764195fd_highlighter(e.target.feature)
e.target.setStyle(highlightStyle);
}
},
});
};
var geo_json_7bf2bf28c7325df1a37d7a9bad725380 = L.geoJson(null, {
onEachFeature: geo_json_7bf2bf28c7325df1a37d7a9bad725380_onEachFeature,
var geo_json_47ae3c6d2d4548bdae6b967f764195fd = L.geoJson(null, {
onEachFeature: geo_json_47ae3c6d2d4548bdae6b967f764195fd_onEachFeature,

pointToLayer: geo_json_7bf2bf28c7325df1a37d7a9bad725380_pointToLayer,
pointToLayer: geo_json_47ae3c6d2d4548bdae6b967f764195fd_pointToLayer,
});

function geo_json_7bf2bf28c7325df1a37d7a9bad725380_add (data) {
geo_json_7bf2bf28c7325df1a37d7a9bad725380
function geo_json_47ae3c6d2d4548bdae6b967f764195fd_add (data) {
geo_json_47ae3c6d2d4548bdae6b967f764195fd
.addData(data);
}
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_47ae3c6d2d4548bdae6b967f764195fd_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.bindPopup(
geo_json_47ae3c6d2d4548bdae6b967f764195fd.bindPopup(
function(layer){
let div = L.DomUtil.create('div');

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


geo_json_7bf2bf28c7325df1a37d7a9bad725380.addTo(map_a8dc1e132e95979b1835ce5e89345b39);
geo_json_47ae3c6d2d4548bdae6b967f764195fd.addTo(map_c56fed9badf7c131c0426f4887135b1f);


var geo_json_7bf2bf28c7325df1a37d7a9bad725380searchControl = new L.Control.Search({
layer: geo_json_7bf2bf28c7325df1a37d7a9bad725380,
var geo_json_47ae3c6d2d4548bdae6b967f764195fdsearchControl = new L.Control.Search({
layer: geo_json_47ae3c6d2d4548bdae6b967f764195fd,

propertyName: 'city_name',

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

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

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


</script>
Expand Down

0 comments on commit ddac4d4

Please sign in to comment.