+ osm.getJSconstructor() + ";\n");
js.append(getJSinvoke("addLayer(osm" + osm.getId() + ","
+ osm.getId() + ")"));
}
if (layer instanceof WFS) {
WFS wfs = (WFS) layer;
js.append("var wfs" + wfs.getId() + " ="
+ wfs.getJSconstructor() + ";\n");
js.append(getJSinvoke("addLayer(wfs" + wfs.getId() + ","
+ wfs.getId() + ")"));
}
if (layer instanceof Vector) {
Vector vec = (Vector) layer;
js.append("var vec" + vec.getId() + " ="