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

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

asked 27 Jan '23, 08:58

Sultanb's gravatar image

Sultanb
10445
accept rate: 0%

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

(27 Jan '23, 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 '23, 09:28

Frederik%20Ramm's gravatar image

Frederik Ramm ♦
82.5k927201273
accept rate: 23%

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

(27 Jan '23, 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

By RSS:

Answers

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:

×3

question asked: 27 Jan '23, 08:58

question was seen: 628 times

last updated: 27 Jan '23, 10:10

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