gistda-sphere-react

Points of interest by category

Let users pick POI categories and show them on the map

Pick a category, then toggle tags to show those places on the map:

Loading categories…0 on

Each <Tag> adds its layer when it mounts and removes it when it unmounts, so the map always matches activeTags. To manage tags imperatively instead, use useTags:

import { useTags } from "gistda-sphere-react";

const { add, remove, clear } = useTags();
add("โรงพยาบาล");
add("เอทีเอ็ม");
remove("โรงพยาบาล");