Closed mrxdevs closed 2 months ago
I have checked, Its working fine with 0.19.0+2 but not with latest 0.20.0
Hi @amjad-raptee, the tutorial you linked is outdated. Please use maplibre_gl directly from pub.dev:
dependencies:
maplibre_gl: ^0.20.0
If you need to use maplibre_gl from github, you need to set the path because the package got moved to a subdirectly:
git:
url: https://github.com/maplibre/flutter-maplibre-gl
path: maplibre_gl
ref: 0.20.0
I hope this information helps.
Hello @josxha thank for help, I have checked Pub.dev Documentation , It seems this is also outdated as you can see here
and this is running smooth with android but crashing on iOS
My style url is liike http://34.XY.XX.XXXX:XXXX/styles/test-style/style.json
also I'm using clean network traffic for iOS and Android
android:usesCleartextTraffic="true"
for iOS
`
While using 0.20.0 it is giving these error [HTTP] Request was successful (code = 200). D/Mbgl-HttpRequest(12234): [HTTP] This request was cancelled (http://xxxxyyyyy:8080/data/openmaptiles/0/0/0.pbf). This is expected for tiles that were being prefetched but are no longer needed for the map to render.
same error for
/data/traffic.json
/data/chargers.json
/styles/test-style/sprite@2x.png
@josxha While using my style url
Hello @josxha thank for help, I have checked Pub.dev Documentation , It seems this is also outdated
Thanks, I wasn't aware that there is an outdated get-started documentation in the API docs. Althrough it already uses pub.dev. I opened a pull request for a full documentation site in https://github.com/maplibre/flutter-maplibre-gl/pull/461 but it isn't merged in yet.
[HTTP] Request was successful (code = 200). D/Mbgl-HttpRequest(12234): [HTTP] This request was cancelled (http://xxxxyyyyy:8080/data/openmaptiles/0/0/0.pbf). This is expected for tiles that were being prefetched but are no longer needed for the map to render.
Sorry but this is not an error message. Ensure that your style is valid and try to debug it with the flutter dev tools.
Platforms
all
Version of flutter maplibre_gl
0.20.0
Bug Description
I followed this documentation from MapTiler to integrate my custom vector style in map, when I used there example project with my style.json it was working, I commented and uncommented again to get package it is giving this error
Why am I using this?
Steps to Reproduce
Expected Results
Actual Results
Code Sample
` name: my_map description: "A new Flutter project."
publish_to: 'none' # Remove this line if you wish to publish to pub.dev
version: 1.0.0+1
environment: sdk: '>=3.2.3 <4.0.0'
dependencies: flutter: sdk: flutter
maplibre_gl: git: url: https://github.com/maplibre/flutter-maplibre-gl ref: main
cupertino_icons: ^1.0.2
dev_dependencies: flutter_test: sdk: flutter
flutter_lints: ^3.0.1
flutter:
uses-material-design: true
`