The Angular $q service.
Angular timeout service.
Angular rootScope.
Main injector.
ngeo Debounce factory.
Gettext service.
Ngeo event helper service
The ngeo statemanager service.
ngeo location service.
The options.
The gmf datasourcemanager service.
The ngeo wmstime service
The key for map view 'propertychange' event.
A list of projections that the coordinates in the permalink can be in.
Create a filter group for a given prefix from the query params.
A filter group.
E.g. wfs_
or wfs_0_
.
All param keys starting with wfs_
.
Get the query data for a WFS permalink.
The query data.
Called when layer being swipe
layer object.
old layer object.
Update the time values in the state.
Controller.
The start and optionally the end datetime (for time range selection) selected by user
Bind an ol3 map object to this service. The service will, from there on, listen to the properties changed within the map view and update the following state properties: map_x, map_y and map_zoom.
If the service is already bound to a map, those events are unlistened first.
The ol3 map object.
Sets the map tooltip to the center (or the map center if nothing provided). Overwrites an existing map tooltip.
Text to display in tooltip.
Optional
opt_center: CoordinateOptional center coordinate.
Set the time from permalink in datasource and widget.
Controller
Generated using TypeDoc
The Permalink service for GMF, which uses the
ngeo.statemanager.Service
to manage the GMF application state. Here's the list of states are are managed:For time layers the time range or time value is added
It can also be used to add different types of things in the map, such as features, external data sources, etc.
This is made using parameters in the url, which can be static (i.e. parameters that always have the same name) or dynamic (i.e. parameters that have a static prefix but with a full name being dynamic).
Here's a complete list of possible parameters and what they do. But first, a legend
=== Parameters [type] ===
[paramameter_name]
(type) [parameter documentation]=== Parameters (static) ===
A static parameter always have the same name.
baselayer_ref
- "string" The name of the base layer that should be set visible as default in the map. If none is set, then the default one in the loaded theme is set instead.eds_n
(string),eds_u
(string) These parameters stand for:eds_u
containing the urls to the services andeds_n
the layer names (separated by;
). Here's an example: &eds_n=a;b;c,d,e&eds_u=host1.com,host2.com,host3.com, which reads as:map_crosshair
(boolean) If this parameter set totrue
, then a crosshair marker will be added to the center of the map upon initialization. The marker will stay at this location.map_tooltip
(string) If set, then the text defined in this parameter will be added as a tooltip at center of the map upon initialization.map_x
(number),map_y
(number) These two parameters define a coordinate the map view should be centered to upon initialization. The value must be in the map view projection.map_zoom
(number) Defines the zoom level the map view should be zoomed to upon initialization.rl_features
(string) This parameter defines vector features to add to the map upon initialization. In addition, if the application includes the draw tool, the features added can be modified. The draw tool can also be used to add new features, which are automatically added in the url.tree_groups
(string) Defines the layer groups that should be added to the layer tree upon application initialization as a comma-separated list. For example: Layers,Filters,Externalswfs_layer
(string) If set, this parameter defines the name of a layer that supports WFS to use to fetch features and add them to the map upon initialization. The dynamic parameterwfs_[]
is required to identify the features to fetch.wfs_ngroups
(number) If set, thenwfs_layer
represents the name of a group and this property defines how many layers are in it. Requireswfs_layer
to be set.wfs_show_features
(boolean) If set tofalse
or0
, then the features returned by thewfs_layer
parameter will not be shown in the map.=== Parameters (dynamic) ===
Dynamic parameters have variable names, which is always composed of:
The same dynamic parameter can be set multiple times, with different suffix values as name.
For example:
&wfs_a=&wfs_b=
.wfs_
is the static prefixthe name used as reference for this dynamic parameter is
wfs_[]
therefore, this example has 2
wfs_[]
parameters set, witha
andb
being the variable suffixdim_[]
(string) Variable suffix: the name of a dimension Value: * Defines the value of a specific dimension to set upon loading the application. For example:&dim_time=2019-01-25T14:45:51.986Z
. WMS data sources that support the dimension set will be initialized with its value.tree_enable_[]
(boolean) Variable suffix: the name of a layer group Value: whether the group should be enabled or not in the layer tree For example:&tree_enable_polygon=true&tree_enable_point=false
means that the grouppolygon
will be enabled in the layer tree, but notpoint
.tree_group_layers_[]
(string) Variable suffix: the name of a layer group Value: a comma-separated list of layers within the group that should be enabled upon initialization. For example:&tree_group_layers_polygon=forest,lake
means that only the layersforest
andlake
within the grouppolygon
would be enabled upon initialization.tree_opacity_[]
(number) Variable suffix: the name of a layer group Value: Number between 0 (transparent) and 1 (opaque) Defines the opacity of a layer group upon initialization.tree_time_[]
(date) Variable suffix: the name of a layer group or layer Value: a date or date interval with the resolution of the time of the layer or group Defines the time or time interval for a time layer or a group.wfs_[]
(string) Variable suffix: the name of an attribute Value: A comma-separated list of values for the attribute This parameter requireswfs_layer
in order to work properly. If set, it defines the filters to build to fetch the features to add to the map. For example:&wfs_layer=fuel&wfs_osm_id=1420918679,441134960
the layerfuel
will be fetched features with the attributeosm_id
equal to1420918679
or441134960
. Ifwfs_ngroups
is set, then an index is added to after the prefix of thewfs_[]
parameter, for example:wfs_ngroups=2&wfs_0_[]=&wfs_1_[]=
=== More documentation ===
To have the whole possibilities offer by the permalink, these services should be instantiated: ngeoBackgroundLayerMgr, ngeoFeatureOverlayMgr, ngeoFeatureHelper, gmfPermalinkOptions, gmfThemes, gmfObjectEditingManager, gmfThemeManager, defaultTheme, gmfTreeManager, ngeoWfsPermalink, ngeoAutoProjection and ngeoFeatures.
Used functionalities:
default_theme
: Theme to use by default.Ng Inject
Ngdoc
service
Ngname
gmfPermalink