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
using Angular 17, @bluehalo/ngx-leaflet 19.0.0, leaflet: 1.9.4
I recently upgraded a project from Angular 14 and am doing some major rewrites so updating all packages where I can. I have vector tiles that I am serving from my own server, but after upgrading to bluehalo from the previous maintainer, angular is complaining that:
Module '"leaflet"' has no exported member 'vectorGrid'.
I see in the old package.json for ngx-leaflet there was a dependency for leaflet.vectorgrid, but that is no longer included. I have tried installing leaflet.vectorgrid manually but I still get the error above. Is there a way to fix this? Or is there a better way to display vector tiles on my angular leaflet map?
I used to have:
const vectorTileOptions = {
vectorTileLayerStyles: vectorTileStyling,
renderer: renderer,
zIndex: 1000,
interactive: true, // Make sure that this VectorGrid fires mouse/pointer events
};
And I had to add a namespace in my typings.d.ts file like this:
import * as L from "leaflet";
declare module "leaflet" {
namespace vectorGrid {
export function protobuf(url: string, options?: any): any;
}
}
but none of this works now. Any help would be appreciated.
The text was updated successfully, but these errors were encountered:
I don't think we ever directly included Leaflet.VectorGrid in any of our releases. It's possible that something else has broken how you were including it. Can you include your old package.json?
using Angular 17, @bluehalo/ngx-leaflet 19.0.0, leaflet: 1.9.4
I recently upgraded a project from Angular 14 and am doing some major rewrites so updating all packages where I can. I have vector tiles that I am serving from my own server, but after upgrading to bluehalo from the previous maintainer, angular is complaining that:
Module '"leaflet"' has no exported member 'vectorGrid'.
I see in the old package.json for ngx-leaflet there was a dependency for leaflet.vectorgrid, but that is no longer included. I have tried installing leaflet.vectorgrid manually but I still get the error above. Is there a way to fix this? Or is there a better way to display vector tiles on my angular leaflet map?
I used to have:
const vectorTileOptions = {
vectorTileLayerStyles: vectorTileStyling,
renderer: renderer,
zIndex: 1000,
interactive: true, // Make sure that this VectorGrid fires mouse/pointer events
};
const tlayer = vectorGrid.protobuf(tileurl + '/{z}/{x}/{y}.pbf',
vectorTileOptions,
).on('click', function(e) { })
And I had to add a namespace in my typings.d.ts file like this:
import * as L from "leaflet";
declare module "leaflet" {
namespace vectorGrid {
export function protobuf(url: string, options?: any): any;
}
}
but none of this works now. Any help would be appreciated.
The text was updated successfully, but these errors were encountered: