Open strarsis opened 4 years ago
Hey @strarsis, I have updated the class so it extends from window.google
instead of google
. Could you check now?
@javidalpe: Awesome! Thanks for the modification. When I got some more time I will test it and give feedback.
@javidalpe: So after about a year I finally got back to that project. 😮 ⏲️
The issue is that the google maps loader will set google.maps
asynchronously.
I import this map-label-rotated
library and it will immediately try to use the global variable for google maps,
as it extends it directly in its defintion:
export class RotatedLabel extends window.google.maps.OverlayView {
I don't know if this can be easily changed. I guess I have to asynchronously import this library.
When using
map-label-rotated
with@googlemaps/js-api-loader
and building with webpack, I get an error during runtime when trying to create a rotated label: