-
Notifications
You must be signed in to change notification settings - Fork 67
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
Unable to run on Chrome(Web) #12
Comments
Thanks for the issue. Supported platforms are iOS, Android, Linux, Windows and MacOS. So far I've only tested on Android and iOS. Web is not supported because this package relies heavily on access to the drive to cache rendered tiles. Without caching, performance is terrible. What is your use-case for web support? Is there a reason that you don't want to use existing mapping JS libraries such as MapLibre GL, Leaflet or one of the many other web-based mapping libraries? |
Thanks for your response! Well, i want to develop a cross platform vector tiles rendering solution. By searching mvt tiles rendering with flutter, i came across this plugin and wanted to try it out. I was successful with rendering pbf tiles on mobile but had this issue in web version. |
Good to know the use-case, makes sense to me! I tried it out by removing byte_storage.dart)[https://github.com/greensopinion/flutter-vector-map-tiles/blob/main/lib/src/cache/byte_storage.dart#L13] just to see if it would work, and there are some rough edges that would need fixing. For example, some text rendering outside of the canvas bounds was causing exceptions. I don't intend on supporting web as a platform with this plug-in, however I would accept contributions. Feel free to contribute if you'd like to see web support. As an alternative you may want to consider wrapping a JS mapping library in a web view, eg. using webview_flutter |
Closing since I'm not working on this right now. |
Getting following exception
Uncaught (in promise) Error: MissingPluginException(No implementation found for method getTemporaryDirectory on channel plugins.flutter.io/path_provider) at Object.throw_ [as throw] (errors.dart:236) at platform_channel.MethodChannel.new._invokeMethod (platform_channel.dart:156) at _invokeMethod.next (<anonymous>) at async_patch.dart:45 at _RootZone.runUnary (zone.dart:1612) at _FutureListener.thenAwait.handleValue (future_impl.dart:152) at handleValueCallback (future_impl.dart:704) at Function._propagateToListeners (future_impl.dart:733) at _Future.new.[_completeWithValue] (future_impl.dart:539) at async._AsyncCallbackEntry.new.callback (future_impl.dart:577) at Object._microtaskLoop (schedule_microtask.dart:40) at _startMicrotaskLoop (schedule_microtask.dart:49) at async_patch.dart:166
The text was updated successfully, but these errors were encountered: