back | source
Basic map creation
  1. Using the following script within tag <head> </head>
    (xxxxxxxxxxxxxx represents map key)
    <script src=""></script>
  2. Div element for creating map within tag <body></body>
    <div id="map"></div>
  3. JavaScript function for creating longdo.Map object within tag <head></head>
      var map;
      function init() {
        map = new longdo.Map({
          placeholder: document.getElementById('map'),
          language: 'en'
    • placeholder: A DOM element to place the map in
  4. Using onload within tag <body>
    <body onload="init();">

Changing map layer
  1. Using setBase(layer)