stevage / map-gl-utils

A utility library that makes Mapbox GL JS or Maplibre GL a bit more convenient to work with.
https://npmjs.com/package/map-gl-utils
210 stars 24 forks source link

Mapbox GL JS v3 Support #42

Open jparish3 opened 11 months ago

jparish3 commented 11 months ago

A quick test of the beta release indicates some breaking changes. Will an update to map-gl-utils be required?

stevage commented 11 months ago

Can you elaborate? What have you seen?

The main thing I notice is that map.getStyle() returns a very different structure with no layers. I'm still trying to work out how it behaves now, since there doesn't seem to be documentation yet,

jparish3 commented 11 months ago

I have an app that uses many of the utils (map.U.addVector, map.U.addGeoJSON, etc) with styling and dynamic updates. When I installed V3, much of the existing functionality no longer works. I will need to check it out systematically, but thought I would check in with you first. I understand that it is a beta release without docs, so maybe a thorough test is premature.

stevage commented 10 months ago

Yeah, I'll keep exploring, but will probably wait for a non-beta release with documentation.

jparish3 commented 1 month ago

will you be adding the properties from this example?...*-emisive-strength in particular