Skip to content

Commit

Permalink
ship quaters
Browse files Browse the repository at this point in the history
  • Loading branch information
Daniel Dahme committed Sep 23, 2023
1 parent 25c46a3 commit af4927b
Show file tree
Hide file tree
Showing 3 changed files with 53 additions and 24 deletions.
23 changes: 2 additions & 21 deletions docs/js/map.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,3 @@
// import * from "http://codeformuenster.org/open-data-karte-muenster/maps/Ebene_2_Stadtteil.geojson.js";


const coordiates = [51.96, 7.62];
const scale = 11;

Expand Down Expand Up @@ -47,23 +44,7 @@ function onEachQuater(quater, layer){
})
}

var quater = L.geoJson(stadtteileMuenster2, {
var quater = L.geoJson(quatersOfMuenster, {
style: style,
onEachFeature: onEachQuater
}).addTo(map);


// function onRegionClick(e) {
// console.log(e)
// console.log(e.layer.feature.properties.Name)
// // get clicks or define it
// if (e.layer.feature.properties.counts == undefined){
// e.layer.feature.properties.counts = 0
// }
// e.layer.feature.properties.counts++
// quater.setStyle(style(e.layer.feature.properties.counts))
// console.log(e)
// console.log(e.layer.feature.properties.counts)
// }

// quater.on('click', onRegionClick);
}).addTo(map);
Loading

0 comments on commit af4927b

Please sign in to comment.