Skip to content

Latest commit

 

History

History
92 lines (62 loc) · 1.99 KB

File metadata and controls

92 lines (62 loc) · 1.99 KB

MapmyIndia APIs

MapmyIndia Interactive Vector Maps JS SDK for Web !

You can get your api key to be used in this document here: https://apis.mappls.com/console/

KML Overlay

Supported Object Types

1. Markers

2. Polylines

3. Polygons

Overlaying KML on map

Required

  • Map
  • url: URL of the KML file.

Optional

  • 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
    {
        cType: 1
    }

KmlLayer Method

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

Remove KML Overlay

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

For any queries and support, please contact:

Email 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.