Skip to content

sanjeevdg/react-leaflet-map-editor

Repository files navigation

Package react-leaflet-map-editor

Usage

To use react-leaflet-map-editor component in your own project first,

import {EditableMap} from "react-leaflet-map-editor";

To use the component you will need to specify a few parameters, as shown here.

< EditableMap fetchUrl={"https://editablemapbackend.onrender.com/api/features"} deleteUrl={"https://editablemapbackend.onrender.com/api/features/"} saveUrl={"https://editablemapbackend.onrender.com/react/api/features"} putUrl={"https://editablemapbackend.onrender.com/api/features/"} maptiler_api_key={"MAPTILER-API-KEY"} />

For a sample express app which has the above endpoints see https://github.com/sanjeevdg/editableMapBackend/tree/main/src

This app is built with leaflet and leaflet-draw.

alt text

You may raise any issues you have on Github.

About

a leaflet and leaflet-draw library in react

Resources

Stars

Watchers

Forks

Packages

No packages published