Description

Represents the functionality that a marker wrapper should provide.

Extends

IGoogleMapsDrawableOverlay

Index

overlays/modules/marker/i-google-maps-marker.ts

Methods

Methods

getPosition
getPosition()
Returns: google.maps.LatLngLiteral
setPosition
setPosition(position: BoundsLike)
Parameters:
Name Type Optional
position BoundsLike No
Returns: void
import { BoundsLike, WrappedNativeFunctions } from '@bespunky/angular-google-maps/core';
import { IGoogleMapsDrawableOverlay    } from '../../abstraction/base/i-google-maps-drawable-overlay';

/** A type for the native functions of a marker which should be wrapped. Used along with the extension interface for the wrapper.  */
export type WrappedMarkerFunctions = WrappedNativeFunctions<google.maps.Marker, 'getPosition' | 'setPosition' | 'addListener' | 'bindTo' | 'unbind' | 'unbindAll' | 'notify' | 'getMap' | 'setMap' | 'get' | 'set'>;

/**
 * Represents the functionality that a marker wrapper should provide.
 *
 * @export
 * @interface IGoogleMapsMarker
 * @extends {IGoogleMapsDrawableOverlay<google.maps.Marker>}
 * @extends {WrappedMarkerFunctions}
 */
export interface IGoogleMapsMarker extends IGoogleMapsDrawableOverlay<google.maps.Marker>, WrappedMarkerFunctions 
{
    getPosition(): google.maps.LatLngLiteral;
    setPosition(position: BoundsLike): void;
}

results matching ""

    No results matching ""