Options
All
  • Public
  • Public/Protected
  • All
Menu

Namespace HelloCustomThemeExample

This example shows how to customize builtin Berlin theme using [Theme] definition mechanism.

NOTE: This example focuses on Theme customization. Please refer to HelloWorldExample for introduction how to use MapView

[Theme]s can inherit from another theme by using extends: URL property:

To override features of base theme, properties must be specified as definition in base Theme like this. For example, park color is defined as parkColor definition like below:

"definitions": {
  "parkColor": {
    "type": "color",
    "value": "#6C9478"
  }
}

This definition, is later used in base theme as reference to definition:

"technique": "fill",
"attrs": {
  "color": {
    "$ref": "parkColor"
  },
  ...
}

Generated using TypeDoc