greensopinion / dart-vector-tile-renderer

A vector tile renderer for use in creating map tile images or writing to a canvas. Written in Dart to enable use of vector tiles with Flutter.
BSD 3-Clause "New" or "Revised" License
42 stars 24 forks source link

No labels showing #101

Open alejandrogiubel opened 1 month ago

alejandrogiubel commented 1 month ago

Bug Description Map labels are not showing

Steps to Reproduce Just use

final _futureTileProvider = PmTilesVectorTileProvider.fromSource(
  'https://demo-bucket.protomaps.com/v4.pmtiles',
);

VectorTileLayer(
  theme: ProtomapsThemes.lightV4(),
  tileProviders: TileProviders({
    'protomaps': snapshot.data!,
  }),
  fileCacheTtl: Duration.zero,
),

Expected Results A map with labels image

Actual Results image

Code Sample

final _futureTileProvider = PmTilesVectorTileProvider.fromSource(
  'https://demo-bucket.protomaps.com/v4.pmtiles',
);

VectorTileLayer(
  theme: ProtomapsThemes.lightV4(),
  tileProviders: TileProviders({
    'protomaps': snapshot.data!,
  }),
  fileCacheTtl: Duration.zero,
),

https://github.com/josxha/flutter_map_plugins/issues/48

alejandrogiubel commented 3 weeks ago

Hi @greensopinion any clue about this?

greensopinion commented 3 weeks ago

a couple of ideas:

  1. have a look at your theme, and compare it to a theme that is working (what's different)
  2. consider running in the debugger and set a breakpoint in some expressions https://github.com/greensopinion/dart-vector-tile-renderer/tree/main/lib/src/themes

some working examples: https://github.com/greensopinion/flutter-vector-map-tiles-examples