Download demo-frontend/node_modules/react-leaflet/lib/LayerGroup.js from LarryD123/OurData: direct link, hf CLI and curl.
- Browser
- Download file 421 Bytes
-
https://huggingface.co/datasets/LarryD123/OurData/resolve/main/demo-frontend/node_modules/react-leaflet/lib/LayerGroup.js
- Command line
-
hf download hf://datasets/LarryD123/OurData/demo-frontend/node_modules/react-leaflet/lib/LayerGroup.js
-
curl -L -o LayerGroup.js https://huggingface.co/datasets/LarryD123/OurData/resolve/main/demo-frontend/node_modules/react-leaflet/lib/LayerGroup.js
421 Bytes
| import { createElementObject, createLayerComponent, extendContext } from '@react-leaflet/core'; | |
| import { LayerGroup as LeafletLayerGroup } from 'leaflet'; | |
| export const LayerGroup = createLayerComponent(function createLayerGroup({ children: _c, ...options }, ctx) { | |
| const group = new LeafletLayerGroup([], options); | |
| return createElementObject(group, extendContext(ctx, { | |
| layerContainer: group | |
| })); | |
| }); | |