Skip to main content

Info Windows

InfoWindow Properties

Required Parameters

  • Map Object
  • Position

Example:

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

Optional Parameters

  • Content: It shows the popup content on the Info Window.
    {
content: "MapmyIndia"
}
  • Class: It shows the custom class name on the Info Window.
    {
class: info_class
}
  • Offset: It sets the exact location of the Info Window.
    {
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 true
    {
closeButton: true
}

Example

    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);