forked from Glodenox/wme-om
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathmap-checklist.txt
More file actions
27 lines (26 loc) · 871 Bytes
/
Copy pathmap-checklist.txt
File metadata and controls
27 lines (26 loc) · 871 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
Template:
{
id: ,
url: '',
crs: '',
bbox: new OL.Bounds(0, 0, 0, 0}, // minx: 0, miny: 0, maxx: 0, maxy: 0
format: 'image/png',
title: '',
abstract: '',
attribution: '',
default_layers: [ ],
layers: {
'': {
bbox: new OL.Bounds(0, 0, 0, 0), // optional
queryable: true,
title: '',
abstract: '' // optional
}
}
}
1. Retrieve country code from https://countrycode.org/ and compose a new ID with it: country code + ##
2. Clean up URL (HTTPS? Removed arguments?)
3. Calculate BBOX: (new OL.Bounds(0, 0, 0, 0)).transform(new OL.Projection('EPSG:'), Waze.map.getProjection())
4. Layers: put all layer groups as first in the array, followed by other layers
default_layers = XPath [ concat("'", string-join(//Layer/Layer/Name, "', '"), "'") ] on the GetDescription
layers = apply D:\Projects\WME-OpenMaps\description2layers.xsl on the GetDescription