// the find
arthur-e/Wicket
A modest library for moving between Well-Known Text (WKT) and various framework geometries
Wicket converts between WKT geometry strings and the native objects of Leaflet, Google Maps, and ArcGIS JS API. Zero dependencies, uniform API across frameworks. Useful when your backend speaks WKT (PostGIS, OGC services) and your frontend speaks one of those mapping libraries.
- Zero dependencies and genuinely lightweight — the core wicket.js plus one adapter file is all you ship
- Uniform API across frameworks: same read/write/toObject calls whether you're targeting Leaflet or Google Maps, so switching renderers doesn't rewrite your geometry code
- Handles the full WKT type hierarchy including MULTIPOLYGON and polygons with interior rings (holes), which most toy WKT parsers skip
- Extensible by prototype augmentation — adding a new mapping library means adding one file, not forking core
- Dead project: last commit September 2021, open issues and PRs rotting unmerged, Travis CI badge pointing at a broken URL
- GPLv3 license is a serious adoption blocker for commercial products — many teams will hit this and reach for wellknown or turf instead
- No support for WKT Z/M coordinates or newer geometry types like CIRCULARSTRING — anything beyond basic 2D flat geometry will silently misbehave or just not parse
- ArcGIS extension targets the legacy non-AMD ArcGIS JS API 3.x; the AMD variant is an afterthought and ArcGIS 4.x support is absent