I need to render a full map, and I also need some kind of API to generate markers and roads easily. The projectIt's for a specific RPG. This is a game with its own world map, its own cities, frontiers and roads. So a full map, which I can create easily any data to import in any database, xml, json, kml... ANYTHING ! :) What I needIn fact, I'd like to create a whole new map, completely out of our world map. My questionsI don't want to use GoogleMaps (just because they change their API too often, and it's not open-source), so I try to find infos about OpenStreetMap for example. It would be such a real pleasure for you all to help me, or at least to guide me for all the "how-to's", cuz if this project comes to birth, it would be such an amazing unique work in any RPG game ! I heard about Maperitive, Mapnik or Leaflet, but they all seem to work with OSM datas, which I don't know yet how it works. Moreover, they do not seem to be able to generate map with a jpeg tileset (whereas google does, but I don't want to use Google, I need an open-source software), they render maps from some kind of xml datas. I can use them, but then I'll have to use the tileset in other ways (background or something like that). It's feasible, but it's not the problem. Sorry for the huge block text, thanks a lot to the ones answering me ! :) Greetings asked 26 Jul '13, 07:34 Pierstoval |
In theory you could use the OpenStreetMap toolchain to set up an imaginary map but it's going to be a long road for you. You will first have to understand the basic concepts of OSM, and how "map data" differs from "a JPG map". You will then have to set up your own OSM backend server, your own rendering server, and your own routing server, maybe geocoding as well. It is all possible, it is all open source, but it's a lot of work and of course our tools are geared towards the real world so it is possible you will have to adapt them occasionally. Here's a similar question with answers: How to create fantasy/imaginary maps with OpenStreetMap? answered 26 Jul '13, 08:46 Frederik Ramm ♦ Thanks for the answer ! So I have to find guides for how to render maps with Mapnik, install Rails Port or use osm2pgsql (I already have a pgsql server), but this is to generate the map from jpg and datas. What about the rest, like the zoom and navigation ? What are the tools to use for this ? This is my main problem : I don't stop searching but I cannot find any good guid of what to use and what to do specifically...
(26 Jul '13, 09:01)
Pierstoval
For navigation, provided that you have a working OSM-format data set, use gosmore, osrm, or the new graphhopper. For zooming and panning the map in a web browser, once you have a tile server that produces PNG/JPG tiles, use OpenLayers or Leaflet.
(26 Jul '13, 13:39)
Frederik Ramm ♦
|