Why not ask your question on the new OpenStreetMap Community Forum?

How to calculate the coordinates of the 4 corners (edge) of the map with OpenStreetMap?

asked 27 Jan, 08:58

Sultanb's gravatar image

accept rate: 0%

i need the 4 corner coordinates of the map to use as raster

(27 Jan, 09:00) Sultanb

Set up your own Leaflet map (it's just a few lines of Javascript, see https://leafletjs.com/examples/quick-start/) then use getBounds to retrieve the currently visible map extent: https://stackoverflow.com/questions/22948096/get-the-bounding-box-of-the-visible-leaflet-map

permanent link

answered 27 Jan, 09:28

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
accept rate: 23%

Can it be done for desktop application and with c#?

(27 Jan, 10:10) Sultanb
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: 27 Jan, 08:58

question was seen: 459 times

last updated: 27 Jan, 10:10

powered by OSQA