Comments (5)
Is this on flutter web, or a mobile device ? Just wondering from the error if its because there's an io feature that can't be available in the browser ?
from flutter-vector-map-tiles.
Mobile device. I'm developing a mobile application for android / iOS. Currently I'm testing only on iOS devices.
from flutter-vector-map-tiles.
@carlodenardin thanks for the issue. Can you confirm that you can run the example app?
Perhaps you could include the output from flutter doctor -v
and the contents of your pubspec.yaml
from flutter-vector-map-tiles.
Yes the example app works fine. I get only a not important error I think:
Unhandled Exception: Cannot retrieve tile: HTTP 403: [https://tiles.stadiamaps.com/data/openmaptiles/11/326/704.pbf]() �PNG
But I think that is something related to the load of the tiles.
For my problem I tried again today and I'm getting this error
:
[VERBOSE-2:ui_dart_state.cc(198)] Unhandled Exception: InvalidProtocolBufferException: Protocol message contained an invalid tag (zero).
#0 CodedBufferReader.readTag
package:protobuf/…/protobuf/coded_buffer_reader.dart:145
#1 _mergeFromCodedBufferReader
package:protobuf/…/protobuf/coded_buffer.dart:33
#2 GeneratedMessage.mergeFromBuffer
package:protobuf/…/protobuf/generated_message.dart:196
#3 new VectorTile.fromBuffer
package:vector_tile/…/proto/vector_tile.pb.dart:340
#4 VectorTile.fromBytes
package:vector_tile/vector_tile.dart:29
#5 VectorTileReader.read.<anonymous closure>
package:vector_tile_renderer/src/vector_tile_reader.dart:10
#6 Timeline.timeSync (dart:developer[/timeline.dart:157:22]())
#7 profileSync
package:vector_tile_renderer/src/profiling.dart:16
#8 VectorTileReader.read
package:vector_tile_renderer/src/vector_tile_reader.dart:9
#9 _createTile (package:vector_map_tiles[/src/cache/vector_tile_lo]()<…>
Is the same come of yesterday but the error is different.
This is the doctor
:
[✓] Flutter (Channel master, 2.11.0-0.0.pre.752, on macOS 12.2.1 21D62 darwin-arm, locale en-GB)
• Flutter version 2.11.0-0.0.pre.752 at /Users/carlodenardin/Workspace/Dependencies/flutter
• Upstream repository https://github.com/flutter/flutter.git
• Framework revision a786f65700 (32 hours ago), 2022-03-03 03:01:22 -0500
• Engine revision 993285f64d
• Dart version 2.17.0 (build 2.17.0-165.0.dev)
• DevTools version 2.11.1
[✓] Android toolchain - develop for Android devices (Android SDK version 30.0.3)
• Android SDK at /Users/carlodenardin/Library/Android/sdk
• Platform android-31, build-tools 30.0.3
• Java binary at: /Library/Java/JavaVirtualMachines/jdk-11.0.11.jdk/Contents/Home/bin/java
• Java version Java(TM) SE Runtime Environment 18.9 (build 11.0.11+9-LTS-194)
• All Android licenses accepted.
[✓] Xcode - develop for iOS and macOS (Xcode 13.2.1)
• Xcode at /Users/carlodenardin/Downloads/Xcode.app/Contents/Developer
• CocoaPods version 1.11.2
[✓] Chrome - develop for the web
• Chrome at /Applications/Google Chrome.app/Contents/MacOS/Google Chrome
[!] Android Studio (not installed)
• Android Studio not found; download from https://developer.android.com/studio/index.html
(or visit https://flutter.dev/docs/get-started/install/macos#android-setup for detailed instructions).
[✓] VS Code (version 1.65.0)
• VS Code at /Users/carlodenardin/Workspace/Ide/Visual Studio Code.app/Contents
• Flutter extension version 3.36.0
[✓] Connected device (2 available)
• iPhone 13 (mobile) • 0B09936E-70C6-4B29-8E70-594917B29350 • ios •
com.apple.CoreSimulator.SimRuntime.iOS-15-2 (simulator)
• Chrome (web) • chrome • web-javascript • Google Chrome
99.0.4844.51
[✓] HTTP Host Availability
• All required HTTP hosts are available
This is the pubspec.yaml
:
name: app
description: A new Flutter project.
# The following line prevents the package from being accidentally published to
# pub.dev using `flutter pub publish`. This is preferred for private packages.
publish_to: 'none' # Remove this line if you wish to publish to pub.dev
# The following defines the version and build number for your application.
# A version number is three numbers separated by dots, like 1.2.43
# followed by an optional build number separated by a +.
# Both the version and the builder number may be overridden in flutter
# build by specifying --build-name and --build-number, respectively.
# In Android, build-name is used as versionName while build-number used as versionCode.
# Read more about Android versioning at https://developer.android.com/studio/publish/versioning
# In iOS, build-name is used as CFBundleShortVersionString while build-number used as CFBundleVersion.
# Read more about iOS versioning at
# https://developer.apple.com/library/archive/documentation/General/Reference/InfoPlistKeyReference/Articles/CoreFoundationKeys.html
version: 1.0.0+1
environment:
sdk: ">=2.15.1 <3.0.0"
# Dependencies specify other packages that your package needs in order to work.
# To automatically upgrade your package dependencies to the latest versions
# consider running `flutter pub upgrade --major-versions`. Alternatively,
# dependencies can be manually updated by changing the version numbers below to
# the latest version available on pub.dev. To see which dependencies have newer
# versions available, run `flutter pub outdated`.
dependencies:
flutter:
sdk: flutter
# Database
mongo_dart: ^0.7.4
# Map
flutter_map: ^0.14.0
flutter_map_marker_popup: ^2.1.1+1
latlong2: ^0.8.1
vector_tile_renderer: ^2.3.1
vector_map_tiles: ^1.4.3
# Stacked Architecture
stacked: ^2.2.8
stacked_services: ^0.8.16
get_it: ^7.2.0
# Style
carousel_slider: ^4.0.0
modal_bottom_sheet: ^2.0.0
persistent_bottom_nav_bar: ^4.0.2
pull_to_refresh: ^2.0.0
sizer: ^2.0.15
sliding_up_panel: ^2.0.0+1
shimmer: ^2.0.0
dev_dependencies:
flutter_test:
sdk: flutter
from flutter-vector-map-tiles.
HTTP 403
is the server rejecting the HTTP request. I'm not sure why you'd get that from Stadia maps, but perhaps it's something related to using an appropriate API key.
InvalidProtocolBufferException: Protocol message contained an invalid tag (zero).
I'm not sure why this is coming up from you, perhaps there's something wrong in one of the protobuf tiles. I've had cases where tile data wouldn't load due to a half-written file in the file cache. From what I could guess, it was due to terminating an app while the file was being written to disk. You may want to clear out the file cache and try again.
As for the original issue, it should be straight forward to troubleshoot by putting a breakpoint where the plugin is loaded. You'll be able to see which platform is being used, and from there figure out why the plugin isn't available. I'm glad that you can run the example, please post what you learn back here so that others can benefit if they run in to the same problem.
From the output of flutter doctor
it looks like you're running an unreleased version of Flutter. If all else fails, you may want to try running with a released version since that is what we test with.
Closing since this does not appear to be a defect with this plugin.
from flutter-vector-map-tiles.
Related Issues (20)
- Differences in Styles for Mapbox.
- Update flutter_map dependency to 6.1.x HOT 4
- Web support HOT 1
- Question about working with tile server.
- [StyleReader] Converting JSON into a Style HOT 7
- DEpendency problems when upgrading to 6.0.2 HOT 2
- display with rotation is not the same between vector and raster modes in version 7.0.0 HOT 3
- is expressmaps supported? HOT 1
- Package available for web? HOT 2
- Raster Tiles Usage HOT 1
- would something like https://github.com/fleaflet/flutter_map_cancellable_tile_provider help in performance HOT 1
- very low performance HOT 1
- Override background color of VectorTileLayer HOT 1
- Google maps support - Issue HOT 3
- Can't display pg_tileserv and postgis tiles HOT 1
- How to rotate and zoom the map like a native map experience
- Raster mode tile cancellation HOT 1
- new version available HOT 2
- providers.isNotEmpty error
- Blurred and Overly-Shadowed Sprites
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from flutter-vector-map-tiles.