A
A
Andrew Chil2016-11-01 11:19:01
JavaScript
Andrew Chil, 2016-11-01 11:19:01

Google maps marker how to insert text?

Good afternoon ! Can you please tell me how to display the address in Google maps? Or how to insert the address near the marker yourself. Now I'm inserting the text, but I can't position it, I can only edit the color and font.
piece of code

marker = new google.maps.Marker({
                        position: new google.maps.LatLng(parseFloat($lat), parseFloat($lan)),
                        map: map,
                        title: $address,
                        labelClass: "labels", 
                        icon: $custom_marker,
                        label: {
                            position: 'relative',
                            bottom: '-100px',
                            right: '90px',
                            color: '#830100',
                            class: 'labels-weeeee',
                            text: '56 Winchester Avenue',
                            fontWeight: 'bold',
                            fontSize: '15px',
                        }

41339ee1cc26465da1ae34c4ee918387.jpg
I would be very grateful for your help)

Answer the question

In order to leave comments, you need to log in

1 answer(s)
I
Ivan Korsakov, 2016-11-01
@shevchenkonik

Link

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question