This is a static archive of our old OSM Help Site. Please post any new questions and answers at community.openstreetmap.org.

How to render a map using of TopoMap data

0

I have downloaded tiles data using of TopoMap tool now i am not able to render the map using of that data in javascript .. can anyone help me to render map I need to show map to client in offline..

asked 03 Jul '15, 10:06

Mayee's gravatar image

Mayee
11445
accept rate: 0%

Plz. tell us what topomap tool?

(03 Jul '15, 22:31) iii

I have downloaded TopoMapCreator_Setup1.7.0.16 executable file from https://sourceforge.net/projects/topomapcreator/ URL.This file is used to download tiles from map. It is good tool to download tiles but my problem is i am not able to render map with using of this data.

I think this is not OSM tool.

I want to save some tiles data in cache and with using of that data i need to render map .. If any alternatives are there in OSM offline map please let me know .. My target is to generate map in offline.

(04 Jul '15, 05:43) Mayee

One Answer:

3

I do not know what the "TopoMap tool" is and where you have downloaded your tiles. If you have downloaded tiles into a directory and these tiles conform to the standard z/x/y.png structure, then you can simply set up a local web page with OpenLayers or Leaflet, and instead of a tile server, you specify a "file: URL" as the location (or indeed any relative URL if the local web page has already been called through a file URL).

http://wiki.openstreetmap.org/wiki/OpenLayers_Local_Tiles_Example may have an example you can work from.

Note that downloading large amounts of tiles from OSM for offline use is not allowed.

answered 03 Jul '15, 10:20

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
82.5k927201273
accept rate: 23%