GoogleMapsAPIWrapper - TypeScript

Wrapper class that handles the communication with the Google Maps Javascript API v3


Annotations

  • @Injectable()
    
    

Constructor

  • constructor(_loader: MapsAPILoader, _zone: NgZone)

    Not Yet Documented

Members

  • createMap(el: HTMLElement, mapOptions:MapOptions) : Promise<void>
    

    Not Yet Documented

  • setMapOptions(options:MapOptions)
    

    Not Yet Documented

  • createMarker(options?:MarkerOptions) : Promise<Marker>
    

    Creates a google map marker with the map context

  • createInfoWindow(options?:InfoWindowOptions) : Promise<InfoWindow>
    

    Not Yet Documented

  • createCircle(options:CircleOptions) : Promise<Circle>
    

    Creates a google.map.Circle for the current map.

  • createPolyline(options: PolylineOptions) : Promise<Polyline>
    

    Not Yet Documented

  • createPolygon(options:PolygonOptions) : Promise<Polyline>
    

    Not Yet Documented

  • containsLocation(latLng:LatLngLiteral, polygon:Polygon) : Promise<boolean>
    

    Determines if given coordinates are insite a Polygon path.

  • subscribeToMapEvent(eventName: string) : Observable<E>
    

    Not Yet Documented

  • setCenter(latLng:LatLngLiteral) : Promise<void>
    

    Not Yet Documented

  • getZoom() : Promise<number>
    

    Not Yet Documented

  • getBounds() : Promise<LatLngBounds>
    

    Not Yet Documented

  • setZoom(zoom: number) : Promise<void>
    

    Not Yet Documented

  • getCenter() : Promise<LatLng>
    

    Not Yet Documented

  • panTo(latLng:LatLngLiteral) : Promise<void>
    

    Not Yet Documented

  • fitBounds(latLng:LatLngBoundsLiteral) : Promise<void>
    

    Not Yet Documented

  • panToBounds(latLng:LatLngBoundsLiteral) : Promise<void>
    

    Not Yet Documented

  • getNativeMap() : Promise<GoogleMap>
    

    Returns the native Google Maps Map instance. Be careful when using this instance directly.

  • triggerMapEvent(eventName: string) : Promise<void>
    

    Triggers the given event name on the map instance.


exported from core/index defined in core/services/google-maps-api-wrapper.ts (line 11)