From 7601eeb28a1704d750d2398e018d08ab561009f7 Mon Sep 17 00:00:00 2001 From: j Date: Sat, 24 Jun 2023 16:09:32 +0530 Subject: [PATCH] fall back to mapPlaceFeatureColor if type does not have a color --- source/UI/js/Map/MapMarker.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/source/UI/js/Map/MapMarker.js b/source/UI/js/Map/MapMarker.js index b126a30a..10eb69eb 100644 --- a/source/UI/js/Map/MapMarker.js +++ b/source/UI/js/Map/MapMarker.js @@ -212,7 +212,7 @@ Ox.MapMarker = function(options) { size = that.map.options('markerSize'); //Ox.Log('Map', 'setOptions, that.map: ', that.map) if (color == 'auto') { - that.color = typeColor[that.place.type]; + that.color = typeColor[that.place.type] || typeColor['mapPlaceFeatureColor']; } else if (Ox.isArray(color)) { that.color = color; } else {