Service for streetview functionality with Mapillary

Hierarchy

  • StreetviewService
    • default

Constructors

  • Parameters

    • $scope: IScope

      Angular Scope.

    • $timeout: ITimeoutService

      Angular $timeout.

    • $http: IHttpService

      Angular $http service.

    • map: Map

      The map.

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

      Position change handler.

        • (newCoordinates): void
        • Parameters

          • newCoordinates: Coordinate

          Returns void

    • accessToken: string

      The key to access the mapillary api.

    • bufferSize: number

      The size to add to the bbox buffer.

    • OptionalorganizationId: string

      The id of the organization to get images from.

    Returns default

Properties

handlePanoramaPositionChange_: ((newCoordinates: Coordinate) => void)
map_: Map
Mapillary: __module
mapillaryElement: HTMLElement

Container of the mapillary viewer.

mapillaryEventHandler_: ((evt: ViewerImageEvent) => void)
mly: Viewer
noDataAtLocation: boolean
scope_: IScope
$inject: string[]

Methods

  • Parameters

    • extent: Extent

      Extent in EPSG:2056 to reproject.

    Returns Extent

    LonLat extent.

  • Parameters

    • lonLat: Coordinate

      LonLat coordinate.

    Returns Coordinate

    Map view projection 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

  • Toggle visibility of streetview / add or remove its event handler

    Parameters

    • show: boolean

      If the streetview is to show

    Returns void

  • Parameters

    • coordinate: Coordinate

      Map view projection coordinate.

    Returns Coordinate

    LonLat coordinate.