Skip to content

< Back to Table of Contents

MapmyIndia Interactive Vector Maps JS SDK for Web !

For access, you can get your api key from Mappls Console

Info Windows Quick Reference

Implementing Info Windows

InfoWindow Properties

Required

  • Map Object
  • Position

Example:

    Var infowindow =new mappls.InfoWindow({
            map:map,
            position: {"lng":"77.64534","lat":"28.5454"},
        });

Optional Properties

  • Content: It shows the marker information on the Info Window by creating a pop up.
    {
        content: "MapmyIndia"
    }
  • Class: It shows the pre-defined custom class name on the Info Window.
    {
        class: info_class
    }
  • Offset: It sets the user defined location of the Info Window pop up modal.
    {
        offset: [0,10]
    }
  • MaxWidth: It sets the width in pixels of the Info Window.
    {
        maxWidth: 200
    }
  • closeButton: It shows the Close button on the Info Window. By default it is set to true
    {
        closeButton: true
    }

Example of Info Window

    infoWindow_object =new Mappls.InfoWindow({
        position: {"lng":"77.64534","lat":"28.5454"},
        class: info_class ( optional ),
        map: map_object,
        content: "MapmyIndia",
        offset: [0,10],
        maxWidth: 200
    });

Remove InfoWindow

    Mappls.remove({map: map_object, layer: infoWindow_object);

For any queries and support, please contact:

Email us at apisupport@mappls.com

Support Need support? contact us!



@ Copyright 2022 CE Info Systems Ltd. All Rights Reserved.