...
You can do this one of two ways in Weave, depending on it being easier to remove the layers you don't want or if it's easier to include just the layers that you do want, but you should use only on of those methods and not both. If you want to only list the layers to include in the final map engine you can add a layers
tag to the map engine that has one or more individual layer
tags within for each layer that you want to include, alternatively if you want to remove layers you'd add a remove
tag between the layers
and layer
tags, e.g.d add a remove
tag between the layers
and layer
tags, e.g.
Code Block |
---|
language | xml |
---|
title | Include only two layers from a map engine |
---|
|
<wms:mapengine id="test">
...
<layers>
<layer>sa_temp_2012</layer>
<layer>sa_temp_2016</layer>
</layers>
</wms:mapengine> |
Code Block |
---|
language | xml |
---|
title | Remove four layers from a map engine |
---|
|
<wms:mapengine id="test">
...
<layers>
<remove>
<layer>nt_temp_2012</layer>
<layer>wa_temp_2012</layer>
<layer>nt_temp_2016</layer>
<layer>wa_temp_2016</layer>
</remove>
</layers>
</wms:mapengine> |
Note that as of Weave 2.5.20 it's possible to specify a wildcard using *
for the layer id's, e.g.
Code Block |
---|
<wms:mapengine id="test">
...
<layers>
<remove>
<layer>nt_temp_*</layer>
<layer>wa_temp_*</layer>
</remove>
</layers>
</wms:mapengine> |
Drawing map selections
Note |
---|
The following information about drawing selections is now obsolete. You should instead refer to the Selection Map Engine. |
...
Code Block |
---|
| xml |
---|
| xml |
---|
title | Adding attribution to the map view |
---|
linenumbers | true |
---|
|
<client:config id="...">
...
<view id="com.cohga.html.client.map.mapView">
<control id="com.cohga.client.mapctrl.attribution"/>
...
<mapengine id="raster">
....
</mapengine>
<mapengine id="vector">
<attribution>Copyright(c) 2010</attribution>
....
</mapengine>
</view>
</client:config>
|
<layer>wa_temp_2012</layer>
<layer>wa_temp_2016</layer>