Application Load

IDeliveryMapView

The physical TypeScript declaration from the Nuxt starter, with linked types and field comments.

IDeliveryMapView

Controls of a created map.

src/lib/interfaces/orionplace/cart/IDeliveryMap.ts
TypeScript
export interface IDeliveryMapView {
  // Replaces all markers and fits the map to them.
  setMarkers: (markers: IDeliveryMapMarker[]) => void;
  // Draws the given marker as active and centers the map on it.
  setActive: (id?: string) => void;
  // Removes marker listeners and the map instance.
  destroy: () => void;
}