.. _widgets-map-label: ====== Map ====== .. note:: This widget is **deprecated**. Use the :ref:`widgets-mappanel-label` and :ref:`widgets-layer-label` widgets instead. 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. Notice -------- 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. Map Options ------------ 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. .. code-block:: xml -180,-90,180,90 Layers -------- Each 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. .. code-block:: xml Resource1 tilecache ... .. _widgets-map-layer-options-label: Layer Options --------------- :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: (String) The group the layer is member of. Used by LayerTreeBuilder widget. Its value must be alphanumeric characters seperated by '/' to allow sub-groups. - Simple stylemap .. code-block:: xml default .. code-block:: xml default - uniquevaluerules stylemap: If you want to define a unique style to a given property, add them here .. code-block:: xml ... default rol_co_cla AUT - context stylemap: If you want to use function to get style option value .. code-block:: xml default .. note:: The 'attributegualfunction' and 'fidegualfunction' nodes are **deprecated**. Use 'function' node instead. :transitioneffect: String (either default or resize) :transparent: boolean :typename: ??? :visibility: boolean (Is the layer visible on load. True by default) .. code-block:: xml ResourceVMap0_TC true EPSG:4326 ... XML Sample ------------ .. code-block:: xml DefaultMap -180,-90,180,90 ResourceVMap0 tilecache ResourceVMap0_TC true EPSG:4326 Mandatory Options ------------------- Same as OpenLayers Map object. Service Type -------------- featureserver, wms, tilecache, gymo Widget Action --------------- read