package
Production & Active

Mapixa

A high-performance, modular, and extensible suite of drawing, measurement, navigation, and layer visibility tools for MapLibre GL JS and React published on NPM.

Mapixa Showcase

Overview

Mapixa is an extensible, zero-framework-bloat GIS mapping toolkit engineered for MapLibre GL JS and React. Built strictly in TypeScript with modern pure CSS styling and CSS custom properties, Mapixa equips web developers with an all-in-one drawing suite (custom markers, polylines, spherical area polygons, geodesic circles, rectangles, freehand sketching, and self-intersection detector), an interactive shape eraser, and a live drawn layer manager supporting dynamic z-index reordering. It additionally bundles geodesic distance rulers, canvas bounding-box screenshot capture, fly-to coordinate jumper, dynamic raster/vector basemap switchers, and full lifecycle draw events with real-time metrics (distance in km, spherical area in m² and km², radius, and perimeter) ready for production dashboards.

Key Benchmark:

20+ production GIS map tools, zero UI framework dependencies, published on NPM

Key Engineering Features

Comprehensive GIS drawing suite: SVG pinpoint markers, polylines, polygons, geodesic circles, rectangles, and freehand sketching
Live Drawn Layer Manager: popover panel supporting inline renaming, visibility toggling, drag-and-drop z-index reordering, and zoom-to-feature
Interactive Shape Eraser: one-click canvas purge tool with instant visual feedback and clean state disposal
Precision Geodesic Measurement: multi-segment distance ruler, spherical polygon area calculations (m² and km²), and perimeter tracking
Basemap & Overlay Switcher: dynamic raster and vector style switching (Dark, Light, Voyager, OSM) with custom opacity overlays
High-Resolution Area Screen Capture: export map canvas bounding box captures directly as image files
Live Coordinate Capsule & Crosshair Point Picker: real-time cursor coordinate readout with instant click-to-copy
Zero UI framework bloat: pure CSS modern glassmorphic interface styled with CSS custom properties and crisp Lucide icons
Strict TypeScript typings, compound component architecture (<Mapixa.Accordion />, <Mapixa.Button />), and lifecycle draw hooks

Key Technical Challenges & Solutions

1Zero UI Framework Bloat in React & MapLibre

Architected every control and modal using pure vanilla CSS and standard CSS Custom Properties, enabling drop-in compatibility across any UI framework without style bleeding.

2High-precision Spherical and Geodesic Calculations

Engineered Haversine segment accumulation and spherical excess algorithms to provide accurate geodesic line distances and polygon areas directly in real time.

Project Specifications

Category
package
Engineering Role
Package Author & Maintainer
NPM Package
npm i mapixa
Status
Production & Active

Technical Architecture & Stack

Core Architecture & Runtime
React 18+
MapLibre GL JS
react-map-gl
TypeScript
ESM & CJS Dual Output
Geospatial & Computational Engines
GeoJSON Spec
Haversine Geodesic Math
Spherical Polygon Area
Turf.js Algorithms
HTML5 Canvas API
UI & Styling System
Pure CSS (Zero-Bloat)
CSS Custom Properties
Lucide Icons
Glassmorphic Theme
Keyboard Navigation
Packaging & Distribution
NPM Registry (mapixa)
Semantic Versioning
Tree-shakable Exports
GitHub Open Source