Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
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
You can’t perform that action at this time.