Angular service
UrlParamsService source
Description
Service that alters the map with URL parameters
Methods
-
processUrlParams (URL)
-
Alter the map with URL parameters
Valid parameters:
- Settings for all layers added with this method
ws: biocache-hub URL for any layers added with this method. e.g.ws=https://biocache.ala.org.aubs: biocache-service URL for any layers added with this method. e.g.bs=https://biocache.ala.org.au/ws
- Global to the whole session
wmscache: ON/OFF for the current session (TODO: implement this)
- Map control
bbox: zoom to this area with Min Lng, Min Lat, Max Lng, Max Lat. e.g.bbox=112,-42,154,-9
- Open a tool
tool: name of tool to open. This can be any client side or spatial-service tool (TODO: support more than phylogeneticdiversity and exportBCCVL). e.g.tool=exportBCCVLtoolParameters: JSON Map of inputName:value for 'tool'. e.g.toolParameters={}
- Add one species layer
qname: display name for the 'q' layer. e.g.qname=My URL layerq: biocache-service q term for occurrences layer to add. e.g.q=state:Queenslandspecies_lsid: LSID for occurrences layer to add. e.g.species_lsid=urn:lsid:biodiversity.org.au:afd.taxon:e6aff6af-ff36-4ad5-95f2-2dfdcca8cafffq: biocache-service fq term for occurrences layer to add. e.g.fq=geospatial_kosher:trueqc: biocache-service fq term for occurrences layer to add. e.g.qc=data_hub_uid:dh1qualityProfile: biocache-service qualityProfile param for data quality profile to applydisableAllQualityFilters: biocache-service disableAllQualityFilters param to disable all data quality filters on this requestdisableQualityFilter: biocache-service disableQualityFilter param to disable individual data quality filters on this requestwkt: WKT value for the occurrences layer to add. e.g.wkt=POLYGON((...))psize: integer value specifying the default occurrence layer point size (pixel radius) for layer to add. e.g.psize=10popacity: decimal value (0-1) for opacity of the layer to add.e.g. popacity=0.5pcolour: RBG colour of the layer being added. e.g. redpcolor=FF0000ptype: point type of the layer being added. e.g. 'grid' to display as grid values. e.g.ptype=gridcm: occurrence layer colour mode, e.g. a valid biocache-service facet from ```http://biocache.ala.org.au/fields?filter=indexed:true&max=10&sort=name&order=ASC````lat: biocache-service lat/lon/radius terms for occurrences layer to add. e.g.lat=-22lon: biocache-service lat/lon/radius terms for occurrences layer to add. e.g.lng=131radius: biocache-service lat/lon/radius terms for occurrences layer to add. e.g.radius=10includeDistributions: Add expert distributions that match the species
- Load a previously saved session. Adds layers and changes map state
ss: saved session to load. e.g.ss=0029233- ```dynamic``: e.g. 'true' to support dynamic (TODO: ?)
- Add one or more areas to the map
- pid: comma delimited list of area PIDs to add to the map
- Add multiple species layers
lyN: (N=1..) name of layer. e.g.ly1=My layerlyN.q: (N=1..) species query for this layer. e.g.ly1.q=state:QueenslandlyN.s: (N=1..) layer color. e.g.ly1.s=FF0000
- Add one or more environmental or contextual layers
layers: comma delimited list of layers to add. e.g.layers=cl1,el2
Parameters
Name Type Description URL Map parameters