Closed oliviercherrier closed 8 years ago
Hi Oliver,
Yep, what you're finding is that there are no available typings for leaflet-omnivore. Since I don't use Angular or TypeScript and rarely have free time, I haven't written them myself. You're certainly welcome to write them, and contribute them to the DefinitelyTyped repository. Closing this issue, as this isn't a problem directly with leaflet-omnivore and typings, while nice-to-have, are not a requirement to use a JavaScript library.
Hi @tmcw,
Thank your answer.
Olivier.
Hi @oliviercherrier, Did you solves this?
Hello,
I was trying to manage include leaflet-omnivore in a Ionic 2 / Angular 2 project.
In a first approach, I installed the leaflet-omnivore npm packages (
npm install leaflet-omnivore --save
) and I try totypings dt~leaflet-omnivore
to get leaflet-omnivore accessible from aimport * as L_o from 'leaflet-omnivore'
(as from leaflet) but it seams not possible:Moreover, I cannot find any leaflet-omnivore entry here: https://api.typings.org/search?query=leaflet
In a second approach, I include the leaflet-omnivore.min.js in the www/build/js folder and link in to my component using
It works but I am afraid that this solution is pretty uggly... Can you advise me on the good way to use leaflet-omnivore insied a Ionic 2 / Angular 2 project.
Thank you by advance,
Olivier.