gistda-sphere-react

gistda-sphere-react

React wrapper for the GISTDA Sphere Map API with full TypeScript support

This is an unofficial community project and is not affiliated with, endorsed by, or supported by GISTDA (Geo-Informatics and Space Technology Development Agency). For official documentation and support, please visit sphere.gistda.or.th.

This project is currently under active development. APIs may change between releases.

A React wrapper for the GISTDA Sphere Map API. Build interactive maps of Thailand with full TypeScript support.

Features

  • The whole Sphere API: every map class, event and option, mapped on the API coverage page.
  • Declarative components for maps, markers and marker clusters, popups, shapes, GeoJSON, layers, POI tags, live data and controls. They clean up after themselves and update in place.
  • React everywhere: React content in marker icons, popups and map controls.
  • Routing that just works: route status, totals and readable turn-by-turn steps as React state.
  • Search, places and POIs: search with autocomplete, nearby places, addresses, area outlines and over 250 POI tags in 20 categories.
  • Data and analysis: GeoJSON, KML, GPX and WKT data, heatmaps, clusters, 3D layers, measurements and polygon operations.
  • Web services: a typed client for routing, geocoding, elevation, static maps, agriculture, disasters and population, in the browser or on a server.
  • Ready for Next.js: render the components from Server Components, and keep hooks and event handlers in Client Components.
  • TypeScript first: typed props, refs, results and events.

Quick install

npm install gistda-sphere-react

On this page