Answer the question
In order to leave comments, you need to log in
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',
}
Answer the question
In order to leave comments, you need to log in
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question