You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
In Viewer.js - getState -
...
if (!source) {
throw new Error("Could not find source for layer '" + record.get("name") + "'");
}
should be more verbose if eg. layer is a OpenLayers.Layer.Vector. Replace with something like:
throw new Error("Could not find source for record '" + record.get("name") + " and layer" + layer.name + "'");
The text was updated successfully, but these errors were encountered:
Also OpenLayers.Layer.Vector has no source so can be skipped - by replacing
if (layer.displayInLayerSwitcher ) {
with
if (layer.displayInLayerSwitcher && !(layer instanceof OpenLayers.Layer.Vector) ) {
In Viewer.js - getState -
...
if (!source) {
throw new Error("Could not find source for layer '" + record.get("name") + "'");
}
should be more verbose if eg. layer is a OpenLayers.Layer.Vector. Replace with something like:
throw new Error("Could not find source for record '" + record.get("name") + " and layer" + layer.name + "'");
The text was updated successfully, but these errors were encountered: