-
Notifications
You must be signed in to change notification settings - Fork 135
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
[BUG] "name" field doesn't match expected name "maplibre_gl " name: maplibre_gl_workspace : using Custom Style layer #500
Comments
I have checked, Its working fine with 0.19.0+2 but not with latest |
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 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 for iOS also configured permission for iOS and Android |
While using 0.20.0 it is giving these error same error for |
|
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 #461 but it isn't merged in yet.
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
![Screenshot 2024-09-10 at 6 41 09 PM](https://private-user-images.githubusercontent.com/154219067/366053885-b36dd45f-fc71-4852-b177-25f6f678a1ec.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkyNDk3NjQsIm5iZiI6MTczOTI0OTQ2NCwicGF0aCI6Ii8xNTQyMTkwNjcvMzY2MDUzODg1LWIzNmRkNDVmLWZjNzEtNDg1Mi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ZjYxNzNlNWM2OTUwYjY5Y2I0NmFmNDhhOGQzOTA4MzAyOTkwMDdiJlgtQW16LVNpZ25lZEhlYWRlcnM9aG9zdCJ9.iv9rpc9qh70l96Vmh6duKij0t1qSRxgwNzMRK86A1ww)
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
`
The text was updated successfully, but these errors were encountered: