CSS styles are transpiled using Sass.
We are using Webpack for the bundle creation.
Follow the instruction here below for the development instructions.
What things you need to install the software and how to install them:
- Node (global)
- Yarn (global)
A step by step series of examples that tell you how to get a development env running
Install yarn project's dependencies
yarn
Start the dev server with
yarn start
Build the widget with the production
config of Webpack:
yarn build
The destination for the resulting code will be the dist
folder, located at the root of the project.
Here maps needs an API key that has to be set in the env variable HERE_API_KEY
which is set through the definePlugin
The EFA/STA api doesn't require API keys.
Attribute name | Description | Example | Notes |
---|---|---|---|
destination |
coordinates of the destination in the following format: "longitude:latitude" | destination="11.1604034:46.6684672" |
the longitude:latitude format is the opposite of what you can find on many websites, including google maps that uses the latitude, longitude format |
destination-name |
display name of the destination | destination-name="Terme di Merano, Merano" |
|
disable-car |
if present it disables the HERE maps car routing integration | ||
language |
two letter key for the language to be used | language=de |
if omitted the widget will use the language of the browser (navigator.language[?s]) if supported. Fallback is en |
attribution |
Attribution text for the tiles, can contain html | ||
tiles-url |
Url for the tiles, see https://leafletjs.com/reference-1.6.0.html#tilelayer | ||