google maps marker label usually using this
var marker = new google.maps.Marker({
position: location,
label: labels[labelIndex++ % labels.length],
map: map
});
Can we add label maker similar like that ?
Thanks
Where does ‘labels[]’ come from?
that is sample from google maps api.. but never mind I have solve this issue
Thanks
How did you solve it (for future users)?
OK, I wasn't able to find it in the documentation, but in case someone needs it, this works:
<Marker label="BB"/>

Hey...
I am not using this component anymore...
I am found simple way to working with google maps..
componentDidMount() {
let pos = {
lat: this.state.Latitude,
lng: this.state.Longitude
};
let map = new window.google.maps.Map(document.getElementById('map'), {
center: pos,
zoom: 13,
mapTypeId: 'roadmap',
});
marker = new window.google.maps.Marker({
map: map,
position: pos,
draggable: true,
});
}
}
Most helpful comment
How did you solve it (for future users)?