diff options
author | Thomas Steur <tsteur@users.noreply.github.com> | 2015-06-09 07:41:33 +0300 |
---|---|---|
committer | Thomas Steur <tsteur@users.noreply.github.com> | 2015-06-09 07:41:33 +0300 |
commit | 5a4a8697d967d5d5a2964c3311776301de09740e (patch) | |
tree | 27a4edecd92d35a16489725bd03387bc4a4b68e1 /plugins/UserCountryMap | |
parent | f2db0ad478ebcb33740bdd33fdd7beec4a3a3d5a (diff) |
this might prevent a message "could not find layer regions"
Diffstat (limited to 'plugins/UserCountryMap')
-rw-r--r-- | plugins/UserCountryMap/javascripts/visitor-map.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/plugins/UserCountryMap/javascripts/visitor-map.js b/plugins/UserCountryMap/javascripts/visitor-map.js index 1c7322c651..6dfc78c6ab 100644 --- a/plugins/UserCountryMap/javascripts/visitor-map.js +++ b/plugins/UserCountryMap/javascripts/visitor-map.js @@ -811,7 +811,8 @@ */ function updateCitySymbols() { // color regions in white as background for symbols - if (map.getLayer('regions')) map.getLayer('regions').style('fill', invisibleRegionBackgroundColor); + var layerName = self.mode != "region" ? "regions2" : "regions"; + if (map.getLayer(layerName)) map.getLayer(layerName).style('fill', invisibleRegionBackgroundColor); indicateLoading(); |