Options
All
  • Public
  • Public/Protected
  • All
Menu

Class MapillaryService

Service for streetview functionality with Mapillary

Hierarchy

  • StreetviewService
    • MapillaryService

Index

Constructors

constructor

  • new MapillaryService($scope: IScope, map: Map, handlePanoramaPositionChange: (newCoordinates: Array | null) => void, clientId: string): MapillaryService
  • 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

    • clientId: string

      The key to access the mapillary api

    Returns MapillaryService

Methods

fromLonLat_

  • fromLonLat_(lonLat: Coordinate): Coordinate
  • Parameters

    • lonLat: Coordinate

      LonLat coordinate.

    Returns Coordinate

    Map view projection coordinate.

getPanorama

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

    Parameters

    • coordinates: Coordinate

      Map view projection coordinates.

    Returns void

panoramaPositionChange

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

    Parameters

    • newCoordinates: Coordinate

      array of longitude and latitude.

    Returns void

resize

  • resize(): 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 event handler

    Parameters

    • show: boolean

      If the streetview is to show

    Returns void

Generated using TypeDoc