cmap-core 0.0.2 → 0.0.3

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -14,8 +14,8 @@ import { Source } from 'mapbox-gl';
14
14
  import { SourceSpecification } from 'mapbox-gl';
15
15
 
16
16
  export declare class AisShip extends BaseShip<IAisShipOptions> {
17
- static readonly SOURCE: string;
18
- static readonly NAME: string;
17
+ readonly SOURCE: string;
18
+ readonly NAME: string;
19
19
  tooltip: Tooltip | null;
20
20
  constructor(map: Map_2, options: IAisShipOptions);
21
21
  onAdd(): void;
@@ -29,7 +29,7 @@ export declare class AisShip extends BaseShip<IAisShipOptions> {
29
29
  getShape(): Shape | null;
30
30
  getFeature(): GeoJSON_2.Feature<GeoJSON_2.Polygon, IAisShipOptions> | GeoJSON_2.Feature<GeoJSON_2.Point, IAisShipOptions>;
31
31
  remove(): void;
32
- setTooltip(): void;
32
+ setTooltip(tooltip: Tooltip): void;
33
33
  update(options: IAisShipOptions): void;
34
34
  select(): void;
35
35
  unselect(): void;
@@ -58,8 +58,8 @@ declare type Anchor = 'center' | 'top' | 'bottom' | 'left' | 'right' | 'top-left
58
58
 
59
59
  export declare abstract class BaseShip<T extends IBaseShipOptions> extends Module {
60
60
  options: T;
61
- static readonly SOURCE: string;
62
- static readonly NAME: string;
61
+ readonly SOURCE: string;
62
+ readonly NAME: string;
63
63
  visible: boolean;
64
64
  protected constructor(map: Map_2, options: T);
65
65
  destroy(): void;
@@ -75,7 +75,7 @@ export declare abstract class BaseShip<T extends IBaseShipOptions> extends Modul
75
75
  abstract getShape(): Shape | null;
76
76
  abstract getFeature(): GeoJSON_2.Feature<GeoJSON_2.Polygon, T> | GeoJSON_2.Feature<GeoJSON_2.Point, T>;
77
77
  abstract remove(): void;
78
- abstract setTooltip(): void;
78
+ abstract setTooltip(tooltip: Tooltip): void;
79
79
  abstract update(options: IAisShipOptions): void;
80
80
  abstract select(): void;
81
81
  abstract unselect(): void;