You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
It seems to be an issue with leaflet-draw rather than react-leaflet-draw, which is also an unmaintained package, although some people seem to have found a workaround for this particular bug here (#1026).
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>
The text was updated successfully, but these errors were encountered: