Skip to content

Latest commit

 

History

History
83 lines (49 loc) · 3.11 KB

markerMethods.md

File metadata and controls

83 lines (49 loc) · 3.11 KB

< Back to Table of Contents

MapmyIndia Interactive Vector Maps JS SDK for Web !

Marker Methods Quick Reference:

For access, you can get your api key from Mappls Console

  • setIcon: Setting the URL of the icon. It replaces the icon URL.
    marker.setIcon("https://apis.mapmyindia.com/map_v3/1.png");
  • setDraggable: To make the marker draggable.
    marker.setDraggable();
  • setPosition: Setting the Position of the marker.
    marker.setPosition({lat:28.454,lng:77.5454});
  • setZIndex: Setting the priority index of the marker.
    marker.setZIndex(1);
  • setPopup:
    marker.setPopup("html",popupOptions(optional));
    ie. marker.setPopup("India",{openPopup:true});
  • getPosition: Returns the compass heading of aerial imagery.
    marker.getPosition();

Example

    marker.setPosition({lat:28.454,lng:77.5454});
    marker.setIcon("https://apis.mappls.com/map_v3/1.png");

For any queries and support, please contact:

Email us at [email protected]

Support Need support? contact us!





@ Copyright 2022 CE Info Systems Ltd. All Rights Reserved.