Matt-Jensen / ember-cli-g-maps

Deprecated Google Maps Addon

Home Page:http://matt-jensen.github.io/ember-cli-g-maps

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

How to get and update active markers?

sunkup opened this issue · comments

I want to open the infoWindow for a marker on the map.

I tried getting the already set markers with this.get('map.markers'); where map is my map service.
If I log this to the console i get undefined.

I don't recommending using the map service.

See if you access the marker via g-map events otherwise if your requirements don't permit that try to render new markers on the map with:

markers: [
        {
          infoWindow: { content: '<p>They\'re Remarkable!</p>', visible: true }
        }
]

Alright. Will do.

I can't use events, so for the time beeing I will set all markers anew everytime I have to open a specific infoWindow.