-
Notifications
You must be signed in to change notification settings - Fork 82
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
Downloading offline tiles #89
Comments
Same issue. The database seems to be downloading files from the satellite alright,; but the loader(def request_image) in tkintermapview/map_widget.py does not seem to load map tile, it returns an empty tile to the map. If someone has some time pleassseee help resolve this bug. |
Okay I resolved it. The database(.db) uses SQLite, and the satellite imagery tiles downloaded from google are saved the same way as the osm ones due to the parsing method of the But the server column/table attribute contains a string like: An easy fix is to edit the downloaded google satellite imagery database's server attribute and replace the previous string with the default osm one: |
tanmayyb |
It took me time to understand problem. I haven't solve the problem in python script. However, quick fix for downloaded maps is possible.
Now you should run and test with A better solution would be editing the |
Yes exactly @Burak111 . Sorry I don't know how I missed @Painkiller675's comment. |
hi i am new to sql database editing. i followed the steps using DB Browser for SQL lite however i could not resolve the issue. when i use the exact code made by TomSchimansky to load offline maps and to display the map in a map_widget, im getting a blank map. When im running load_offline_tiles.py , it shows that the tiles have been successfuly downloaded. a picture is attached (I have changed the lat long selection values) however later when i try the map_with_offline_tiles.py i get a blank box with just white colour no matter which tile server i select . I tried to carry out the instructions by @tanmayyb and @Burak111 but could not succeed. How to remove the foreign key ? im new to sql , it would be very helpful if any of you can help me to use sattellite image tiles |
Hi all, could this issue be related to #68? There is a typo in offline_loading.py. My PR was not merged. |
@atulsdharan have you edit line 18 in load_tiles.py. You should edit it to download satellite database. Zoom levels can be configured too. |
First of all, I want to express great gratitude to TomSchimansky, who made this code. Thanks to you, I am inspired to work.
The main problem is how to change tile server for downloading. I changed in offline_loading.py tile_server from https://a.tile.openstreetmap.org/{z}/{x}/{y}.png to https://mt0.google.com/vt/lyrs=m&hl=en&x={x}&y={y}&z={z}&s=Ga. After run the code I get message that work is done. But when I want to use offline_tile to display in tkinter, it
s empty. But If I use default code, it
s work fine. Can someone help me with this problem.P/s Sorry for my English and coding level. I am a new to this field. Thanks for your time
The text was updated successfully, but these errors were encountered: