Service for streetview functionality with Mapillary

Hierarchy

  • StreetviewService
    • default

Constructors

  • Ng Inject

    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: Coordinate): 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.

    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

    • 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 event handler

      Parameters

      • show: boolean

        If the streetview is to show

      Returns void

    Generated using TypeDoc