Type Alias AbstractMarker

Minimalist set of properties that represent a marker

type AbstractMarker = {
    features: MapGeoJSONFeature[];
    id: number;
    internalElementSize: [number, number];
    position: [number, number];
    size: [number, number];
}
Index

Properties

features: MapGeoJSONFeature[]

The feature represented by the marker

id: number

Unique ID of a marker, most likely the ID of a geojson feature (from a vector tile)

internalElementSize: [number, number]

Size of each internal elements (useful for when a marker contain information about multiple feature)

position: [number, number]

Position in screenspace of the top-left corner [x, y]

size: [number, number]

Size in screen space [width, height]

Was this helpful?

SDK JS
Modules
Reference
types
AbstractMarker