Add custom marker icon images

This commit is contained in:
Emanuel Mutschlechner
2020-01-06 19:05:16 +01:00
parent 4c9f08f229
commit 0650921c2f
18 changed files with 3676 additions and 2916 deletions

View File

@@ -23,13 +23,16 @@ const parseMarkers = element => {
return markers.map(marker => {
const lat = parseFloat(marker.lat);
const lng = parseFloat(marker.lng);
const {title, url} = marker;
const {title, url, icon, iconSize, iconAnchor} = marker;
return {
title,
lat,
lng,
url,
icon,
iconSize,
iconAnchor,
};
});
};