# Google Maps Component - Data Binding

**URL:** <https://discuss.emberjs.com/t/google-maps-component-data-binding/13960>\
**Category:** Uncategorized\
**Created:** [December 4, 2017, 8:40am UTC](https://discuss.emberjs.com/t/google-maps-component-data-binding/13960 "2017-12-04T08:40:45Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![quarky-up](https://avatars.discourse-cdn.com/v4/letter/q/3bc359/32.png) [@quarky-up](https://discuss.emberjs.com/u/quarky-up)\
**Post date:** [December 4, 2017, 8:40am UTC](https://discuss.emberjs.com/t/google-maps-component-data-binding/13960/1 "2017-12-04T08:40:45Z")

</div>

Hello everyone !

I am using “ember-g-map” in order to use google map (addon : ember-g-map). I have no problem to add route or markers using the associated components when hard coding them on the ‘application.hbs’ file. But I struggle add markers component dynamically using {{each}} !

Inside the ‘application.js’ file, I request latitude and longitude of some cities with ‘Google Maps Geocoding API’ and add them in an array. Then, inside the ‘application.hbs’ file, I loop over the the array using {{each}} to create multiple markers. All of this work is calculated after I press the ‘pullMongoDBData’ button, so there is no markers when at the beginning.

So is there a way to do it ? I can’t get it to work as intended.

The two files : application.js : [application.js · GitHub](https://gist.github.com/anonymous/5e7fb5f134fe2b55cd8832e0ad4a41b9) application.hbs : [application.hbs · GitHub](https://gist.github.com/anonymous/969970607d99b16f097c0e63cef703e6)

Thanks a lot by advance !
