Creating multiple maps
- Initialize maps
function init() { map1 = new longdo.Map({ placeholder: document.getElementById('map1') }); map2 = new longdo.Map({ placeholder: document.getElementById('map2') }); } }
- Create an event handler, which moves bottom map's location according to upper's map location
function link() { map1.Event.bind('location', function(location) { map2.location(map1.location()); }); }
Example