You can get your api key to be used in this document here: https://apis.mappls.com/console/
- Map Object
- Position
Example:
Var infowindow =new Mapp.InfoWindow({
map:map,
position: {"lng":"77.64534","lat":"28.5454"},
});
- 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
});
Mappls.remove({map: map_object, layer: infoWindow_object);
For any queries and support, please contact:
Email us at apisupport@mapmyindia.com
Stack Overflow Ask a question under the mapmyindia-api
Support Need support? contact us!
Blog Read about the latest updates & customer stories
© Copyright 2022 CE Info Systems Ltd. All Rights Reserved.