Esri / esri-leaflet-vector

Display ArcGIS Online vector basemaps w/ Esri Leaflet
Apache License 2.0
56 stars 57 forks source link

Update to maplibre-gl v3 #194

Closed gavinr closed 1 year ago

gavinr commented 1 year ago

Describe the problem

v3 of maplibre-gl was released in May. Since we package maplibre-gl with this library, it probably makes sense to test if upgrading will work,

Describe the proposed solution

If upgrading will work, we can go ahead and update the dependency: https://github.com/Esri/esri-leaflet-vector/blob/bbc8d12707c40530cc68469d2f258e2f2e2dfa4e/package.json#L17

Will this require a major semver version increase afterward (v4 to v5)? I don't think so since none of our library APIs should change, but open for discussion if I'm missing anything.

Alternatives considered

No response

Additional Information

No response

sheeley820 commented 1 year ago

As side note in regards to maplibre-gl, is there a specific reason MaplibreGLJSLayer is not exported in EsriLeafletVector.js? In particular when working with printing plugins for Leaflet I ran into an issue where the Maplibre layer needed to be associated with a layer type, but that type is not exposed by the project. Would it be possible to just add export { MaplibreGLJSLayer, maplibreGLJSLayer } from './MaplibreGLLayer';?

sdthaker commented 1 year ago

Hi @gavinr @gavinr-maps, could you please assign this issue to me? I'd like to contribute to this issue as part of Hacktoberfest. Thanks!

gavinr-maps commented 1 year ago

Hi @sdthaker, thanks for taking a look. No need to wait for us to assign it - just go ahead and work on it and submit a PR! (in fact usually we do not assign issues on our open source repos)

sdthaker commented 1 year ago

Is there a specific minor version that needs to be installed for maplibre-gl or the latest v3 should do, which happens to be v3.3.1? @gavinr-maps

gavinr-maps commented 1 year ago

Current latest should be fine. Thanks!