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
Hi @satas12825 and @RatebSAYAH . I know it's a little bit late, but the issue its pretty simple to work.
You just have to add the types to the project, i really dont know if they are defined for this plugin, but generally with an npm install @types/leaflet-measure should make it work (if they are defined in some place).
If they are not defined, one alternative, you can work in that by adding manually the types,
file: yourTypesFile.d.types
declare namespace L{
export function yourFunction(args..):returns...
}
you could declare all the types if you want, and then just import the types in your map
import './yourTypesFile.d.types'
and that should let you work, in the example, you just declared the types for a function will be called as L.yourFunction(). Same logic must be applied when working with leaflet-measure
I know there must be another options configuring webpack and so on, but this is pretty simple and allows you to work.
Property 'Measure' does not exist on type 'type of control' in Angular CLI i don't no how to import in Angular
The text was updated successfully, but these errors were encountered: