NOTICE: is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum

I need to render a full map, and I also need some kind of API to generate markers and roads easily.

The project

It'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 ! :)
So I'd like to use any API to make a map for this game.

What I need

In fact, I'd like to create a whole new map, completely out of our world map.
I have a full JPG map which I have to cut into tiles, then I need to navigate through all of the tiles with the ability to zoom and to change the tileset depending of the zoom value.
So, I need to import datas about towns, cities, frontiers and roads.
Then, I need a system that can calculates the way between 2 cities by searching the available roads between the points.
I know it can be hard because it's almost making another full Google Map but for another "world", and I'd really like to make it.

My questions

I 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.
Do I have to develop a whole "Geocoder" (cities, roads, itineraries...) server ? For sure it's gonna be less weight than Google, because this RPG's world is not bigger than France or England, and it's an RPG so there is not as much details as in our real world, but if it's really needed to make an API, let's do it then !

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.
The problem, actually, is that I just need to use my JPG map, use and generate datas about cities, roads and anything relating to maps, and further, an itinerary calculation system (which I think I'm gonna have to develop, as I cannot find any solution on the internet).

Sorry for the huge block text, thanks a lot to the ones answering me ! :)


asked 26 Jul '13, 07:34

Pierstoval's gravatar image

accept rate: 0%

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?

permanent link

answered 26 Jul '13, 08:46

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
accept rate: 23%

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 ♦

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here



Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text]( "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Question tags:


question asked: 26 Jul '13, 07:34

question was seen: 9,221 times

last updated: 26 Jul '13, 13:39

NOTICE: is no longer in use from 1st March 2024. Please use the OpenStreetMap Community Forum