Description

Represents the functionality that a directions wrapper should provide.

Extends

IGoogleMapsDrawableOverlay

Index

directions/i-google-maps-directions.ts

Methods

Methods

getPanel
getPanel()
Returns: ElementRef
setDraggable
setDraggable(draggable: boolean)
Parameters:
Name Type Optional
draggable boolean No
Returns: void
setHideRouteList
setHideRouteList(hideRouteList: boolean)
Parameters:
Name Type Optional
hideRouteList boolean No
Returns: void
setInfoWindow
setInfoWindow(infoWindow: GoogleMapsComponentBase<IGoogleMapsInfoWindow> | IGoogleMapsInfoWindow)
Parameters:
Name Type Optional
infoWindow GoogleMapsComponentBase<IGoogleMapsInfoWindow> | IGoogleMapsInfoWindow No
Returns: void
setMarkerOptions
setMarkerOptions(markerOptions: google.maps.MarkerOptions)
Parameters:
Name Type Optional
markerOptions google.maps.MarkerOptions No
Returns: void
setPanel
setPanel(element: ElementRef | HTMLElement)
Parameters:
Name Type Optional
element ElementRef | HTMLElement No
Returns: void
setPolylineOptions
setPolylineOptions(polylineOptions: google.maps.PolylineOptions)
Parameters:
Name Type Optional
polylineOptions google.maps.PolylineOptions No
Returns: void
setPreserveViewport
setPreserveViewport(preserveViewport: boolean)
Parameters:
Name Type Optional
preserveViewport boolean No
Returns: void
setSuppressBicyclingLayer
setSuppressBicyclingLayer(suppressBicyclingLayer: boolean)
Parameters:
Name Type Optional
suppressBicyclingLayer boolean No
Returns: void
setSuppressInfoWindows
setSuppressInfoWindows(suppressInfoWindows: boolean)
Parameters:
Name Type Optional
suppressInfoWindows boolean No
Returns: void
setSuppressMarkers
setSuppressMarkers(suppressMarkers: boolean)
Parameters:
Name Type Optional
suppressMarkers boolean No
Returns: void
setSuppressPolylines
setSuppressPolylines(suppressPolylines: boolean)
Parameters:
Name Type Optional
suppressPolylines boolean No
Returns: void
import { ElementRef } from '@angular/core';

import { GoogleMapsComponentBase, WrappedNativeFunctions   } from '@bespunky/angular-google-maps/core';
import { IGoogleMapsDrawableOverlay, IGoogleMapsInfoWindow } from '@bespunky/angular-google-maps/overlays';

/** A type for the native functions of a directions renderer which should be wrapped. Used along with the extension interface for the wrapper.  */
export type WrappedDirectionsFunctions = WrappedNativeFunctions<google.maps.DirectionsRenderer, 'getPanel' | 'setPanel' | 'addListener' | 'bindTo' | 'unbind' | 'unbindAll' | 'notify' | 'getMap' | 'setMap' | 'get' | 'set'>;

/**
 * Represents the functionality that a directions wrapper should provide.
 *
 * @export
 * @interface IGoogleMapsDirections
 * @extends {IGoogleMapsDrawableOverlay<google.maps.DirectionsRenderer>}
 * @extends {WrappedDirectionsFunctions}
 */
export interface IGoogleMapsDirections extends IGoogleMapsDrawableOverlay<google.maps.DirectionsRenderer>, WrappedDirectionsFunctions 
{
    getPanel()                                 : ElementRef;
    setPanel(element: ElementRef | HTMLElement): void;

    // ====== Option shortcuts ======
    
    setDraggable             (draggable: boolean                                                                ): void;
    setHideRouteList         (hideRouteList: boolean                                                            ): void;
    setInfoWindow            (infoWindow: GoogleMapsComponentBase<IGoogleMapsInfoWindow> | IGoogleMapsInfoWindow): void;
    setMarkerOptions         (markerOptions: google.maps.MarkerOptions                                          ): void;
    setPolylineOptions       (polylineOptions: google.maps.PolylineOptions                                      ): void;
    setPreserveViewport      (preserveViewport: boolean                                                         ): void;
    setSuppressBicyclingLayer(suppressBicyclingLayer: boolean                                                   ): void;
    setSuppressInfoWindows   (suppressInfoWindows: boolean                                                      ): void;
    setSuppressMarkers       (suppressMarkers: boolean                                                          ): void;
    setSuppressPolylines     (suppressPolylines: boolean                                                        ): void;
}

results matching ""

    No results matching ""