:
Код: Выделить всё
{selectedLocation && (
setSelectedLocation(undefined)}
offset={[0, -15]}
>
HELLO WORLD
)}
< /code>
и мой конфигурация слоя: < /p>
const layers = [
new GeoJsonLayer({
id: "PinkDotsLayer",
data: pinkDotsGeoData,
getPointRadius: 25,
getFillColor: [255, 0, 255],
pickable: true,
onClick: handleLocationClick,
}),
new GeoJsonLayer({
id: "PurpleDotsLayer",
data: purpleDotsGeoData,
getPointRadius: 25,
getFillColor: [128,0,128],
pickable: true,
onClick: handleLocationClick,
}),
];
Подробнее здесь: https://stackoverflow.com/questions/795 ... -gl-layers