Overview

This feature allows layers to be sent as a parameter in a URL to tell XMAP or Parish Online to load a particular layer.


NOTE: this is an experimental feature so it a) may not work, and b) isn't fully-featured yet.


URL Example

Here's a URL example:


https://xmap.cloud/maps?layers=os-premium-stack-standard,planning_apps_readonly&filters=planning_apps_readonly:refval=%271983/0003%27#map=19/488769.49/160430.37/0

NOTE: the permalink (#map= section) must be last in the URL.

 

URL Format

 

Root: https://xmap.cloud/maps?


Layers: (comma delimited string of layer id’s (or table names in your case), e.g

?layers=os-premium-stack-standard,planning_apps_readonly


Filters: (comma delimited in the format LAYER:CQL_FILTER

https://docs.geoserver.org/latest/en/user/tutorials/cql/cql_tutorial.html

Filters need to follow the CQL filter format, they will fail for example if you don’t quote your strings!

 

Position: (we currently only accept this permalink format for position, but will expand it to use URL params if they are provided)

#map=19/488769.49/160430.37/0