Ok, I am trying to get an idea of where to start with this.

I have: 1. A fixed height and width for a display window 2. A list of many coordinates

My end-goal is to query OSM for a map (of the given height and width) which contains all of the coordinates. It will be a static map, so not interactive. I understand how to get a single map tile of 256x256, but I don't understand how to get a map of many tiles. I think the way OSM used to work (it's been several years) is that I provided it a center coordinate, a height and width, and a zoom level, and it would give me a map of all the tiles which would fill in the given area. The URL has changed since then, and it no longer seems that I can send it a height and width in the url, so I'm a bit lost. Can anyone point me in the correct direction?

asked 21 Jan '14, 21:10

aussiemcgr's gravatar image

accept rate: 0%

I'm sorry, but what are you talking about and what is your question exactly?

(21 Jan '14, 21:18) iii

I have a program, and I am querying OSM for a static map with the URL. For example, this link describes how to get a single tile: http://wiki.openstreetmap.org/wiki/Slippy_map_tilenames The problem is that a single 256x256 tile will not fit my needs. There used to be a way to query a whole map (consisting of several tiles), but I can't seem to figure out how to do that anymore. The old URL has been deprecated.

(22 Jan '14, 00:24) aussiemcgr

OpenStreetMap isn't actually a mapping service, so you don't need to "query OSM for a map". At its heart it's just a big lump of data that you can download, or download extracts from, and use yourself to either create tiles from (if you want map tiles) or extract points of interest, or whatever else you want to do.

If you want to create "a map of many tiles" these instructions provide one way to do it based on data that you've downloaded previously (although that's just one way of displaying data on a map, and each of the components involved even in doing that has alternatives).

Just as you're free to use OSM data to provide a map other people are too, and there may well be someone that operates an API that works in the way that you describe (at a stretch, it's close to how tile rendering libraries such as Leaflet work - and again, other display libraries are available). If you want to extract data rather than render tiles, services such as Overpass might be useful.

However, as @iii says, it's not immediately clear what you're describing - maybe if you can provide the URL that you used to use, people would know more about what you're trying to do?

permanent link

answered 22 Jan '14, 00:35

SomeoneElse's gravatar image

SomeoneElse ♦
accept rate: 15%

I have a java applet, and the user has a list of coordinates. My goal is to just render a map which contains all the user's coordinates. The map I render doesn't need to do anything special because I intend to paint interactive items over top of the map image in java (points, lines, the ability for the user to draw lines, ect.). So all I need is the static map image, but it will differ for each user, which is why I can't just save some single map image for all the users to use.

(22 Jan '14, 04:24) aussiemcgr

The old url I used to use looked like this: http://pafciu17.dev.openstreetmap.org/?module=map&lon="+currLong+"&lat="+currLat+"&zoom="+currZoom+"&width="+currWidth+"&height="+currHeight+"&type=mapnik&imgType=gif

The variables concatenated into the url was determined at runtime. This worked several years ago (like 3 years ago, I think), but I believe pafciu17 has been shut down since then.

(22 Jan '14, 04:24) aussiemcgr
Your answer
toggle preview

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](http://url.com/ "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: 21 Jan '14, 21:10

question was seen: 2,803 times

last updated: 22 Jan '14, 04:24

powered by OSQA