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

Hi,

I would like to add some hover Text for location pins. For Example, if you hover one location pin (I have 3) the address will be shown. For this purpose, I need a div box with some class. Everything else can CSS do.

asked 11 Aug '22, 07:36

Iuliia's gravatar image

Iuliia
11112
accept rate: 0%

1

You'll need to explain a bit more which framework or website you are using.

(11 Aug '22, 09:20) SimonPoole ♦

Here is an example, except here is only one location: https://www.coltundpartner.de/de/kontakt/so_finden_sie_uns/ No framework, only vanilla JS.

(11 Aug '22, 09:25) Iuliia
2

That's using OpenLayers as the mapping library. Which library are you using to display your maps?

In any case, this is probably not related to OpenStreetMap if you are just using OpenStreetMap as a background image layer. For technical questions regarding JavaScript mapping libraries and how to use them, please see https://gis.stackexchange.com/

(11 Aug '22, 11:08) Andy Allan

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:

×202
×16
×3
×1

question asked: 11 Aug '22, 07:36

question was seen: 1,058 times

last updated: 11 Aug '22, 11:08

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