Widget that will create a basic OpenLayers map with OpenLayers layer objects.
The GeoPrisma Map widget configures the OL map object with its OPTIONS. A LAYERS node contains the configuration for each layers. Note that the layers are created in the order specified in the LAYERS node.
NB: Vector layers added to the map currently use the MapFish protocol.
This widget basically wraps the OpenLayers map object so valid options and parameters can be deduced by looking at the OpenLayers documentation
See more developer details in the Map.xslt file.
All the options of the Map widget set the corresponding OpenLayers Map object options in the constructor. the list of supported options is:
maxextent: | Comma separated value of coordinates |
---|---|
maxresolution: | number |
numzoomlevels: | number |
projection: | EPSG string of the projection |
displayprojection: | |
EPSG string of the projection to display | |
resolutions: | Comma separated list of all resolution numbers |
restrictedextent: | |
Comma separated value of coordinates | |
scales: | Comma separated list of all scale numbers |
units: | string of the unit |
alloverlays: | boolean |
addLayers: | (Boolean) Defaults to true. Add layers when they are created or not. Only thoses created by this widget are affected by this option. |
<map>
<options>
<maxextent>-180,-90,180,90</maxextent>
<!-- Other map option here -->
</options>
</map>
Each <layer> node define an OpenLayers Layer object. All the options defined in the layer node are applied to the layer constructor. There’s also 2 parameters mandatory to the layer creation:
resourcenames/resourcename: | |
---|---|
Name of the resource to add in the map. Combined with the wms servicetype, there can be multiple resources in one layer. | |
servicetype: | Type of layer to add. Currently the servicetype supported are: wms, tilecache, featureserver and gymo. |
<map>
<layers>
<layer>
<resourcenames>
<resourcename>Resource1</resourcename>
</resourcenames>
<servicetype>tilecache</servicetype>
...
</layer>
</layers>
</map>
extractattributes: | |
---|---|
boolean |
|
format: | string |
isbaselayer: | boolean |
layername: | String of the unique layer object name. (Default is the resource name) |
maxfeatures: | number |
maxresolution: | number |
minresolution: | number |
maxscale: | number |
minscale: | number |
minzoomlevel: | number |
opacity: | float |
projection: | EPSG string of the projection |
scales: | Comma separated list of all scale numbers |
buffer: | integer |
singletile: | boolean |
sphericalmercator: | |
boolean |
|
strategies: | All strategy used on a featureserver layer. |
cluster: | boolean |
stylemap: | Only for featureserver layer |
group: |
|
transitioneffect: | |
String (either default or resize) |
|
transparent: | boolean |
typename: | ??? |
visibility: | boolean (Is the layer visible on load. True by default) |
<map>
<layers>
<layer>
<options>
<layername>ResourceVMap0_TC</layername>
<isbaselayer>true</isbaselayer>
<projection>EPSG:4326</projection>
...
</options>
</layer>
</layers>
</map>
<map>
<name>DefaultMap</name>
<options>
<maxextent>-180,-90,180,90</maxextent>
<!-- Other map option here -->
</options>
<layers>
<layer>
<resourcenames>
<resourcename>ResourceVMap0</resourcename>
</resourcenames>
<servicetype>tilecache</servicetype>
<options>
<layername>ResourceVMap0_TC</layername>
<isbaselayer>true</isbaselayer>
<projection>EPSG:4326</projection>
</options>
</layer>
</layers>
</map>
Same as OpenLayers Map object.
featureserver, wms, tilecache, gymo
read