edit orange pills

This commit is contained in:
HolgerHatGarKeineNode
2023-02-16 20:15:34 +01:00
parent 9b05c8eda5
commit 2350e9c2f4
9 changed files with 248 additions and 167 deletions

View File

@@ -33,11 +33,11 @@
if(element.op > 0) {
const marker = L.circleMarker([element.lat, element.lng], {color: '#f7931a', radius: 8});
marker.url = element.url;
marker.addTo(map).on('click', e => window.open(e.target.url, '_blank'));
marker.addTo(map).on('click', e => window.open(e.target.url, '_self'));
} else {
const marker = L.circleMarker([element.lat, element.lng], {color: '#111827', radius: 8});
marker.url = element.url;
marker.addTo(map).on('click', e => window.open(e.target.url, '_blank'));
marker.addTo(map).on('click', e => window.open(e.target.url, '_self'));
}
});