Closed srfrnk closed 2 years ago
I think the issue is that the typings for leaflet-d3 aren't being correctly imported/interpreted. You can see how it's complaining that HexbinLayerOptions doesn't exist on leaflet's typings, which is actually correct.
I released a new version of this plugin that works with Angular13 and a newer version of the leaflet-d3 plugin. Check it out and see if that helps.
Also renamed the options to HexbinLayerConfig
. You can see it in use in the demo, so you could see how that is set up to see how it compares to yours.
To make it work I had to:
1) Run
npm install -S d3-hexbin
2) Add to.../src/app/app.module.ts
import { LeafletD3Module } from '@asymmetrik/ngx-leaflet-d3';
Also this still fails to compile:
With:
And only the following compiles: