javascript - Multiple markers Google Map API v3 from array of addresses using Angular Js -


i have implement multiple markers functionality array of addresses using angular js.

here fiddle :

http://jsfiddle.net/cvsdp/175/ 

but i'm getting following error :

uncaught error: [$injector:modulerr] failed instantiate module myapp  

can 1 please me.

you can change jsfiddle setting onload no wrap - in <body>

enter image description here

see working example: http://jsfiddle.net/cvsdp/179/

edit: also, change line

map = new google.maps.map(angular.element(document.queryselector("#map_canvas")[0]), myoptions); 

to following:

map = new google.maps.map(document.queryselector("#map_canvas"), myoptions); 

the working jsfiddle: http://jsfiddle.net/cvsdp/180/

enter image description here


Comments

Popular posts from this blog

css - SVG using textPath a symbol not rendering in Firefox -

Java 8 + Maven Javadoc plugin: Error fetching URL -

node.js - How to abort query on demand using Neo4j drivers -