Closed Nickztar closed 1 year ago
Should probably be added for other methods that do the same thing. Like MarkerList. https://github.com/rungwiroon/BlazorGoogleMaps/blob/master/GoogleMapsComponents/Maps/Extension/MarkerList.cs#L35
It looks like MarkerWithLabels is not part of google maps. It is additional package.
Also why you just dont want to extend : ListableEntityBase
https://github.com/googlemaps/js-markerwithlabel
In the same way that MarkerCluster is a part of googlemaps.
So then it is better to create seperate class.
Yes you are probably correct on that. Will try to change this PR later today or this weekend.
Thank you very much for understanding.
Today we have to use reflection to be able to construct a MarkerWithLabel. Here is a example of what we do:
This adds a new method on marker allowing the user specify what js constructor to use. If it's off intrest I could add a example for it later.
Note: I'm not completely sure that calling it jsConstructor is the best but I feel like it fits for what it does in my case atleast.