-
-
Notifications
You must be signed in to change notification settings - Fork 861
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
Not all tiles are loading if i use Zoom Levels like 14.7 #605
Comments
This looks like a bug to me, do you have a lat/long and and size to reproduce the issue? |
Reminds me a bit of this bug
#525 but I think the latest
version superceded, but that code is still in there if someone else is
using it.
…On Mon, Apr 27, 2020 at 11:51 PM John Ryan ***@***.***> wrote:
This looks like a bug to me, do you have a lat/long and and size to
reproduce the issue?
—
You are receiving this because you are subscribed to this thread.
Reply to this email directly, view it on GitHub
<#605 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA5YN5LNOSFWGVBG4BGKRB3ROYD6VANCNFSM4MSKH6AA>
.
|
This happens anywhere, anytime (if you havent cached the map arround) but just with 14.7 zoom set (zoom, maxzoom and minzoom) i noticed it. Some decimals like 15.2 work fine, seems only the last bit until you reach the next Level? This example anyway is at LatLng(64.137125, -21.902071); (iceland) Might also be different depending on phone screen size/ratio? I am using Nexus 6 api 28 for the emulator. |
I have a pull request in that link above, it's only one tiny change in a
file you could temp try and then restore to original. It would be
interesting to see if you can try it and see if it helps at all.
Ian
…On Tue, Apr 28, 2020 at 8:30 AM eazy2x ***@***.***> wrote:
This happens anywhere, anytime (if you havent cached the map arround) but
just with 14.7 zoom set (zoom, maxzoom and minzoom) i noticed it. Some
decimals like 15.2 work fine, seems only the last bit until you reach the
next Level? This example anyway is at LatLng(64.137125, -21.902071);
(island)
Might also be different depending on phone screen size/ratio? I am using
Nexus 6 api 28 for the emulator.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#605 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA5YN5O6OHGWWZLMRL5LEYTRO2A2RANCNFSM4MSKH6AA>
.
|
sorry accidently closed |
i tested 0.8.2 now (changed yaml file/pub get) which should revert that (and other stuff) but same issue, using 14.7 zoom wont load tiles if they are at the edges of the screen. |
any way for you to have a minimal example that breaks it that people could try ? |
Basicly used the "on_tap" page in examples, using that and set all zoom levels to 14.7 should do the trick. And i removed AppBar, even hide status bar, not sure if that has an effect (but even sides left/rigth wont load if it's just a bit in the screen) |
Have you tried 0.9.0 ?
…On Tue, Apr 28, 2020 at 9:32 AM eazy2x ***@***.***> wrote:
Basicly used the "on_tap" page in examples, using that and set all zoom
levels to 14.7 should do the trick.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#605 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA5YN5I4MHQHIUKREIKBRNLRO2IABANCNFSM4MSKH6AA>
.
|
did some testings: it is worst at 14.5 getting better slowly until 15 is fine. Then 15.0 - 15.49 has no problem at all (same as 14.0 - 14.49 has no issue) so just the .5 to .99 range is causing the problem |
sure, before i used "any" so should have been, going back to 0.8.2 was my quick way to test the package before your pull (checked dates) as i have no clue how to change it manually. |
Works fine for me at that zoom level 14.7, but may be you need to be more
specific with the code changes (latlngs and if it's just the flutter_map
zoom to 14.7 or whatever) to replicate.
…On Tue, Apr 28, 2020 at 9:44 AM eazy2x ***@***.***> wrote:
Have you tried 0.9.0 ?
… <#m_-5830518606377145422_>
sure, before i used "any" so should have been, going back to 0.8.2 was my
quick way to test the package before your pull (checked dates) as i have no
clue how to change it manually.
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#605 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA5YN5KTE5SG2T6CAAUKK5LRO2JP7ANCNFSM4MSKH6AA>
.
|
oh and i think it depends on the latitude you are on, swapped to Singapore (near 0) and at 14.5 i have barely an issue (just a tiny bit), so issue seems to come with the stretch factor of the map, going nort/south the very problem i am working on right now (to show fixed size window with same meters) |
Really just use the on_tap just added my hexagon "markers" as i have to learn it by starting with something that works. My quick test start points: (and as said using mapbox.dark) // static LatLng startPoint = LatLng(71.167802, 25.782208); //Nordkap center: startPoint, and fixed zoom i just set by hand to test some samples, now i want to compute it, using the formulas in that stack link and break it down to mapzoom using log2 so at Singapore, barely an issue, but up north and biggest problem at .5 levels, no issue at .0-.49 |
from math aspect, i guess the error is no counting in the stretch of the map projection, to dig/dive into the code of package i am not able at this point, even struggle to understand basic stuff, but hope my observations may help you guys, probably not many testing uneven zoom levels up north lol |
As mentioned, I can't replicate the problem, but maybe someone else can
spot it.
But it would be useful to have a specific example people can add to check
to see if they get the same problem.
Ian
…On Tue, Apr 28, 2020 at 10:11 AM eazy2x ***@***.***> wrote:
from math aspect, i guess the error is no counting in the stretch of the
map projection, to dig/dive into the code of package i am not able at this
point, even struggle to understand basic stuff, but hope my observations my
help you guys, probably not many testing uneven zoom levels up north lol
—
You are receiving this because you commented.
Reply to this email directly, view it on GitHub
<#605 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/AA5YN5OKPO4ZZERZ6HNVFFDRO2MSNANCNFSM4MSKH6AA>
.
|
i will try to put an example together, tried OSM now as provider, tiles are smaller compared to mapbox, issue still there but not that obvious as the width of possible missing tiles area is cut by / 2 |
Now i am confused, trying to rebuild, all works fine, removed paddings, column/flex/deleted app bar, also hide status bar, all works in this sample app as usual. Last difference i can spot: i also did remove that "drawer: ..." as i only use 1 screen (but i dont really know what this is doing) could it be the issue? sorry for wasting your time :/ could send you my //spaghetti// code i am not to proud of |
Unreproducible, tested with this code: class OnTapPage extends StatelessWidget {
static const String route = 'on_tap';
@override
Widget build(BuildContext context) {
return Scaffold(
// appBar: AppBar(title: Text('OnTap')),
drawer: buildDrawer(context, OnTapPage.route),
body: FlutterMap(
options: MapOptions(
center: LatLng(51.5, -0.09),
zoom: 14.7,
maxZoom: 15.0,
minZoom: 3.0,
onTap: print,
),
layers: [
TileLayerOptions(
urlTemplate: 'https://{s}.tile.openstreetmap.org/{z}/{x}/{y}.png',
subdomains: ['a', 'b', 'c'],
),
],
),
);
}
} |
This issue is stale because it has been open 30 days with no activity. Remove stale label or comment or this will be closed in 5 days. |
This issue was closed because it has been stalled for 5 days with no activity. |
1st, forgive me if the problem is on my side, still new in programming/flutter.
I am trying to build a Map view, which whereever you are (Latitude - north/south) always displays the same distance (in meter) on the screen, with fixed zoom Level. Seeing that Zoom Level ist a double, i thought, cool no big deal, but now if i set it to 14.7 as an example this happens:
The tiles at the corners wont load until you move a bit closer to them in the map view, any way to trigger them loading a bit earlier or maybe fix that (if thats really an "issue")?
Oh and i use Mapbox, 'mapbox.dark', dont mind the Hexagons on top of the map they are markers.
The text was updated successfully, but these errors were encountered: