Hello There,
Im getting an error while trying to draw a rectangle "Uncaught ReferenceError: assignment to undeclared variable type",
All other shapes are working fine, but the rectangle is not working, when i use Vite, it throws this error, when i use webpack it's working very good
here's my code JSX code:
<FeatureGroup> <EditControl onDrawStart={_onDrawStart} position='topleft' onEdited={_onEdited} onCreated={_onCreated} onDeleted={_onDeleted} draw={{ polyline: { icon: new L.DivIcon({ iconSize: new L.Point(8, 8), className: 'leaflet-div-icon leaflet-editing-icon' }), shapeOptions: { guidelineDistance: 10, color: 'navy', weight: 3 } }, rectangle: true, circlemarker: false, circle: false, polygon: false }} /> </FeatureGroup>
