summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
48000eb)
better if we do hit the end of the string. Closes #942.
setMapCenter(centre, zoom);
<% end %>
setMapCenter(centre, zoom);
<% end %>
+ <% if !layers.empty? %>
setMapLayers("<%= layers %>");
<% end %>
setMapLayers("<%= layers %>");
<% end %>
for (var layers = map.getLayersBy("isBaseLayer", false), i = 0; i < layers.length; i++) {
var c = layerConfig.charAt(l++);
for (var layers = map.getLayersBy("isBaseLayer", false), i = 0; i < layers.length; i++) {
var c = layerConfig.charAt(l++);
- layers[i].setVisibility(c == "T");
+ if (c == "T") {
+ layers[i].setVisibility(true);
+ } else if(c == "F") {
+ layers[i].setVisibility(false);
+ }