You can get your api key to be used in this document here: https://apis.mappls.com/console/
- Map
- url: URL of the KML file.
- fitbounds: Fits in the map layer automatically to a bound on which geoJson has made. By default it is false.
{
fitbounds: true
}
- fitboundOptions: This shows the options aailable on the fitBound property.
{
fitboundOptions: {padding: 120,duration:1000}
}
- cType: It is for geojson data geometry
- 0: for lat,lng combination (Default)
- 1: for lng,lat conbination
- 0: for lat,lng combination (Default)
{
cType: 1
}
Mappls.KmlLayer()
var url="https://www.mapmyindia.com/api/advanced-maps/doc/sample/mmi.kml";
new Mappls.KmlLayer({
map:map_object,
url:url,
cType:1,
preserveViewport:true
});
Mappls.remove({map:map_object,layer:KmlLayer_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.