Generating Map Tiles with custom poligons as image

HI,

I am developing a small application that must generate some Images with Polygon shapes. Unfortunally the details are not so good as expected. Here is an example of the result. We tried to maximize the zoom level and so on. The provider acutally was azure maps and the result look like this:

So in our opinion OSM will be a better descission, because it contains more information on the same zoom level and so (Maybe).

I develop the application in .Net and I’m very new in OSM. SO the first question is:

Is it possible to get a map tile (like the example above) with a custom shape (polygon data are as geo data available) and export it as an image so that we can use it into a pdf extract?

The next question is

Who we can do it? Is there any kind of howto for dummies? :slight_smile:

So what I figured out

  1. we must download a pbf file for Germany (this is enoug for us).
  2. After that we must fokus on to a spezific point try to calculcate the bounding box.
  3. Drawing the Polyon (with a shape file?)
  4. Merge all togethert (how?)
  5. Export a image (how?)

Sorry for the newbie question, but I get a little bit stuck in this…

It doesn’t help with your technical problems, but I wanted to mention there is also a legal component to it: if you are publicly using OSM data, you must make the recipients aware that the data is from OSM and can be used under the ODbL.

You can find more information and links here https://osm.org/copyright

Did you check the export function on openstreetmap.org? You can export the current view as pdf for example.

Or have a look on umap where you can create custom overlays on osm.

Maybe you can find a solution in the OSM wiki when you type the following key phrases in the search box there:

“OSM on paper” … or “SVG” … Tell us if you had success in any framework listed there.