Ticket #937: Map.936.patch
| File Map.936.patch, 0.9 kB (added by penyaskito, 1 year ago) |
|---|
-
Map.js
old new 1143 1143 // to call moveLayer so that the layer can be turned 1144 1144 // off or on. 1145 1145 layer.inRange = inRange; 1146 moveLayer = true; 1147 this.events.triggerEvent("changelayer"); 1146 if (inRange === false) { 1147 layer.setVisibility(false); 1148 } 1149 else { 1150 moveLayer = true; 1151 this.events.triggerEvent("changelayer"); 1152 } 1153 1148 1154 } else { 1149 1155 // If nothing has changed, then we only move the layer 1150 1156 // if it is visible and inrange.
