Skip to content

Annotations Features

Tzahi Levi edited this page Apr 13, 2021 · 7 revisions

The annotation features object is basically a GeoJson FeatureCollection object, with the following specific properties for each feature:

{
   id: string; // the id of the annotation.
   style: object; //the style of the annotation.
   showMeasures: boolean; // will show the annotaiton measure.
   label: {
      text: string; // the annotaiton label.
      geometry: geoJson point. // the position of the label.
   }
   labelSize: number; // the font size of the label
   mode: 'Point' | 'LineString' | 'Polygon' | 'Circle' | 'Rectangle' | 'Arrow' // the annotaion type
   icon: string; // the url for the icon.
   undeletabel: boolean; // this annotation could be delete.
}

click for more details about the style object