Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

editable:true not recognized as property in MapOptions #195

Open
radiothom opened this issue Oct 25, 2019 · 3 comments
Open

editable:true not recognized as property in MapOptions #195

radiothom opened this issue Oct 25, 2019 · 3 comments

Comments

@radiothom
Copy link

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

@seal707
Copy link

seal707 commented Jan 16, 2020

Hi Francesco,

did you find the solution to the problem

@chetex
Copy link

chetex commented Jul 8, 2020

Hi Francesco,

Same problem. Did you find the solution? thanks

@radiothom
Copy link
Author

radiothom commented Jul 8, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants