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-kml

v0.2.0

Published

KML layer for MapConductor React SDK

Readme

English | 日本語 | Español (Latinoamérica)

@mapconductor/react-kml

KML layer extension for the MapConductor React SDK. Parses OGC KML 2.2 documents (and KMZ archives) into feature models and renders them as a tiled overlay inside any provider map view (react-for-googlemaps, react-for-maplibre, react-for-here, …), with KML styling and click hit-testing. It shares the tile-rendering architecture of @mapconductor/react-geojson, so it scales to large KML datasets.

React Native support is not yet available — this package is web-only for now.

Features

  • Parses Point, LineString, LinearRing, Polygon (with innerBoundaryIs holes), and MultiGeometry.
  • Reads KMZ archives transparently: ZIP input is detected by signature and the first .kml entry (conventionally doc.kml) is used as the document.
  • Traverses nested <Document> and <Folder> containers with a loop and a depth counter — never recursion — so arbitrarily deep hierarchies cannot overflow the call stack.
  • Follows <NetworkLink> references (KML documents hosted elsewhere on the internet) through KMLLoader, with relative-href resolution, cycle detection, and a document-count cap.
  • Resolves KML styling: LineStyle (color, width), PolyStyle (color, fill, outline), and IconStyle (color), including shared <Style> / <StyleMap> references via styleUrl. KML aabbggrr colors are converted to ARGB ints.
  • Reads <name>, <description>, and <ExtendedData> (Data/SchemaData) into feature properties.
  • Supports static bulk features with KMLFeatureData and reactive features with KMLFeatureState, KMLFeature, and KMLFeatures.
  • Supports layer-level and feature-level styling with a pluggable KMLStyleProviderInterface.
  • Provides click hit-testing through KMLLayerState.processClick.

Installation

npm install @mapconductor/react-kml

@mapconductor/js-sdk-core and @mapconductor/js-sdk-react are installed automatically as dependencies. You also need a provider package (any @mapconductor/react-for-*) to host the map view.

Quick start

import { KMLLayer, KMLLayerState, KMLParser } from '@mapconductor/react-kml';

const layerState = new KMLLayerState({
  onClick: (feature, position) => console.log(feature.properties, position),
});

const features = KMLParser.parse(kmlText);

<MapView state={mapViewState}>
  <KMLLayer state={layerState} features={features} />
</MapView>;

To follow <NetworkLink> references, load through KMLLoader instead:

import { KMLLoader } from '@mapconductor/react-kml';

const loader = new KMLLoader();
const features = await loader.load('https://example.com/doc.kml');

License

Apache License 2.0