Installation
Install gistda-sphere-react in your project
Install the package
npm install gistda-sphere-reactThe package has no other dependencies and ships its own TypeScript types. The Sphere map itself is loaded from GISTDA's servers when SphereProvider mounts, so there's nothing else to install.
Requirements
- React 19 or later, in any setup, such as Vite, Next.js or React Router.
reactandreact-domare peer dependencies. - A browser. Maps render on the client. In the Next.js App Router, you can render the components from Server or Client Components, but hooks and event handlers need a Client Component (
"use client"). See Using it with Next.js. The web services client also runs on servers. - An API key from GISTDA. See Getting an API key.
Next steps
Follow the quick start to render your first map.