Options
All
  • Public
  • Public/Protected
  • All
Menu

Service for streetview functionality with Mapillary

Hierarchy

  • StreetviewService
    • default

Index

Constructors

  • new default($scope: IScope, $timeout: ITimeoutService, $http: IHttpService, map: Map, handlePanoramaPositionChange: (newCoordinates: Coordinate) => void, accessToken: any): default
  • nginject

    Parameters

    • $scope: IScope

      Scope.

    • $timeout: ITimeoutService
    • $http: IHttpService

      Angular $http service.

    • map: Map

      The map

    • handlePanoramaPositionChange: (newCoordinates: Coordinate) => void

      Position change handler

        • (newCoordinates: Coordinate): void
        • Parameters

          • newCoordinates: Coordinate

          Returns void

    • accessToken: any

    Returns default

Properties

Mapillary: {}

Type declaration

    handlePanoramaPositionChange_: (newCoordinates: Coordinate) => void

    Type declaration

      • (newCoordinates: Coordinate): void
      • Parameters

        • newCoordinates: Coordinate

        Returns void

    map_: Map
    mapillaryElement: HTMLElement

    Container of the mapillary viewer.

    mapillaryEventHandler_: (evt: ViewerImageEvent) => void

    Type declaration

      • (evt: ViewerImageEvent): void
      • Parameters

        • evt: ViewerImageEvent

        Returns void

    mly: Viewer
    noDataAtLocation: boolean
    scope_: IScope

    Methods

    • fromLonLat_(lonLat: Coordinate): Coordinate
    • Parameters

      • lonLat: Coordinate

        LonLat coordinate.

      Returns Coordinate

      Map view projection coordinate.

    • getPanorama(coordinates: Coordinate): void
    • Get image for the given location.

      Parameters

      • coordinates: Coordinate

        Map view projection coordinates.

      Returns void

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

      Parameters

      • newCoordinates: Coordinate

        array of longitude and latitude.

      Returns void

    • resize(): void
    • toLonLat_(coordinate: Coordinate): Coordinate
    • Parameters

      • coordinate: Coordinate

        Map view projection coordinate.

      Returns Coordinate

      LonLat coordinate.

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

      Parameters

      • show: boolean

        If the streetview is to show

      Returns void

    Generated using TypeDoc