diff options
Diffstat (limited to 'src/controls/LocateControl.ts')
| -rw-r--r-- | src/controls/LocateControl.ts | 7 |
1 files changed, 7 insertions, 0 deletions
diff --git a/src/controls/LocateControl.ts b/src/controls/LocateControl.ts new file mode 100644 index 0000000..4ef8243 --- /dev/null +++ b/src/controls/LocateControl.ts @@ -0,0 +1,7 @@ +import {createControlComponent} from '@react-leaflet/core'; +import {LocateControl as LeafletLocateControl} from 'leaflet.locatecontrol'; +import "leaflet.locatecontrol/dist/L.Control.Locate.min.css"; + +export const LocateControl = createControlComponent( + (props) => new LeafletLocateControl(props) +);
\ No newline at end of file |
