Skip to content

Latest commit

 

History

History
109 lines (75 loc) · 2.19 KB

infoWindows.md

File metadata and controls

109 lines (75 loc) · 2.19 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/

Info Windows Quick Reference

Drawing Info Windows

Required

  • Map Object
  • Position

Example:

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

Optional

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