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

Fix #629 | Reload map if options changed for overrideTilesWhenUrlChanges #740

Merged
merged 1 commit into from Jan 29, 2021
Merged

Fix #629 | Reload map if options changed for overrideTilesWhenUrlChanges #740

merged 1 commit into from Jan 29, 2021

Commits on Sep 6, 2020

  1. Fix #629 | Reload map if additionalOptions changed for overrideTilesW…

    …henUrlChanges
    
    The option `overrideTilesWhenUrlChanges` currently only works if the URL
    template changes but not if the options change.
    
    For example:
    
    ```dart
    TileLayerOptions(
      urlTemplate: 'https://api.mapbox.com/styles/v1/mapbox/{id}/tiles/{z}/{x}/{y}',
      additionalOptions: <String, String>{
        'id': mapboxStyle,
      },
    ```
    
    If the value of `id` (here the Mapbox layer style, e.g. streets, satellite, etc.)
    changes the option `overrideTilesWhenUrlChanges` should override the tiles as well.
    Xennis committed Sep 6, 2020
    Configuration menu
    Copy the full SHA
    11593e8 View commit details
    Browse the repository at this point in the history