Change the marker options iconSize and iconAnchor to snake case
This commit is contained in:
6
resources/js/utils/parser.js
vendored
6
resources/js/utils/parser.js
vendored
@@ -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,
|
||||
};
|
||||
});
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user