This is a static archive of our old OpenStreetMap Help Site. Please post any new questions and answers at community.osm.org.

Use Map in Website with only specific points

0

Hi everybody

I would like to use a map on my webpage but only with the specific points of interest which I integrated. An example: http://www.imkerhonig.org/ How can I do that? The link to integrate the map on my webpage is under export -> "teilen" but how can I show only the points I would like to present?

Thanks in advance MWI

asked 25 Apr '16, 10:35

Imkerhuus's gravatar image

Imkerhuus
11334
accept rate: 0%

Could you clarify your question a little?

  • Would you like to display a static map (i.e. a picture) on your website, or a dynamic map (which can be zoomed, scrolled, etc)?
  • Would you just like to highlight one or two locations on the map (e.g. the location of your beekeeping operation), or control what the map shows in more detail (e.g. which roads are displayed and how)?

Falls es für dich einfacher wäre kannst du deine Frage auch auf Deutsch stellen.

(25 Apr '16, 10:50) Lightsider

Ein bischen einfacher ist es auf deutsch :-).

  1. Es soll eine dynamische Seite sein. Ansicht ganze CH und dann kann der User seinen eigenen Wohnort eingeben und die Karte zoomt. Sobald der User einen dieser Points anklickt, erhält er Informationen über diesen Standort (Name, Adresse, was er anbietet (Honig), etc.)
  2. Interessant sind lediglich die Points und natürlich wo sich diese auf der Karte befinden. Ansonsten normales Strassennetz, wobei ich da keine 100%ige Genauigkeit erwarte. Die Angaben zu dem Point müssen genügen für den User, den Weg dorthin muss es dann selbst finden.

Herzlichen Dank für Deine Unterstützung! MWI

(26 Apr '16, 07:56) Imkerhuus
4

Maybe you are looking for something like the often mentioned uMap framework?

see https://wiki.openstreetmap.org/wiki/UMap

(26 Apr '16, 16:53) stephan75
2

Here is a tutorial on combining uMap and Overpass to make "An always up-to-date" map.

(27 Apr '16, 16:49) escada
1

Perfect, this helped a lot. I have now my solution.

Thanks, MWI

(03 May '16, 16:55) Imkerhuus

Source code available on GitHub .