S
S
someserj2017-04-08 17:25:22
JavaScript
someserj, 2017-04-08 17:25:22

How to add a custom marker on Google Maps?

here is my code for adding a picture marker to the map

function addMarker(position, pathToPinImage, resultMap) {
        var marker = new google.maps.Marker({
            position: position,
            icon: pathToPinImage,
            map: resultMap
        });
    }

but how to add not only a picture, but also text, links, that is, as a div so that this marker is?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
N
Nobles, 2017-04-10
@Nobles

At one time, I myself was puzzled by this topic and wrote a detailed manual:
rightblog.ru/3013
Look, there is an answer to your question - how to make your own div with content.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question