🎩 You're Invited:Meet the Socket team at Black Hat in Las Vegas, August 3-6.RSVP
Sign In

@geowiki/maplibre

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@geowiki/maplibre

A lightweight, MapLibre-only React wrapper used by the TanStack-based GeoWiki app.

latest
npmnpm
Version
0.0.0
Version published
Maintainers
1
Created
Source

@geowiki/maplibre

A lightweight, MapLibre-only React wrapper used by the TanStack-based GeoWiki app.

Unlike @geowiki/map, this package has no Leaflet dependency and a much smaller peer-dependency surface. It exposes a low-level MapContainer plus declarative helpers (sources, layers, controls, base-layer presets) so consumers can compose maps without touching the imperative MapLibre API directly.

Usage

import {
  MapContainer,
  GeoJsonSource,
  ClusterLayer,
  NavigationControl,
  useBaseStyle,
} from "@geowiki/maplibre";
import "@geowiki/maplibre/styles.css";

function MyMap() {
  const style = useBaseStyle("osm");
  return (
    <MapContainer style={style} center={[0, 0]} zoom={2} className="h-full w-full">
      <NavigationControl position="top-right" />
      <GeoJsonSource id="points" data={featureCollection} cluster />
      <ClusterLayer sourceId="points" color="#00A7CE" />
    </MapContainer>
  );
}

Exports:

  • MapContainer – the React wrapper around maplibregl.Map
  • useMap – consume the current map instance inside descendants
  • GeoJsonSource, ClusterLayer, MarkerLayer – declarative source/layer primitives
  • NavigationControl, ScaleControl, AttributionControl – built-in MapLibre controls
  • useBaseStyle / BASE_STYLES – presets for OSM, satellite, terrain, hillshade

FAQs

Package last updated on 17 May 2026

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts