import { Position } from '../Core';
import { POI } from './POI';

/**
 * Contain all available options to create a Marker.
 */
export interface MarkerCreateOptions {
    /**
     * POI owning current Marker.
     */
    readonly poi: POI;
    /**
     * Position in WGS84 coordinates.
     * @see {@link Position}
     */
    readonly position: Position;
    /**
     * If isForeignMarker is set to false, this is HTML element that'll be displayed on the map.
     * If isForeignMarker is set to true, this is native element that'll be displayed on the map.
     */
    readonly element?: HTMLElement;
    /**
     * False if the marker is an HTML element.
     * True if the marker comes from a native SDK like Android.
     * If true, position of the marker won't be automatically updated,
     * instead you'll have to subscribe to notification send every camera movement.
     */
    readonly isForeignMarker?: boolean;
}
