npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2026 – Pkg Stats / Ryan Hefner

@mapconductor/react-for-mappls

v0.2.1

Published

Mappls (MapmyIndia) provider for MapConductor React SDK

Readme

@mapconductor/react-for-mappls

Mappls provider for the MapConductor React SDK. Renders a Mappls (Mappls API3, which uses MapLibre GL JS internally) through MapConductor's provider-independent camera, marker, and overlay API, so the same application code can also run on Google Maps, MapLibre, Mapbox, MapTiler, Leaflet, OpenLayers, ArcGIS, Cesium, HERE, or TomTom.

Installation

npm install @mapconductor/react-for-mappls @mapconductor/js-sdk-core @mapconductor/js-sdk-react

The Mappls API3 script (which bundles MapLibre GL JS and its Web Worker) is loaded from apis.mappls.com on demand — you do not need to install or configure maplibre-gl yourself, and there is no stylesheet to import.

API key

Mappls requires a Mappls API key that is authorized for the web origin your app is served from (unlike the mobile SDKs, which authenticate with credential files bound to the app identifier). Pass it to the view state:

const state = useMapplsViewState({
  apiKey: MAPPLS_API_KEY,
  mapDesignType: MapplsDesign.Default,
  cameraPosition,
});

Usage

import {
  MapplsDesign,
  MapplsMapView2D,
  useMapplsViewState,
} from '@mapconductor/react-for-mappls';
import { createGeoPoint, createMapCameraPosition } from '@mapconductor/js-sdk-core';

// Your own key. Read it from your environment however your build tool does
// it, and keep it out of source control.
const MAPPLS_API_KEY = '…';

function Map() {
  const state = useMapplsViewState({
    apiKey: MAPPLS_API_KEY,
    mapDesignType: MapplsDesign.Default,
    cameraPosition: createMapCameraPosition({
      position: createGeoPoint({ latitude: 28.6139, longitude: 77.209 }), // New Delhi
      zoom: 11,
    }),
  });

  return <MapplsMapView2D state={state} />;
}

Map designs

Which tiles you can use is decided by your Mappls contract, not by a fixed catalogue. MapplsDesign ships four presets:

  • MapplsDesign.Default — leaves the account's default style untouched
  • MapplsDesign.StandardDay — the standard_day style; included in every contract
  • MapplsDesign.StandardNight — the standard_night style; paid add-on
  • MapplsDesign.GreyDay — the grey_day style; paid add-on

The two add-on styles are only usable once your contract includes them; without them the SDK rejects the name. This repository's sample apps do not pay for the add-ons, so they list only Default and StandardDay.

Any other style your Mappls account has been assigned can be selected with new MapplsDesign(id, styleName); the SDK rejects names the account does not have, and the available names can be listed at runtime with mapplsClassObject.getStyles(). Switch design by updating the view state's mapDesignType — it is applied through mappls.setStyle().

How it works

Mappls API3 boots through the vendor wrapper (mappls.Map) — which is also where the account style is applied — and then resolves the underlying MapLibre GL JS map behind it. Camera control, map events, and all overlays (markers, polylines, polygons, circles, ground images, raster layers) are driven directly on that GL map, the same MapLibre-based renderer architecture used by the other MapConductor MapLibre-family providers. Mappls API3 renders in mercator only, so MapplsMapView and MapplsMapView2D are the same 2D view — the former exists for naming symmetry with the other providers.

License

Apache-2.0