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

Get lag when zoom in map #429

Closed
mtan11 opened this issue Sep 23, 2019 · 5 comments · Fixed by #572
Closed

Get lag when zoom in map #429

mtan11 opened this issue Sep 23, 2019 · 5 comments · Fixed by #572

Comments

@mtan11
Copy link

mtan11 commented Sep 23, 2019

I have 2 titlemap: 1. base map, 2. wms from my geoserver. I feel my app load too slow when zoom in map. How can i increase performances my app? Thanks you

@mtan11
Copy link
Author

mtan11 commented Oct 15, 2019

Is this problem fixed? I still get grey screen when zoom in. How can i fix this? Thanks you

@joelmoreiradev
Copy link

photo_2020-03-02_22-12-55

I'm having the same problem, every time I zoom the map it 'blinks' in gray, and when I move the map there are many gray squares that remain for 1 second, and it's not a network problem.

@ibrierley
Copy link
Collaborator

I've got a pull request based on this branch... https://github.com/ibrierley/flutter_map/tree/improve_tiles_display it would be interesting if you could test it, to see if it helps.

@mtan11
Copy link
Author

mtan11 commented Mar 5, 2020

I've got a pull request based on this branch... https://github.com/ibrierley/flutter_map/tree/improve_tiles_display it would be interesting if you could test it, to see if it helps.

Can you show me how to use your branch please? Many thanks.

@ibrierley
Copy link
Collaborator

ibrierley commented Mar 5, 2020

You could clone it from git and switch branches...it would be 'something like'...

git clone -b improve_tiles_display https://github.com/ibrierley/flutter_map.git

And then change your pubspec.yaml to point flutter_map to the new location....

flutter_map:
path: my_github_location

or it maybe better to get your pubspec.yaml to point to a specific git branch...comment out the old flutter_map part and put something like...

flutter_map:
    git:
         url: git://github.com/ibrierley/flutter_map.git
         ref: improve_tiles_display

Then swap back when finished testing.

Or, a bit hacky, but there are just 2 files changed. Find whereever the originals are copy/backup and replace with

https://github.com/ibrierley/flutter_map/blob/improve_tiles_display/lib/src/layer/tile_layer.dart
https://github.com/ibrierley/flutter_map/blob/improve_tiles_display/lib/src/map/map.dart

I don't recommend this way as it messes with the originals, but it can be a quick hack.

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

Successfully merging a pull request may close this issue.

3 participants