Place track on top of plats

This commit is contained in:
Chandler Swift 2025-01-02 23:24:51 -06:00
parent adba133d75
commit beb4592233
Signed by: chandlerswift
GPG key ID: A851D929D52FB93F

View file

@ -96,12 +96,6 @@
const plats = await plats_req.json();
const data = await data_req.json();
L.geoJSON(track, {
style: {
color: "maroon",
},
}).addTo(map);
L.geoJSON(plats, {
filter: feature => !feature.properties.TAO_NAME.toLowerCase().includes("lawrence deer club"),
onEachFeature: function(feature, layer) {
@ -121,6 +115,12 @@
},
}).addTo(map);
L.geoJSON(track, {
style: {
color: "maroon",
},
}).addTo(map);
for (let stand of data.stands) {
if (stand.location) {
const marker = L.marker(stand.location).addTo(map);