liodali / osm_flutter

OpenStreetMap plugin for flutter
https://pub.dev/packages/flutter_osm_plugin
MIT License
239 stars 98 forks source link

Map showing grey screen in release web #487

Closed AntonLie closed 7 months ago

AntonLie commented 11 months ago

Hello @liodali , i got error grey screen in release web.

is anything i can do to fix this error?

thanks.

Screenshot

image

liodali commented 11 months ago

any logs ?

AntonLie commented 11 months ago

@liodali here's

image

liodali commented 11 months ago

are you using local tile server or anything can you share any code simple ? is the same code work fine in debug mode ?

AntonLie commented 11 months ago

Yes is working fine in debug mode, but in release mode got error

Code

Screenshot 2023-12-09 at 07 25 58
liodali commented 11 months ago

try to configure https for your deployed server if possible

AntonLie commented 11 months ago

hmm did you mean need https to deploy this libs?

it's not working if no https?

AntonLie commented 11 months ago

btw @liodali , i tried to deploy in nginx local

it's working well

Screenshot

image

liodali commented 11 months ago

in you image log can you expand the uncaught error to see more what it says and also in general browser is smart enough to differentiate between localhost and deployed for ssl certificate try to use letsencrypt it can used easly with ngnix