offline map integration difficulties #1653
Replies: 6 comments 7 replies
-
Hey @scorpiomac, |
Beta Was this translation helpful? Give feedback.
-
That looks a bit weird, as though it's trying to use a part of the map that it shouldn't have access to (and doesn't exist). I'm not really clear why that would be, as the code looks kinda ok (assuming you have moved the assets folder from assets/map/anholt_osmbright maybe to assets/map/tiles but I think thats a redherring, the tile x,y coordinates look incorrect, but I may be wrong). What type of device and setup are you using ? (not sure why this should matter, it just feels something is odd). |
Beta Was this translation helpful? Give feedback.
-
Does it do this on a web version ? Just wondering if it's possible it's some retina mode thing which loads in more tiles which aren't available ? What happens if you play with retinaMode in the tile layer ? (again, I don't think it is, but just exploring some thoughts) |
Beta Was this translation helpful? Give feedback.
-
If you know of another way to integrate an offline map into flutter with a code that works, I'm also interested. |
Beta Was this translation helpful? Give feedback.
-
You'd just set retinaMode=true/false I think in the tile layer options. I don't think this is the issue, as I think you'd have to change the tileUrl, but kinda clutching at straws. I'm just a bit confused why its trying to load 12/2046/1361.png as an example, when mine doesn't. |
Beta Was this translation helpful? Give feedback.
-
In that case, start with a fresh checkout again, change one thing at a time (then change it back) until its isolated. It's not clear what the map is that you downloaded or what that is, so it could be worth posting more about that if that is indeed the problem. |
Beta Was this translation helpful? Give feedback.
-
For 03 weeks I've been stuck loading the card.
I've tried Mbtile files without success, PNG images too, please can someone help me. It's very urgent
Beta Was this translation helpful? Give feedback.
All reactions