Options
All
  • Public
  • Public/Protected
  • All
Menu

Class GoogleStreetviewService

Service for streetview functionality with Google Street View

Hierarchy

  • StreetviewService
    • GoogleStreetviewService

Index

Constructors

constructor

  • new GoogleStreetviewService($scope: IScope, map: Map, handlePanoramaPositionChange: (newCoordinates: Array | null) => void, radius: number, $element: JQuery<HTMLElement>): GoogleStreetviewService
  • nginject

    Parameters

    • $scope: IScope

      Scope.

    • map: Map

      The map

    • handlePanoramaPositionChange: (newCoordinates: Array | null) => void

      Position change handler

        • (newCoordinates: Array | null): void
        • Parameters

          • newCoordinates: Array | null

          Returns void

    • radius: number

      The radius

    • $element: JQuery<HTMLElement>

      Element

    Returns GoogleStreetviewService

Methods

extentToLonLat_

  • extentToLonLat_(extent: Extent): Extent
  • Parameters

    • extent: Extent

      Extent in EPSG:2056 to reproject.

    Returns Extent

    LonLat extent.

fromLonLat_

  • fromLonLat_(lonLat: Coordinate): Coordinate
  • Parameters

    • lonLat: Coordinate

      LonLat coordinate.

    Returns Coordinate

    Map view projection coordinate.

getPanorama

  • getPanorama(coordinates: Coordinate): void

panoramaPositionChange

  • panoramaPositionChange(newCoordinates: Coordinate): void
  • Set new position on the map.

    Parameters

    • newCoordinates: Coordinate

      array of longitude and latitude.

    Returns void

toLonLat_

  • toLonLat_(coordinate: Coordinate): Coordinate
  • Parameters

    • coordinate: Coordinate

      Map view projection coordinate.

    Returns Coordinate

    LonLat coordinate.

toggleShow

  • toggleShow(show: boolean): void
  • Toggle visibility of streetview / add or remove its listener

    Parameters

    • show: boolean

      If the streetview is to show

    Returns void

Generated using TypeDoc