diff --git a/omf/static/geoJsonMap/v3/leafletLayer.js b/omf/static/geoJsonMap/v3/leafletLayer.js index cb6d37c36..9217c3a08 100644 --- a/omf/static/geoJsonMap/v3/leafletLayer.js +++ b/omf/static/geoJsonMap/v3/leafletLayer.js @@ -285,9 +285,31 @@ class LeafletLayer { // implements ObserverInterface } } } else { + if (this.#observable.hasProperty('SOVI_RATNG', 'meta') && this.#observable.getProperty('SOVI_RATNG', 'meta') === 'Very High') { + return { + color: 'blue' + } + } else if (this.#observable.hasProperty('SOVI_RATNG', 'meta') && this.#observable.getProperty('SOVI_RATNG', 'meta') === 'Relatively High') { + return { + color: 'lightblue' + } + }else if (this.#observable.hasProperty('SOVI_RATNG', 'meta') && this.#observable.getProperty('SOVI_RATNG', 'meta') === 'Relatively Moderate') { + return { + color: 'lightgreen' + } + } else if (this.#observable.hasProperty('SOVI_RATNG', 'meta') && this.#observable.getProperty('SOVI_RATNG', 'meta') === 'Relatively Low') { + return { + color: 'yellow' + } + } else if (this.#observable.hasProperty('SOVI_RATNG', 'meta') && this.#observable.getProperty('SOVI_RATNG', 'meta') === 'Very Low') { + return { + color: 'grey' + } + }else { return { color: 'blue' } } + } } -} \ No newline at end of file +}