Hi, I am trying to develop an offline application using OSM. I downloaded some OSM data and imported to my local server. First i downloaded Amsterdam map and imported to my server it works fine. I need the same thing for other few areas too. When i import other areas the map doesn't display in certain zoom level. But my previous amsterdam maps is displayed without any problem. What is the solution for this problem. image link: http://imageshack.us/a/img706/7272/screenshotfrom201301021.png asked 04 Jan '13, 04:42 asfer mohamed |
I managed to solve my problem. Problem was with my data. I imported full country map and it solved my problem answered 24 Jan '13, 06:23 asfer mohamed |
First of all, if you are starting to need more data than a small box you will need to find another way to download data. The "export" option on osm.org has some limitations on it because it uses the API that is intended for mappers to use in editing the map, not for bulk downloads of map data. If you need more data, please take a look at this page on the wiki: As for your tile problem, it is probably because renderd is caching the tiles. When your browser requests a map tile from the web server, the request is handled by mod_tile which first checks to see if there is a cached version of the tile. If so, it serves it up from the cache. Otherwise it calls renderd/mapnik to render the tile and then puts it in the tile cache so it can be served more quickly next time. To flush the cache you can try this command:
You might need to restart renderd as well. Alternatively, you can just delete the tile cache on disk. I think it keeps them in /var/lib/mod_tile by default. And even after all that, remember that your browser caches images as well and may take some coaxing to force a reload. answered 04 Jan '13, 21:02 ToeBee |
Hi Asfer! Maybe it would help to better describe your problem if you would mention which server software you use. Do I understand it right that you have downloaded and imported data and rendered your own tiles?
Hi , Yes .. I downloaded map from osm export option and imported to my local server. I am using mapnik for render my maps. Do you have any solution for my problem?