Menu
Close

Jump To Series

Sample Implementation

    
      
      <html>
        <head>
          <title>Jump To Series</title>
          <meta name="viewport" content="initial-scale=1.0">
          <meta charset="utf-8">
          <style>
          html,
          body,
          #map {
            margin: 0;
            padding: 0;
            width: 100%;
            height: 100vh;
          }
          </style>
             <script src="https://apis.mappls.com/advancedmaps/api/<Token>/map_sdk?layer=vector&v=3.0&callback=initMap1" defer async></script>
            </head>
        <body>
                    <div id="map"></div>
                        <script>
       
       const cityCoordinates = [
            [77.2090, 28.6139],
            [75.7873, 26.9124],
            [85.1376, 25.5941],
            [72.8777, 19.0760],
            [80.9462, 26.8467],
            [78.4867, 17.3850],
            [80.2707, 13.0827],
            [85.3096, 23.3441]
        ];

        function initMap1() {
            map = new mappls.Map('map', {
                center: [28.61, 77.20],
                zoom: 7
            });

            map.on('load', () => {
                for (const [index, coordinate] of cityCoordinates.entries()) {
                    setTimeout(() => {
                        map.jumpTo({ center: coordinate });
                    }, 4000 * index);
                }
            });
        }
    </script>
        </body>
      </html>
      
      
      
    
  
Call at Mappls
Request Call Back

Personalisation SDK, by Mappls, is India's first O2O engagement tool that can 3X your customer engagement, retention and conversion.

There's so much that Mappls MapmyIndia can do for your enterprise or individual requirements. Explore our website to learn more or request a callback/email if you'd like us to connect with you.

or