Skip to content
This repository was archived by the owner on Dec 1, 2020. It is now read-only.
This repository was archived by the owner on Dec 1, 2020. It is now read-only.

viewOptions error after Angular 1.6.0 update #314

@BjRnJ

Description

@BjRnJ

After the Angular 1.6.0 update angular-esri-map (2.0.1) seems to be breaking over viewOptions. The following error is logged:

TypeError: this.viewOptions is not a function at new EsriMapViewController (http://localhost:9000/bower_components/angular-esri-map/dist/angular-esri-map.js:337:33) at Object.invoke (http://localhost:9000/bower_components/angular/angular.js:4839:19) at $controllerInit (http://localhost:9000/bower_components/angular/angular.js:10692:34) at nodeLinkFn (http://localhost:9000/bower_components/angular/angular.js:9569:35) at compositeLinkFn (http://localhost:9000/bower_components/angular/angular.js:8878:13) at nodeLinkFn (http://localhost:9000/bower_components/angular/angular.js:9632:11) at compositeLinkFn (http://localhost:9000/bower_components/angular/angular.js:8878:13) at compositeLinkFn (http://localhost:9000/bower_components/angular/angular.js:8881:13) at compositeLinkFn (http://localhost:9000/bower_components/angular/angular.js:8881:13) at compositeLinkFn (http://localhost:9000/bower_components/angular/angular.js:8881:13) <div ng-view="" class="ng-scope" data-ng-animate="1">

Changing line 337 of angular-esri-map.js from self.options = this.viewOptions() || {}; to self.options = {}; solves the problem but of course the default viewOptions are not initialised.

Does anyone know how to properly fix this issue?

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions