Example #1
0
 /**
  * Adds the group of layers to the map.
  *
  * @param map
  * @return LayerGroup
  */
 public LayerGroup addTo(Map map) {
   LayerGroupImpl.addTo(getJSObject(), map.getJSObject());
   return this;
 }
Example #2
0
 /**
  * Removes all the layers from the group.
  *
  * @return LayerGroup
  */
 public LayerGroup clearLayers() {
   LayerGroupImpl.clearLayers(getJSObject());
   return this;
 }
Example #3
0
 /**
  * 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;
 }
Example #4
0
 /**
  * Adds a given layer to the group.
  *
  * @param layer
  * @return LayerGroup
  */
 public LayerGroup addLayer(ILayer layer) {
   LayerGroupImpl.addLayer(getJSObject(), layer.getJSObject());
   return this;
 }
Example #5
0
 public LayerGroup(String alias, ILayer[] layers) {
   this(LayerGroupImpl.create(new JSObjectArray(layers).getJSObject()));
   setAlias(alias);
 }
Example #6
0
 public LayerGroup(ILayer[] layers) {
   this(LayerGroupImpl.create(new JSObjectArray(layers).getJSObject()));
 }