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

@@ -7,9 +7,10 @@ import {createMarker} from '../utils/leaflet';
// http://leaflet-extras.github.io/leaflet-providers/preview/
// TODO custom icons: https://leafletjs.com/examples/custom-icons/
const name = 'mapquest';
export default {
NAME: 'mapquest',
name,
createMap(element, mapData) {
if (!isDefined(window.L)) {
logError('leaflet is undefined');
@@ -35,5 +36,5 @@ export default {
return map;
},
createMarker,
createMarker: createMarker.bind(null, name),
}