Giter VIP home page Giter VIP logo

flutter_map_plugins's People

Contributors

greensopinion avatar josxha avatar netvandal avatar patrickwulfe avatar thelm76 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

flutter_map_plugins's Issues

`PmTilesVectorTileProvider` doesn't shows any details of higher zoom levels

Hi There,
Can you give me any hint or suggestion on how to work and improve the rendering of the Map. Testing the sample app I can get it working but seems that the vector_map_tiles_pmtiles map is quite basic. Using ProvidedThemes.lightTheme() render like this:

Screenshot 2024-02-06 at 15 50 09
I have some questions:

  1. is this the expected look?
  2. Have you any hint on how to improve it (I'll be happy to help if you give me a starting point)
  3. Can be the style.json here: https://maps.protomaps.com/#map=7.99/45.234/10.21&theme=light&renderer=maplibregl&tiles=https://build.protomaps.com/20240206.pmtiles be of any help?
    Thankyou very much for your work.

Exception caught by image resource service

Hi! I'm new to Flutter so I am probably missing something, but I am trying to use FileSystem cache exactly as it is showing on this example, and it is showing a lot of the exceptions below every time the map loads:

════════ Exception caught by image resource service ════════════════════════════
DioException [request cancelled]: The request was cancelled.

It doesn't show any other detail, only those lines repeating multiple times. This is happening both with File System and In Memory cache, for Android and iOS simulators.

What could be the cause of this?
Thanks!

[BUG] MapCompass alignment not working

Package

flutter_map_compass

Bug Description

MapCompass alignment not working

Steps to Reproduce

Add code MapCompass in FlutterMap

flutter doctor

[✓] Flutter (Channel stable, 3.19.5, on Ubuntu 22.04.4 LTS 5.15.0-101-generic, locale ru_RU.UTF-8)
[✓] Android toolchain - develop for Android devices (Android SDK version 34.0.0)
[✓] Chrome - develop for the web
[✓] Linux toolchain - develop for Linux desktop
[✓] Android Studio (version 2023.2)
[✓] Connected device (3 available)
[✓] Network resources

Expected Results

The compass is expected to be top left

Actual Results

But the compass on the top right
Screenshot_20240403_152806

Code Sample

FlutterMap(
        options: MapOptions(),
        children: [
          ...
          MapCompass(
            icon: SvgPicture.asset(Const.IMAGE_COMPASS, height: sizeCompassMaker),
            alignment: Alignment.topLeft,
          ),
        ],
      ),

Platforms

android

DioException: Request Cancelled in listenCancelForAsyncTask

Issue Description
I encountered a DioException with the message [request cancelled]: The request was cancelled while making HTTP requests using the Dio library.

Code Snippet
Here's the code snippet where the issue occurs:

@internal
static Future<T> listenCancelForAsyncTask<T>(
  CancelToken? cancelToken,
  Future<T> future,
) {
  return Future.any([
    if (cancelToken != null) cancelToken.whenCancel.then((e) => throw e),
    future,
  ]);
}

Error Message

DioException (DioException [request cancelled]: The request was cancelled.)

Steps Taken to Resolve
Cleaned and rebuilt the project
Ensured all dependencies are up to date
None of these steps resolved the issue.

Additional Information
Dio Version: (Please provide the version of Dio you are using)
Flutter Version: (Please provide the version of Flutter you are using)
Operating Environment: (e.g., Android, iOS, Web)
Does anyone know how to resolve this issue? Thank you!

FM v6 is coming soon

The next version of flutter_map is coming soon, with breaking changes for all users and plugins!

Expected CHANGELOG: https://github.com/fleaflet/flutter_map/blob/release-prep/CHANGELOG.md
Likely to be merged PR with significant impacts: fleaflet/flutter_map#1615
Release prep PR: fleaflet/flutter_map#1632
New documentation (path liable to change): https://docs.fleaflet.dev/v/v6-1
Expected migration instructions, suitable for most users: https://docs.fleaflet.dev/v/v6-1/getting-started/migrating-to-v6
List of commits since v5 (more to come): fleaflet/flutter_map@v5.0.0...master

[ERROR:flutter/runtime/dart_vm_initializer.cc(41)] Unhandled Exception

Some map providers give me such an exception, while the images eventually load successfully.

Exception throws (package:flutter_map_cache/src/cached_image_provider.dart:84:13)

UPD. I logged onReceiveProgress: (count, total) event and it seems that total is -1 for some reason.

E/flutter (21781): #0      _AssertionError._doThrowNew (dart:core-patch/errors_patch.dart:51:61)
E/flutter (21781): #1      _AssertionError._throwNew (dart:core-patch/errors_patch.dart:40:5)
E/flutter (21781): #2      new ImageChunkEvent (package:flutter/src/painting/image_stream.dart:272:15)
E/flutter (21781): #3      CachedImageProvider._loadAsync.<anonymous closure> (package:flutter_map_cache/src/cached_image_provider.dart:84:13)
E/flutter (21781): #4      SyncTransformer.transformResponse.<anonymous closure> (package:dio/src/transformers/sync_transformer.dart:82:36)
E/flutter (21781): #5      _RootZone.runUnaryGuarded (dart:async/zone.dart:1594:10)
E/flutter (21781): #6      _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:339:11)
E/flutter (21781): #7      _BufferingStreamSubscription._add (dart:async/stream_impl.dart:271:7)
E/flutter (21781): #8      _SinkTransformerStreamSubscription._add (dart:async/stream_transformers.dart:63:11)
E/flutter (21781): #9      _EventSinkWrapper.add (dart:async/stream_transformers.dart:13:11)
E/flutter (21781): #10     IOHttpClientAdapter._fetch.<anonymous closure> (package:dio/src/adapters/io_adapter.dart:242:18)
E/flutter (21781): #11     _HandlerEventSink.add (dart:async/stream_transformers.dart:209:17)
E/flutter (21781): #12     _SinkTransformerStreamSubscription._handleData (dart:async/stream_transformers.dart:111:24)
E/flutter (21781): #13     _RootZone.runUnaryGuarded (dart:async/zone.dart:1594:10)
E/flutter (21781): #14     _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:339:11)
E/flutter (21781): #15     _BufferingStreamSubscription._add (dart:async/stream_impl.dart:271:7)
E/flutter (21781): #16     _ForwardingStreamSubscription._add (dart:async/stream_pipe.dart:123:11)
E/flutter (21781): #17     _HandleErrorStream._handleData (dart:async/stream_pipe.dart:253:10)
E/flutter (21781): #18     _ForwardingStreamSubscription._handleData (dart:async/stream_pipe.dart:153:13)
E/flutter (21781): #19     _RootZone.runUnaryGuarded (dart:async/zone.dart:1594:10)
E/flutter (21781): #20     _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:339:11)
E/flutter (21781): #21     _BufferingStreamSubscription._add (dart:async/stream_impl.dart:271:7)
E/flutter (21781): #22     _SyncStreamControllerDispatch._sendData (dart:async/stream_controller.dart:784:19)
E/flutter (21781): #23     _StreamController._add (dart:async/stream_controller.dart:658:7)
E/flutter (21781): #24     _StreamController.add (dart:async/stream_controller.dart:606:5)
E/flutter (21781): #25     _HttpParser._doParse (dart:_http/http_parser.dart:829:28)
E/flutter (21781): #26     _HttpParser._parse (dart:_http/http_parser.dart:319:7)
E/flutter (21781): #27     _HttpParser._onData (dart:_http/http_parser.dart:873:5)
E/flutter (21781): #28     _RootZone.runUnaryGuarded (dart:async/zone.dart:1594:10)
E/flutter (21781): #29     _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:339:11)
E/flutter (21781): #30     _BufferingStreamSubscription._add (dart:async/stream_impl.dart:271:7)
E/flutter (21781): #31     _SyncStreamControllerDispatch._sendData (dart:async/stream_controller.dart:784:19)
E/flutter (21781): #32     _StreamController._add (dart:async/stream_controller.dart:658:7)
E/flutter (21781): #33     _StreamController.add (dart:async/stream_controller.dart:606:5)
E/flutter (21781): #34     _Socket._onData (dart:io-patch/socket_patch.dart:2447:41)
E/flutter (21781): #35     _RootZone.runUnaryGuarded (dart:async/zone.dart:1594:10)
E/flutter (21781): #36     _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:339:11)
E/flutter (21781): #37     _BufferingStreamSubscription._add (dart:async/stream_impl.dart:271:7)
E/flutter (21781): #38     _SyncStreamControllerDispatch._sendData (dart:async/stream_controller.dart:784:19)
E/flutter (21781): #39     _StreamController._add (dart:async/stream_controller.dart:658:7)
E/flutter (21781): #40     _StreamController.add (dart:async/stream_controller.dart:606:5)
E/flutter (21781): #41     _RawSecureSocket._sendReadEvent (dart:io/secure_socket.dart:1114:19)
E/flutter (21781): #42     Timer._createTimer.<anonymous closure> (dart:async-patch/timer_patch.dart:18:15)
E/flutter (21781): #43     _Timer._runTimers (dart:isolate-patch/timer_impl.dart:398:19)
E/flutter (21781): #44     _Timer._handleMessage (dart:isolate-patch/timer_impl.dart:429:5)
E/flutter (21781): #45     _RawReceivePort._handleMessage (dart:isolate-patch/isolate_patch.dart:189:12)```

[flutter_map_cache] CachedImageProvider generates assert errors

each time I open my map, I have the following exception occurring multiple times :

flutter: core binding run 'package:flutter/src/painting/image_stream.dart': Failed assertion: line 268 pos 15: 'expectedTotalBytes == null || expectedTotalBytes >= 0': is not true.
flutter: 
#0      _AssertionError._doThrowNew (dart:core-patch/errors_patch.dart:51:61)
#1      _AssertionError._throwNew (dart:core-patch/errors_patch.dart:40:5)
#2      new ImageChunkEvent (package:flutter/src/painting/image_stream.dart:268:15)
#3      CachedImageProvider._loadAsync.<anonymous closure> (package:flutter_map_cache/src/cached_image_provider.dart:84:13)
#4      SyncTransformer.transformResponse.<anonymous closure> (package:dio/src/transformers/sync_transformer.dart:82:36)
#5      _rootRunUnary (dart:async/zone.dart:1407:47)
#6      _CustomZone.runUnary (dart:async/zone.dart:1308:19)
#7      _CustomZone.runUnaryGuarded (dart:async/zone.dart:1217:7)
#8      _BufferingStreamSubscription._sendData (dart:async/stream_impl.dart:339:11)
#9      _BufferingStreamSubscription._add (dart:async/stream_impl.dart:271:7)
#10     _SinkTransformerStreamSubscription._add (dart:async/stream_transformers.dart:63:11)
#11     _EventSinkWrapper.add (dart:async/stream_transformers.dart:13:11)
#12     IO<…>

[upstream] Exception when running in the VS Code debugger

VS Code has a bug where exceptions in async dart functions get caught even if they are actually handled.
The error message is:

DioException (DioException [request cancelled]: The request was cancelled.)
image

This can be ignored, because the request cancelled exception gets handled by the package since flutter_map_cache version 1.3.1.

For more information about this issue see:

If you don't want the app to pause for those exceptions, you can uncheck the following debugger checkboxes:
image

Upvote & Fund

  • We're using Polar.sh so you can upvote and help fund this issue.
  • We receive the funding once the issue is completed & confirmed by you.
  • Thank you in advance for helping prioritize & fund our backlog.
Fund with Polar

[BUG] Test bug report to test the ci

Package

flutter_map_mbtiles

Bug Description

sdfg

Steps to Reproduce

asdf

Expected Results

dsfg

Actual Results

dfg

Code Sample

// Paste your code here

Platforms

  • All
  • Android
  • iOS
  • Web
  • Windows
  • MacOS
  • Linux

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.