This example shows how to set a map style during the map loading. The vector layer uses the 'normal.day' style by default, the style can be changed to the user defined while the map is loading.

Code

The code below created a new H.map.Style instance that loads and parses the user's style 'dark.yaml'. After that the style is set on the current vector provider.