Skip to content
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

Transit icons only visible in the Maputnik editor #159

Open
galgyozo opened this issue Jun 7, 2023 · 3 comments
Open

Transit icons only visible in the Maputnik editor #159

galgyozo opened this issue Jun 7, 2023 · 3 comments

Comments

@galgyozo
Copy link

galgyozo commented Jun 7, 2023

Hey,
I downloaded the osm-bright style json and also uploaded it to the Maputnik editor and I found a strange thing. While there are icons in the editor, in the app I only see the names of the POIs.

App Editor
Simulator Screenshot - iPhone 14 Pro - 2023-06-07 at 16 20 35 Screenshot 2023-06-07 at 16 14 53

Do you know what could be the reason behind this?

@greensopinion
Copy link
Owner

I don't know what the issue is, but icons are a new feature released in version 4 of this library. It's possible that there is a defect.

I recommend:

  1. make sure you are using the latest version
  2. try different zoom levels
  3. check that the icon atlas is loaded correctly in the app
  4. debug icon rendering

relevant code:

https://github.com/greensopinion/dart-vector-tile-renderer/blob/main/lib/src/features/icon_renderer.dart
https://github.com/greensopinion/flutter-vector-map-tiles/blob/main/lib/src/style/style.dart#L77

@galgyozo
Copy link
Author

Thank you for your response!

I wasn't using the latest version so I had to update first, but it's still not working. Different zoom levels didn't help either.

I did debug the style and found out that the content of the sprite is null even though the sprite json and image content is loaded in the style.dart.
Screenshot 2023-06-13 at 9 24 05

I also tried to debug the icon renderer but somehow it wasn't called once. Could that be the issue? If yes, do you know what could be the cause?

@greensopinion
Copy link
Owner

greensopinion commented Jun 13, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants