Starting WebMap from a URL
WebMap is usually launched using the URLs included during installation.
Note: See also Installation URLs
You can tweak these URLs and use them to open a map view quickly and begin using focussed WebMap tools. Adding or removing parameters in this way is called “decorating a URL”.
This method bypasses navigating through the WebMap tools or menu.
Here are a few examples to illustrate this method.
Start WebMap at the user's current location.
For example adding geolocate=true to the URL opens WebMap at the user’s current location.
http://localhost/SISWebMap9.0./Map.aspx?geolocate=true
Start WebMap at a specified location and resolution
Here WebMap will open at the location defined by the coordinates x=545352 and y=258359 and display it at a resolution of 2.
http://localhost/SISWebMap9.0./Map.aspx?x=545352&y=258359&resolution=2
Start WebMap focused on a feature
Try adding overlayname=SSSI&schemacolumn=SSSI_Map_Reference&UID=SV838059&resolution=2 to the URL:
http:/localhost/SISWebMap9.0./Map.aspx?overlayname=SSSI &schemacolumn=SSSI_Map_Reference&UID=SV838059&resolution=2
This will open WebMap on the feature from the overlay called SSSI. (WebMap searches for the feature where the SSSI_Map_Reference=SV838059). The map will zoom to that feature and display it at a resolution of 2.
Opening Webmap on a specific feature will only highlight one feature, it will not turn on the rest of the layer. To make the layer visible, the dataLayers parameter must be used. (See above)
Note: The column used for identifying the feature must contain unique values.
Start WebMap at a specified dialog
Adding initialDialog=layersDialog to the URL will open WebMap at a specified dialog (Map Features is used in this example)
http://localhost/SISWebMap9.0./Map.aspx?initialDialog=layersDialog
It is also possible to add a map name as an argument to the above URL for example:
http:/localhost/SISWebMap9.0./Map.aspx?MapName=InsertMapNameHere
&initialDialog=layersDialog
Note: The additional map name argument is shown in blue.
Here are additional parameters that can be added to the URL:
These additional parameters are case-sensitive.
Additional parameter: | Cadcorp SIS WebMap opens showing: |
geolocate=true |
Current location |
initialDialog=<name of dialog> E.g initialDialog=searchByAreaDialog opens the map on the
initialDialog=measureDialogopens the map on the
|
Specified dialog |
marklocation=true&initialDialog=localKnowledgeDialog |
Local Knowledge dialog |
initialDialog=reportDialog |
ReportIT dialog |
MapName=<name of map> |
Specified map |
Baselayer=<name of baselayer> |
Specified Base Layer |
Datalayers=<comma separated string of layer names> Note: Spaces in a layer name are allowed. However a space after the comma will assume the following layer begins with a space. ü dataLayers=Wards,Districts,Planning Applications û datalayers= Wards, Districts, Planning Applications (this will only open the first layer) |
Specified Data Layer (This parameter can also be used for queries. See below) |
Resolution=<resolution value> Note: Use a value from the resolutions table. |
Zoomed into the specified resolution |
X=<x-coordinate> |
Zoomed into specified X coordinate |
Y=<y-coordinate> |
Zoomed into specified Y coordinate |
Epsg=<epsg-code> |
Zoomed into location specified by the EPSG code |
markLocation=true |
If set to True, shows a dropped pin at the location opened |
opacity |
Sets the opacity of the current base layer. Valid values are between 0 (fully transparent) and 100 (fully opaque) E.g. |
label |
Draws a label with the initial marker E.g. |
labellocation |
Defines the position of the label. E.g. |
The following parameters are also available but should be used together (to open a map on a specific feature):
- overlayName=<overlay name>
- schemacolumn=<schema column>
TIP: Expression name minus the property symbol ($, &, @ etc)
- UID=<unique value for a feature in the schema column>
The datalayers parameter can now be used in conjunction with a query on the URL.
-
If the query parameters overlayname, schemacolumn & uid are present and datalayers are missing or is empty, the query is performed and all data layers are turned off.
-
If there is a query on the URL and datalayers is present, the query is performed and only layers specified by the datalayers parameter will be turned on.
-
If there is no query, the datalayers parameter defines which layers are turned on as the map is started.
Users can easily share these “decorated” URLs on social media or paste them directly into a web browser.