Change the marker options iconSize and iconAnchor to snake case

This commit is contained in:
Emanuel Mutschlechner
2020-01-07 23:38:33 +01:00
parent 49f829643a
commit 195c8b1218
5 changed files with 11 additions and 7 deletions

View File

@@ -24,7 +24,7 @@ const parseMarkers = element => {
const lat = parseNumberFloat(marker.lat);
const lng = parseNumberFloat(marker.lng);
const {title, url, popup, icon, iconSize, iconAnchor} = marker;
const {title, url, popup, icon, icon_size, icon_anchor} = marker;
return {
title,
@@ -33,8 +33,8 @@ const parseMarkers = element => {
url,
popup,
icon,
iconSize,
iconAnchor,
iconSize: icon_size || marker.iconSize,
iconAnchor: icon_anchor || marker.iconAnchor,
};
});
};