Options
All
  • Public
  • Public/Protected
  • All
Menu

Class GoogleHelper

Helper class for Google Maps. Contains methods to zoom to a location and add/remove a model to the map.

You can play with a(n) (angular or react) demo on stackblitz.

Hierarchy

  • GoogleHelper

Implements

Index

Constructors

constructor

  • Parameters

    • map: any
    • mapRef: any

    Returns GoogleHelper

Properties

map

map: any

mapRef

mapRef: any

Methods

addPlottable

clearPlottables

  • clearPlottables(): void

getAuthenticatedUrl

  • getAuthenticatedUrl(p: PlottableModel<any>, file: string, tier?: number): Promise<string[]>
  • Retrieves the url for tiles.

    Parameters

    Returns Promise<string[]>

getBounds

  • Get the bounds from SW and NE lat and long given PlottableModel object.

    Parameters

    Returns any

getMapObjectFor

getNormalizedCoord

  • getNormalizedCoord(coord: any, zoom: any): object
  • Normalizes the coords that tiles repeat across the x axis (horizontally) (taken from GoogleMaps).

    Parameters

    • coord: any
    • zoom: any

    Returns object

    • x: any
    • y: any

removePlottable

sendCameraTo

  • sendCameraTo(t: PlottableModel<any>, duration?: number, args?: any): Observable<any>
  • Pan the camera to specified bounds.

    Parameters

    Returns Observable<any>

Generated using TypeDoc