Leaflet/Leaflet.Editable

editable:true not recognized as property in MapOptions

radiothom opened this issue · 3 comments

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

Hi Francesco,

did you find the solution to the problem

Hi Francesco,

Same problem. Did you find the solution? thanks