public void applyStyle(String layerName, String styledLayerName) {
executeMethod(getMethodName(), layerName, styledLayerName);
}
public Layer getLayer(String name) {
// TODO deal with not found
public void applyStyle(String layerName, String styledLayerName) {
executeMethod(getMethodName(), layerName, styledLayerName);
}
public Layer getLayer(String name) {
// TODO deal with not found
if (getJsClient().isInstanceOf(reference, AbstractOlObject.getJsClassName(VectorLayer.class))) {
return new VectorLayer(getJsClient(), reference);
} else if (getJsClient().isInstanceOf(reference, AbstractOlObject.getJsClassName(TileLayer.class))) {
if (getJsClient().isInstanceOf(reference, AbstractOlObject.getJsClassName(VectorLayer.class))) {
return new VectorLayer(getJsClient(), reference);
} else if (getJsClient().isInstanceOf(reference, AbstractOlObject.getJsClassName(TileLayer.class))) {