Skip to content

Instantly share code, notes, and snippets.

@msteitle
Forked from pjhoberman/gist:2220021
Created March 27, 2012 21:16
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save msteitle/2220311 to your computer and use it in GitHub Desktop.
Save msteitle/2220311 to your computer and use it in GitHub Desktop.
row.attr('data-marker-index', i);
row.click(function(){
LIVE_MAP.focus($(this).attr('data-marker-index'));
});
//...
LIVE_MAP.focus = function(index){
var Marker = LIVE_MAP.Markers[i];
this.map.setCenter(Marker.getPosition());
this.map.setZoom(12);
Marker.ib.open(LIVE_MAP.map, Marker)
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment