fall back to mapPlaceFeatureColor if type does not have a color

This commit is contained in:
j 2023-06-24 16:09:32 +05:30
parent 6c72d16244
commit 7601eeb28a

View file

@ -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 {