Skip to content
This repository has been archived by the owner on May 11, 2020. It is now read-only.

Marker tags not inside map throw error #871

Open
pmannle opened this issue Jul 13, 2018 · 1 comment
Open

Marker tags not inside map throw error #871

pmannle opened this issue Jul 13, 2018 · 1 comment

Comments

@pmannle
Copy link

pmannle commented Jul 13, 2018

Hi all, great libarary, but I've run into an issue: When I have an additional SVG marker on the same page as the map, I get the following error (see below).

I've created to plunkr to demonstrate - you can see the error in the console logs:

http://plnkr.co/edit/f909ajVIBBrkQohgq8ME?p=preview

Is there any way to add other svg graphics to the same html page without ng-maps throwing the following error?:

angular.js:11655 TypeError: Cannot read property 'addObject' of null
at linkFunc (https://rawgit.com/allenhwkim/angularjs-google-maps/master/build/scripts/ng-map.js:1869:19)
at invokeLinkFn (https://code.angularjs.org/1.3.15/angular.js:8258:9)
at nodeLinkFn (https://code.angularjs.org/1.3.15/angular.js:7768:11)
at compositeLinkFn (https://code.angularjs.org/1.3.15/angular.js:7117:13)
at compositeLinkFn (https://code.angularjs.org/1.3.15/angular.js:7120:13)
at compositeLinkFn (https://code.angularjs.org/1.3.15/angular.js:7120:13)
at compositeLinkFn (https://code.angularjs.org/1.3.15/angular.js:7120:13)
at publicLinkFn (https://code.angularjs.org/1.3.15/angular.js:6996:30)
at https://code.angularjs.org/1.3.15/angular.js:1457:27
at Scope.$eval (https://code.angularjs.org/1.3.15/angular.js:14466:28)

@allenhwkim
Copy link
Owner

https://docs.angularjs.org/api/ng/directive/ngNonBindable
Please use this directive if it is SVG tag.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants