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
I'm trying to use leaflet-editable in my angular project but when I try to instantiate the map by adding the editable: true option, the compiler gives me this error:
Type '{ editable: boolean; }' is not assignable to type 'MapOptions'. Object literal may only specify known properties, and 'editable' does not exist in type 'MapOptions'.
I'm trying to use leaflet-editable in my angular project but when I try to instantiate the map by adding the editable: true option, the compiler gives me this error:
Type '{ editable: boolean; }' is not assignable to type 'MapOptions'. Object literal may only specify known properties, and 'editable' does not exist in type 'MapOptions'
.This is the code:
const mo: L.MapOptions = { minZoom: 0, maxZoom: 24, zoomSnap: 1, zoomDelta: 1, zoomControl: false, doubleClickZoom: false, editable: true }; this.map = new L.Map( 'mymap', mo ).setView( [40.6824408, 14.7680961], 13 );
Libs references installed:
"leaflet": "^1.5.1",
"leaflet-editable": "^1.2.0",
"@types/leaflet": "^1.5.5",
"@types/leaflet-editable": "^0.7.34"
Kind regards,
Francesco
The text was updated successfully, but these errors were encountered: