#javascript #mapy #leaflet
W leaflet https://leafletjs.com/reference-1.5.0.html
trzeba używać tego tak:
marker = L.marker([50.28895538456755, 18.681907653808594]).addTo(map)
chciałbym
W leaflet https://leafletjs.com/reference-1.5.0.html
trzeba używać tego tak:
marker = L.marker([50.28895538456755, 18.681907653808594]).addTo(map)
chciałbym

























map.prototype.marker = function(lat, lon) {
return L.marker(lat, lon).addTo(this);
}