D
D
Denis2016-05-18 14:34:21
JavaScript
Denis, 2016-05-18 14:34:21

How to display the address next to the marker in google maps?

Hello.
It is necessary to do as on the screencast.com/t/HBAqOQipw4
The marker is placed at the given address, but how to display the address in this form (as by default in the browser)?
I looked at the API doc, I didn't find it right away.

Answer the question

In order to leave comments, you need to log in

2 answer(s)
N
Nikolai Shabalin, 2016-05-18
@nikolayshabalin

I came up with two options.
1) Make the text a picture and display it as a marker, next to a real marker.
Doka
Example
2) again, we have two markers, the first is a regular Google marker, and next to it is the second one, but with an open tooltip, to which you passed the title of the
Doka
. And you style the tooltip as you need, without a background and with styles for the text.

K
Konstantin Davydov, 2016-05-18
@space_pancake

As far as I know, it is possible only through the title, when hovering over the marker.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question