bluehalo / ngx-leaflet-tutorial-plugins

MIT License
22 stars 10 forks source link

ngx-leaflet-plugins without angular-cli #12

Closed mratasoy closed 5 years ago

mratasoy commented 6 years ago

I am developing an Angular6 project with JHipster (https://www.jhipster.tech/using-angular/) JHipster supports angular-cli but there are some bugs, so i don't want to use it. Jhipster also uses webpack. I implemented to ngx-leaflet.

I had a problem for integrate to Leaflet-MovingMarker plugin.

I followed to asymmetrik plugin tutorial. Plugin has no type support so i have to add some type info to the existing Leaflet module but i have no src/typings.d.ts file. Should i create it by myself?

Also i have no .angular-cli.json file

How could i integrate to this plugin ?

sebastienpattyn93 commented 6 years ago

I'm having the same issue for the Canvas-flowmap-Layer plugin. In Angular 6 you shoud use your angular.json file instead of the angular-cli.json but even adding it there, did not solve it for me. Are there any updates on this?

reblace commented 5 years ago

I believe this can be configured through tsconfig.json: https://stackoverflow.com/questions/38971984/how-to-add-custom-typings-in-typescript-2-0

I also think that as long as a typings file is included by the compiler, Typescript will use it. But, I'm not positive. This might be a better question to ask on Stack Overflow if you still have issues with it as it's more of a Typescript issue.