back | source
Creating multiple maps
  1. Initialize maps
    function init() {
              map1 = new longdo.Map({ placeholder: document.getElementById('map1') 
            });
              map2 = new longdo.Map({ placeholder: document.getElementById('map2') 
            });
          }
      }
  2. 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