Basic configuration parameters
dynamic-app
│
└───samo-demo\configuration
│
└───map
│
└───samo-lids-browser.json
At the start of the configuration file, some basic configuration parameters can be set.
Coordinate system, default coordinates and scales
Define the EPSG code of the coordinate system you are defining your Web GIS application in. Usually this is the same coordinate system as defined in model.xml. Aditionally you can define the starting position with X and Y coodrinates and the default zoom level from you defined scales.
{
"srsName": "EPSG:31467",
"defaultCenterX": 3451632,
"defaultCenterY": 5481774,
"defaultZoom": 6,
"scales": [
200000,
100000,
50000,
20000,
10000,
5000,
2000,
1000,
500,
200,
100
]
}
Line styles, Restore State, Selecting
If you want to work with geoJSON Layers in your application, the linestyles definition has to exist. At the moment, this is part of the browser configuration. If you have user-defined linestyles, they have to be defined here as well with the same id as in resource.xml. Refer to styling parameters. This styling parameters are also used for the selectStyle.
The parameter restoreState defines, if the user can go back to the last used position on next login.
The parameter selectTolerance defines the distnace in pixels, which is taken into account if you are selecting in the map. If all users are working with a mouse, this can be set smaller. On working with touch screens this should be set bigger.
"styles": {
"ls_1": {"strokeLineDash": [6,4]},
"ls_2": {"strokeLineDash": [10,7]},
"ls_3": {"strokeLineDash": [18,13]},
"ls_4": {"strokeLineDash": [14,5,2,5]},
"ls_5": {"strokeLineDash": [10,10]},
"ls_6": {"strokeLineDash": [10,5,2,5,2,5]},
"ls_7": {"strokeLineDash": [10,5,4,5]},
"ls_detector": {
"endPoint": {
"symbolizer": {
"zIndex": 300,
"type": "Point",
"charCode": 83,
"symbolHeight": "1",
"fontFamily": "BERIT_ELE_Font2000",
"textAlign": "center",
"textBaseline": "middle"
}
}
}
},
"restoreState": true,
"selectStyleMap": {
"default": {
"symbolizer": {
"strokeColor": "rgb(0,255,255)",
"iconScale": 1,
"strokeWidth": 3,
"label": {
"fillColor": "rgb(0,0,0)",
"strokeColor": "rgb(0,255,255)"
}
}
}
},
"selectTolerance": 20
Custom Pointers, Legends
A customerPointers can be any external URL which you want to open from the SAMO LIDS Browser application, including and parameter you can get from templating
legends are defined with their individual id and the reference to the existing file from dynamic-app resources. You should use transparent PNG file, if possible.
"customPointers": [
{
"id": "googleMapStreetView",
"url": "https://www.google.com/maps/@?api=1&map_action=pano&viewpoint={get:#lat},{get:#lon}",
"label": "Google Street View",
"icon": "resource:google-maps.png"
}
],
"legends": {
"water": {
"src": "resource:legends/water.png"
}
}