react-google-maps-api
react-google-maps-api copied to clipboard
Integrate markerwithlabel to extend Marker styling options
Hi there,
So i've needed to display labels on my markers and the standard <Marker> components only allows for the standard label provided by google maps. It could be nice to integrate the functionality of markerwithlabel found here.
Theoretically, everything is the same as the Marker class except with additional label parameters and should almost just be a copy of the <Marker> component.
For now, I'll just use the project directly but I thought I'll post here to maybe see that added to the library.
@bluiska If you can provide PR, I will publish it ASAP.
@bluiska If you can provide PR, I will publish it ASAP.
Hey, at the moment I don't have time as I need to finish up the project the library is being used in but I will get back to it. I'll be able to look at this in a month time as that's when my deadline is. I reverted the changes in my own project as it turns out I didn't need it in the end but it's still a nice thing to have.
Personally, all I did was add the library and everywhere where Marker was being used in the <Marker> component, I replaced it with MarkerWithLabel. As the library is based on google.maps.Marker and just extends it with functionality, this worked straight away (though I did not run any tests)