Question

I'm storing the data like in scope of markers variable for google maps (gmaps4rails gem)

Gmaps.store = {} #handler, markers

jQuery ->
Gmaps.store.handler = Gmaps.build 'Google'
Gmaps.store.handler.buildMap { internal: {id: 'map'} }, ->
Gmaps.store.markers = ....

How do I get the markers back? Gmaps.store.markers doesn't work.

Was it helpful?

Solution

Retrieve data in the callback to be sure they exist, adding a timer is very erratic.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top