M
M
Maxim2017-09-04 23:49:23
css
Maxim, 2017-09-04 23:49:23

Your Google Maps html marker?

How can I make my own html marker Google Maps?
So that it is not a picture .. For example:

<div class="my-placemark">
   <span>1 </span>
  </div>

Answer the question

In order to leave comments, you need to log in

3 answer(s)
O
Oleg, 2019-05-16
@Arhangel_one

Z
zoozag, 2017-09-05
@maxnrg33

There are ready-made libraries, google on request Rich marker
Example of use

P
PandaTheSlayer, 2017-09-04
@PandaTheSlayer

var desr = "<div class="my-placemark">
   <span>1 </span>
  </div>";
  google.maps.event.addListener(%markername%, 'click', function () {
        infoWindow.setContent(descr);
        infoWindow.open(map, this);
    });

If you need to style the marker, then here is the documentation:
https://developers.google.com/maps/documentation/j...

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question