Service for streetview functionality with Google Street View

Hierarchy

  • StreetviewService
    • default

Constructors

  • Ng Inject

    Parameters

    • $scope: IScope

      Scope.

    • map: Map

      The map

    • handlePanoramaPositionChange: ((newCoordinates: Coordinate) => void)

      Position change handler

        • (newCoordinates: Coordinate): void
        • Parameters

          • newCoordinates: Coordinate

          Returns void

    • radius: number

      The radius

    • $element: JQuery<HTMLElement>

      Element

    Returns default

Properties

handlePanoramaPositionChange_: ((newCoordinates: Coordinate) => void)

Type declaration

    • (newCoordinates: Coordinate): void
    • Parameters

      • newCoordinates: Coordinate

      Returns void

map_: Map
noDataAtLocation: boolean
scope_: IScope

Methods

  • Returns

    LonLat extent.

    Parameters

    • extent: Extent

      Extent in EPSG:2056 to reproject.

    Returns Extent

  • Returns

    Map view projection coordinate.

    Parameters

    • lonLat: Coordinate

      LonLat coordinate.

    Returns Coordinate

  • Get image for the given location.

    Parameters

    • coordinates: Coordinate

      Map view projection coordinates.

    Returns void

  • Set new position on the map.

    Parameters

    • newCoordinates: Coordinate

      array of longitude and latitude.

    Returns void

  • Returns

    LonLat coordinate.

    Parameters

    • coordinate: Coordinate

      Map view projection coordinate.

    Returns Coordinate

  • Toggle visibility of streetview / add or remove its listener

    Parameters

    • show: boolean

      If the streetview is to show

    Returns void

Generated using TypeDoc