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

Is there an example of how to use JavaScript to send an address to display a map in a HTML webpage?

asked 27 Jun '21, 22:03

QJasper's gravatar image

QJasper
11112
accept rate: 0%


You can display a map in a html page using the LeafletJS library and show the address with a marker.

See https://leafletjs.com/examples/quick-start/ for an example about integrating the map and displaying a marker.

If you don't have the coordinates for an address, you would have to geocode those first. Nominatim will help you in forward geocoding (getting coordinates for addresses), see https://nominatim.org for more information on geocoding).

permanent link

answered 28 Jun '21, 09:38

Spiekerooger's gravatar image

Spiekerooger
3.1k22356
accept rate: 16%

edited 28 Jun '21, 09:40

Thanks for the information!!!

(28 Jun '21, 16:53) QJasper
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:

×535
×202
×60

question asked: 27 Jun '21, 22:03

question was seen: 3,087 times

last updated: 28 Jun '21, 16:53

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