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 parameters can begin with !. In this case, the group or layer will automatically be activated.

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:

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: