` define non-closed polygons.
* They may have the following attributes:
* `farbe` (hex format, e.g. `#12a50f`): color of the line
* `dicke` (int): width of the line in pixel
* The content of the elements are a whitespace separated list of coordinates.
For transmitting the map to javascript, geojson is used in the `` element of the map.
This way, an extra request is avoided. The geojson format used here consists of a single
"FeatureCollection" (representing the ``) containing the sub-elements of wrmap
as features.
The features have an properties key that has a hash as values with the properties of
the XML subelements of wrmap. Optional attributes/properties can be omitted.
Additionally one mandatory property key is called 'type' and has the sub-element's name
as value.
The featurecollection itself has a properties key as well containing the attributes of
the wrmap element.
## Install build dependencies
The following command uses `package.json` to install all dependencies
npm install
## Bundle JavaScript/Typescript
The TypeScript source files are below the src directory.
To bundle them, run
npm run build
Add `/*@nomin*/` close to the end of `dist/wrmap.mjs` to prevent minification bug: https://phabricator.wikimedia.org/T351610.