Options
All
  • Public
  • Public/Protected
  • All
Menu

Class StreetviewController

This component is used to integrate a streetview tool (googlestreetview or mapillary) The tool has to be declared in the constant 'ngeoStreetviewOptions'. For mapillary the key (accessToken) is needed as well.

module.constant('ngeoStreetviewOptions', { 'viewer': 'google', });

module.constant('ngeoStreetviewOptions', { 'viewer': 'mapillary', 'key': '', });

Example:

        <ngeo-streetview
            active="mainCtrl.streetViewActive"
            feature-style="mainCtrl.streetViewStyle"
            map="mainCtrl.map"
            panel-width="mainCtrl.toolsPanelWidth"
            options-name="ngeoSreetviewOptions">
        </ngeo-streetview>

Hierarchy

  • StreetviewController

Index

Constructors

Methods

Constructors

constructor

  • new StreetviewController($element: JQuery<HTMLElement>, $scope: IScope, $http: IHttpService, ngeoFeatureOverlayMgr: FeatureOverlayMgr, $injector: IInjectorService, $timeout: ITimeoutService): StreetviewController
  • nginject
    ngdoc

    controller

    ngname

    NgeoStreetviewController

    Parameters

    • $element: JQuery<HTMLElement>

      Element.

    • $scope: IScope

      Scope.

    • $http: IHttpService

      Angular $http service.

    • ngeoFeatureOverlayMgr: FeatureOverlayMgr

      Ngeo

    • $injector: IInjectorService

      Main injector.

    • $timeout: ITimeoutService

      FeatureOverlay manager.

    Returns StreetviewController

Methods

$onInit

  • $onInit(): void

addWatchers_

  • addWatchers_(): void

Generated using TypeDoc