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

[BUG] Example: Add layerMode: VectorTileLayerMode.vector #43

Closed
eliabieri opened this issue Aug 3, 2024 · 1 comment
Closed

[BUG] Example: Add layerMode: VectorTileLayerMode.vector #43

eliabieri opened this issue Aug 3, 2024 · 1 comment
Labels
bug Something isn't working vector_map_tiles_pmtiles

Comments

@eliabieri
Copy link

eliabieri commented Aug 3, 2024

Package

vector_map_tiles_pmtiles

Bug Description

In the example of vector_map_tiles_pmtiles there is no layerMode: VectorTileLayerMode.vector in the constructor of VectorTileLayer. Isn't this a bug?

Steps to Reproduce

  1. Go to example

Expected Results

VectorTileLayer(
        // the map theme
        theme: mapTheme,

        tileProviders: TileProviders({
          // the awaited vector tile provider
          'protomaps': tileProvider,
        }),
        layerMode: VectorTileLayerMode.vector,

        // disable the file cache when you change the PMTiles source
        // fileCacheTtl: Duration.zero,
      ),

Platforms

all

Upvote & Fund

  • We're using Polar.sh so you can upvote and help fund this issue.
  • We receive the funding once the issue is completed & confirmed by you.
  • Thank you in advance for helping prioritize & fund our backlog.
Fund with Polar
@eliabieri eliabieri added the bug Something isn't working label Aug 3, 2024
@eliabieri eliabieri changed the title [BUG] Example: Add layerMode: VectorTileLayerMode.vector, [BUG] Example: Add layerMode: VectorTileLayerMode.vector Aug 3, 2024
@josxha
Copy link
Owner

josxha commented Aug 3, 2024

Hi Elia, thanks for opening a bug report. Not sure why the property can't be found in your implementation but it should be still available.

https://github.com/greensopinion/flutter-vector-map-tiles/blob/f3fdbd21b8608dae7f431a54a2a8bdc4500e6c0d/lib/src/vector_tile_layer.dart#L107-L109

But you can remove it since it isn't required for the implementation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working vector_map_tiles_pmtiles
Projects
None yet
Development

No branches or pull requests

2 participants