Mappls Maps official hybrid map SDK for angular & reactJS NPM
npm install mappls-web-maps
Easy To Integrate Maps & Location APIs & SDKs For Web & Mobile Applications
Explore through 238 nations with Global Search, Routing and Mapping APIs & SDKs powered with India's most comprehensive and robust mapping functionalities.
Create your own Angular/React/Ionic/Cordova Based native app powered by Mappls Maps and deploy them to various platforms be it web or native mobile platforms.
Not a mappls user yet? Sign up for an account here. Once you’re signed in, all you need to start building is a mappls key. You can create and manage your access tokens on your Mappls Account page.
Your MapmyIndia Maps SDK usage needs a set of license keys get them here and is governed by the API terms and conditions. As part of the terms and conditions, you cannot remove or hide the MapmyIndia logo and copyright information in your project. Please see branding guidelines on MapmyIndia website for more details. The allowed SDK hits are described on the plans page. Note that your usage is shared between platforms, so the API hits you make from a web application, Android app or an iOS app all add up to your allowed daily limit.
| Version | Last Updated | Author | Remarks |
| ---- | ---- | ---- | ---- |
| 3.8.0 | 24 Sept 2025 | MapmyIndia API Team | Initial Commit |
Node.js, Angular, React JS, Cordova, Ionic
- Web
- Android
- iOS
``js`
npm i mappls-web-maps
- ### Angular : Import mappls class from "mappls-web-maps" package i.e. app.component.ts ( or other component of your use case ) .
`js`
import { mappls } from 'mappls-web-maps';
- #### React JS : Import mappls class from "mappls-web-maps" package inside app.js ( or other component of your use case ) .
`js`
import { mappls } from 'mappls-web-maps'
- #### Angular / Cordova / Ionic
`js
import { Component, OnInit } from '@angular/core';
import { CommonModule } from '@angular/common';
import { mappls, mappls_plugin } from 'mappls-web-maps';
@Component({
selector: 'app-root',
standalone: true,
imports: [CommonModule],
template:
,
})
export class AppComponent implements OnInit {
mapobject:any
mapplsClassObject:any= new mappls()
mapplsPluginObject:any= new mappls_plugin()
title = 'Map_angular';
ngOnInit() {
const loadObject = {
map: true, // for plugin if map is not required
version: '3.0', // // Optional, other version 3.5 also available with CSP headers
libraries: [''], //Optional for Polydraw and airspaceLayers ie. libraries: ['polydraw']
plugins:[''] // Optional for All the plugins ie. plugins:['direction'] ,
//auth:'legacy' /Use only when you have legacy mappls token/
};
this.mapplsClassObject.initialize(
'---------------Access Token------------------',
loadObject,
() => {
this.mapobject = this.mapplsClassObject.Map({
id: 'map',
properties: {
center: [28.61, 77.23],
zoomControl: true,
location: true
},
});
}
);
}
}
` - #### React JS
`js
import { mappls, mappls_plugin } from "mappls-web-maps";
import { useEffect, useRef, useState } from "react";const mapplsClassObject = new mappls();
const mapplsPluginObject = new mappls_plugin();
const App = () => {
const mapRef = useRef(null);
const [isMapLoaded, setIsMapLoaded] = useState(false);
const loadObject = {
map: true, // for plugin if map is not required
version: '3.0', // // Optional, other version 3.5 also available with CSP headers
libraries: [''], //Optional for Polydraw and airspaceLayers ie. libraries: ['polydraw']
plugins:[''] // Optional for All the plugins ie. plugins:['direction'],
//auth:'legacy' /Use only when you have legacy mappls token/
};
useEffect(() => {
mapplsClassObject.initialize("--------Access Token-------", loadObject, () => {
const newMap = mapplsClassObject.Map({
id: "map",
properties: {
center: [28.633, 77.2194],
zoom: 4,
},
});
newMap.on("load", () => {
setIsMapLoaded(true);
});
mapRef.current = newMap;
});
return () => {
if (mapRef.current) {
mapRef.current.remove();
}
};
}, []);
return (
id="map"
style={{ width: "100%", height: "99vh", display: "inline-block" }}
>
{isMapLoaded}
export default App;
``
## Learn about Features
- Components
- Map
- Properties
- Methods
- Events
- [Remove Layer]()
- Markers
- Adding a marker
- Marker Methods
- Marker Events
- Adding Multiple Markers
- InfoWindows
- Polylines
- Polygons
- Circle
- Overlay
- Geojson
- KML
- Heat Map
- Plugins
- Place Search
- Place Picker
- Nearby Search
- Directions
- getDistance
- marker-plugin
- placeDetails-Plugin
- routeSummary Plugin
That’s All !
Email us at apisupport@mapmyindia.com

Ask a question under the mapmyindia-api

Need support? contact us!

Read about the latest updates & customer stories