/** * Adds the group of layers to the map. * * @param map * @return LayerGroup */ public LayerGroup addTo(Map map) { LayerGroupImpl.addTo(getJSObject(), map.getJSObject()); return this; }
/** * Removes all the layers from the group. * * @return LayerGroup */ public LayerGroup clearLayers() { LayerGroupImpl.clearLayers(getJSObject()); return this; }
/** * Removes a given layer from the group. * * @param layer to remove * @return LayerGroup */ public LayerGroup removeLayer(ILayer layer) { LayerGroupImpl.removeLayer(getJSObject(), layer.getJSObject()); return this; }
/** * Adds a given layer to the group. * * @param layer * @return LayerGroup */ public LayerGroup addLayer(ILayer layer) { LayerGroupImpl.addLayer(getJSObject(), layer.getJSObject()); return this; }
public LayerGroup(String alias, ILayer[] layers) { this(LayerGroupImpl.create(new JSObjectArray(layers).getJSObject())); setAlias(alias); }
public LayerGroup(ILayer[] layers) { this(LayerGroupImpl.create(new JSObjectArray(layers).getJSObject())); }