Skip to content

Latest commit

 

History

History
30 lines (22 loc) · 1.37 KB

File metadata and controls

30 lines (22 loc) · 1.37 KB

Custom default style of the overlays

DISCLAIMER: this extension point is very experimental and is subject to change.
In particular, the way of changing the defaults will be done via configuration in the future.

Javascript example

♻️ Usage

⚠️ In order to avoid having to many content in the README, we simplify it. You can find all the content of the example in index.js.

Content:

  • override default font: update the StyleConstant default values
StyleDefault.DEFAULT_OVERLAY_FONT_COLOR = 'Pink';
StyleDefault.DEFAULT_OVERLAY_FONT_WIDTH = 30;
  • override default fill: update the StyleConstant default values
StyleDefault.DEFAULT_OVERLAY_FILL_COLOR = 'Grey';
  • override default stroke: update the StyleConstant default values
StyleDefault.DEFAULT_OVERLAY_STROKE_COLOR = 'Cyan';