Skip to content

Instantly share code, notes, and snippets.

@chelm
Created March 11, 2011 15:52
Show Gist options
  • Save chelm/866061 to your computer and use it in GitHub Desktop.
Save chelm/866061 to your computer and use it in GitHub Desktop.
// starts up the poller on map ready
initPoller: function(){
var id_list = []
jq.each(this.getLayers(), function(index, layer) {
id_list.push(layer.pk)
})
// start it, only starts if there are layers in the map
this.layer_poller = new F1.Poller({overlays:id_list})
this.layer_poller.start()
},
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment