fall back to mapPlaceFeatureColor if type does not have a color
This commit is contained in:
parent
6c72d16244
commit
7601eeb28a
1 changed files with 1 additions and 1 deletions
|
@ -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 {
|
||||
|
|
Loading…
Reference in a new issue