Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] Error with Maplibre 5 and React Map GL (pixelsToGLUnits) #2460

Open
tordans opened this issue Jan 6, 2025 · 2 comments
Open

[Bug] Error with Maplibre 5 and React Map GL (pixelsToGLUnits) #2460

tordans opened this issue Jan 6, 2025 · 2 comments
Labels

Comments

@tordans
Copy link
Contributor

tordans commented Jan 6, 2025

Description

I tried to update two of my Astro+React (React Map GL) projects to Maplibre 5 and I am getting an error “pixelsToGLUnits” for both.

I don’t see issues in either repo (Search Maplibre), but React Map GL uses the setting internally.

The new react-maplibre library does not use the setting.

image

Expected Behavior

No response

Steps to Reproduce

  1. Run https://github.com/FixMyBerlin/nudafa
  2. Update Maplibre to 5
  3. Open https://www.nudafa.de/radnetz/einleitung?map=11%2F52.345%2F13.61 (locally) to see the error

Environment

  • Framework version: "react-map-gl": "^7.2.0-beta.1",
  • Map library: "maplibre-gl": "^4.7.1" works, 5.0.x does not
  • Browser: Chrome
  • OS: Mac OS

Logs

No response

@tordans tordans added the bug label Jan 6, 2025
@albricepiazza
Copy link

albricepiazza commented Jan 6, 2025

Same here !

There is a compatibility problem between react-map-gl and maplibre-gl@5

@Pessimistress
Copy link
Collaborator

See #2457

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

3 participants