S
S
Sergey2015-12-23 17:21:19
JavaScript
Sergey, 2015-12-23 17:21:19

How to make a div block appear on click on a map marker in jQuery?

it would be something like this..
e8b8452709ad4579904eac5de8e5540e.pnged3f26de0f9c4ee5a51f0a20e9de00d9.pngf8bbc6055407497988afb866a4b21ce3.png

Answer the question

In order to leave comments, you need to log in

2 answer(s)
C
Cube, 2015-12-23
@liveunit

It depends on what cards you use, here is Google:

google.maps.event.addListener(marker, 'click', function() {
                    //в этом участке методом .append() добавляете div
});

Or you can put visibility: hidden on the div, and then by clicking on the label, just change it to visibility: visible, if I understand your question correctly.

E
Edward, 2015-12-23
@ED98

If the library is Leaflet, then you need to catch this event : leafletjs.com/reference.html#marker-click
<div>

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question