Skip to main content

Permalink

GeoGirafe has permalink parameters used to configure in the URL what should be done when the application starts. This allow to load the map to a specific location and zoom, display a tooltip, ...and some other cool features.

All those parameters take precedence with configureation coming from the configuration or from a shared state of the appliation. Once applied, the parameters will be removed from the URL.

The following parameters are implemented:

Start Position and Zoom

map_x and map_y can be passed either in the local projection set in map.srid, or in decimal degrees (EPSG:4326).
Please not that all those 3 parameters should be given. You cannot just use map_x and map_y for example, you always have to use the 3 parameters together.

NameDescription
map_xX coordinate
map_yY coordinate
map_zoomZoom level of the map

Example:

Crosshair and Tooltip

When using map_crosshair or map_tooltip, the parameters map_x, map_y and map_zoom also must be given in the URL.

NameDescription
map_crosshairWhen set to true, a crosshair will be added at the center of the map
map_tooltipA tooltip containing the configured text will be added at the center of the map

Example:

It's possible to change the crossair color in the configuration options:
Crosshair color

A search will be started with the content of the parameter. The first result will be selected on the map.

NameDescription
searchThe search term

Examples:

Default layers

The application can be initialized with default content (basemap, themes, groups, layers) using the following parameters:

NameDescription
themesThe list of themes to add to the treview
groupsThe list of groups to add to the treview
layersThe list of layers to add to the treview
basemapThe basemap

themes, groups and layers parameters can contain a list separated by comas.
groups and layers with be activated by default. But if their name begin with !, the group or layer will be deactivated by default.

Those parameters will prevail to the default configuration of the application.
For example the default theme won't be loaded when defining a theme, group or layer in the URL.

Examples:

Layers configuration

When add layers using the Permalink, there is also the possibility to configure them, and to set their default opacity, filter and time configuration.

The configuration options are specified in the URL as part of the layer or group parameter, separated by the | character. The first part of the parameter is the layer or group name, followed by configuration options.
The configuration options are separated bu the character ;.

Here are the available configuration options:

OptionDescriptionExample
oSets the opacity of the layer (0 to 1)o;0.5
fApplies a filter to the layer. The format of the filter is property;operator;value;type.
If not specified, the default type is string.
f;gr_gz_kantypbez;eq;S1
tSets a time restriction on the layert;2020/2024

Possible values for the filter operator : eq, neq, like, nlike, gt, gte, lt, lte.
These options can be combined in a single URL parameter.

Examples:

WFS Query

The wfs_ parameters will be used to initiate a WFS query with the information given. The map will zoom on the selected object after querying it.

NameDescription
wfs_layerThe technical name of the layer
wfs_[column_name][column_name] must be the column name corresponding to the configured wfs_layer.
The comparaison is done with a strict equality: wfs_layer=[layer] and wfs_column=[value]

Examples: