Add marker popups

This commit is contained in:
Emanuel Mutschlechner
2020-01-06 20:43:43 +01:00
parent d3a34d0326
commit 3a2d2e2368
14 changed files with 485 additions and 163 deletions

View File

@@ -8,8 +8,10 @@ import {createMarker} from '../utils/leaflet';
// TODO custom icons: https://leafletjs.com/examples/custom-icons/
const name = 'osm';
export default {
NAME: 'osm',
name,
createMap(element, mapData) {
if (!isDefined(window.L)) {
logError('leaflet is undefined');
@@ -32,5 +34,5 @@ export default {
return map;
},
createMarker,
createMarker: createMarker.bind(null, name),
}