maplibre / flutter-maplibre-gl

Customizable, performant and vendor-free vector and raster maps, flutter wrapper for maplibre-native and maplibre-gl-js (fork of flutter-mapbox-gl/maps)
https://pub.dev/packages/maplibre_gl
Other
215 stars 117 forks source link

[High Priority] Web mode broken in pub.dev published version #309

Closed m0nac0 closed 4 months ago

m0nac0 commented 12 months ago

Discussed in https://github.com/maplibre/flutter-maplibre-gl/discussions/306

Originally posted by **AndhikaJeremia** September 29, 2023 Hi, can anyone help? I have an error while running it on the chrome web browser on linux system. it shows Text `TargetPlatform.linux is not yet supported by the map's plugin` instead showing the map i tried running the example it runs well is there any setups that i need to do so it will run well on chrome web browser on linux?
m0nac0 commented 12 months ago

I can reproduce the issue. Create a simple example app and add maplibre as a dependency (from pub.dev). Web does not work.

m0nac0 commented 12 months ago

It seems that the release process on pub.dev may have been incomplete. For reference, the release process is documented at https://github.com/maplibre/flutter-maplibre-gl/blob/main/RELEASE.md (but needs to be adapted now that we have pub.dev publishing). Specifically I think we need to also release maplibre_gl_web.

We should also take a closer look at the dependencies in general.

m0nac0 commented 12 months ago

For the web package, I think we need to change the maplibre_gl_platform_interface dependency at:

https://github.com/maplibre/flutter-maplibre-gl/blob/cd5950dc2178d51c23d6b82496b0ef9879ce4a3e/maplibre_gl_web/pubspec.yaml#L20C1-L24C16

to a regular dependency on pub.dev.

And remove the dependency override at

https://github.com/maplibre/flutter-maplibre-gl/blob/cd5950dc2178d51c23d6b82496b0ef9879ce4a3e/maplibre_gl_web/pubspec.yaml#L27C1-L29C44

m0nac0 commented 10 months ago

This was accidentally automatically closed by GitHub. We should only close this once new releases have been pushed to pub.dev

chaos123x commented 6 months ago

Hi. Is there any updates? Or fix description?