You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
For more details on it see [sharing a map](../user-guide/share).
11
+
For more details on it see [sharing a map](../user-guide/share). This **bbox** has been maintained as independent parameter for retro compatibility reasons since the URL query parameters logic is changing.
13
12
14
13
## Dynamically dispatching initial actions in MapStore
15
14
16
-
To dispatch additional actions when the map viewer is started, the **actions** query param can be used.
17
-
Only actions from a configured whitelist can be dispatched in this way.
15
+
To dispatch additional actions when the map viewer is started, the **actions** query parameter can be used. Only actions from a configured whitelist can be dispatched in this way (see the [configuration section](../configuration-files/local-config) for more details).
18
16
19
-
The value of this paramater is a JSON string containing an array with an object per action.
17
+
```
18
+
// list of actions types that are available to be launched dynamically from query param (#3817)
The structure of the object consist of a property type and a bunch of other properties depending on the action.
22
+
The value of this paramater is a JSON string containing an array with an object per action. The structure of the object consist of a property type and a bunch of other properties depending on the action.
22
23
23
24
### Available actions
24
25
Only the following actions can be used in the **actions** json string.
@@ -35,27 +36,41 @@ Example:
35
36
"maxZoom": 8
36
37
}
37
38
```
39
+
38
40
For more details check out the [zoomToExtent](https://mapstore2.geo-solutions.it/mapstore/docs/#actions.map.zoomToExtent) in the framework documentation.
39
41
40
42
#### Map info
41
-
It performs a [GetFeature](https://docs.geoserver.org/stable/en/user/services/wfs/reference.html#getfeature) request and then a [GetFeatureInfo](https://docs.geoserver.org/stable/en/user/services/wms/reference.html#getfeatureinfo) by taking a geometry from a feature retrieved. This action can be used can be used only for existing maps.
43
+
It performs a [GetFeature](https://docs.geoserver.org/stable/en/user/services/wfs/reference.html#getfeature) request on the specified layer and then a [GetFeatureInfo](https://docs.geoserver.org/stable/en/user/services/wms/reference.html#getfeatureinfo) by taking a point from the retrieved features's geometry. This action can be used only for existing maps (map previously created).
42
44
43
-
With the GetFeature request it takes the first coordinate of the geometry of the first feature.
44
-
Then it uses it for the GFI request by creating an area of 101x101 px and by limiting it to the specified layer.
45
+
With the GetFeature request it takes the first coordinate of the geometry of the first retrieved feature; that coordinates are then used for an usual GFI (WMS GetFeatureInfo) request by limiting it to the specified layer.
45
46
46
-
You can add to the action a cql_filter that will be used in both request.
47
+
A **cql_filter** is also **mandatory** for that action to properly filter required data: that filter will be used in both request (GetFeature and GFI). If you don't need to apply a filter, you can use the standard INCLUDE clause (cql_filter=INCLUDE) so the whole dataset will be queried.
47
48
48
49
Requirements:
49
-
-the layer specified must be visible in the map
50
-
-there must be a geometry that can be retrieved from the GetFeature request
50
+
-The layer specified must be visible in the map
51
+
-There must be a geometry that can be retrieved from the GetFeature request
The MapStore invocation URL above executes the following operations:
72
+
73
+
- Execution of a search request filtering by **STATE_FIPS** with value 34 on the **topp:states** layer
74
+
- Execution of a map zoom to the provided extent
75
+
61
76
For more details check out the [searchLayerWithFilter](https://mapstore2.geo-solutions.it/mapstore/docs/#actions.search.exports.searchLayerWithFilter) in the framework documentation
0 commit comments