diff --git a/capture-map-area/demo.html b/capture-map-area/demo.html index fd42cf0..a5dfda8 100644 --- a/capture-map-area/demo.html +++ b/capture-map-area/demo.html @@ -5,15 +5,15 @@
Set a style created in the HERE Style Editor during the map instantiation
-This example shows how to set a map style that was created in the HERE Style Editor. -
- -The code below creates a new
The code below created a new
The code below created a new
Change a style of the map feature when map is instantiated
This example shows how to change map feature style during the map runtime. The map is loaded with the default "normal.map" style, after that - the color of the features "landuse.park" and "landuse.builtup" is changed to the dark green and the dark grey accordingly. + the color of the features "Park" and "BuiltupArea" is changed to the dark green and the dark grey accordingly.
The code below adds a H.map.Style
associated with the
- layer's provider. Within this listener the section of the map style is extracted and modified and merged back to the original style.
- That results in the changed colors for the "landuse.park" and "landuse.builtup" map features.
+
The code below adds a H.map.render.harp.Style
associated with the
+ layer's provider. Within this listener the configuration of the style is extracted and modified. A new style is created and applied to the map.
+ That results in the changed colors for the "Park" and "BuiltupArea" map features.