FlowingCode / GoogleMapsAddon

Vaadin Addon based on Google Maps Web Component
https://www.flowingcode.com/en/open-source/
Apache License 2.0
19 stars 7 forks source link

Prevent Google Maps V3 loading Roboto font #91

Closed sanel closed 1 year ago

sanel commented 1 year ago

Hi,

I've noticed that, after map was shown, application font would be changed (this includes complete Vaadin view where map is shown). The cause looks like is due to Google Maps API loading Roboto font automatically as explained here [1].

For me, the fix was applying [2] js hack. Maybe there is a better way to handle this from addon or addong could call [2] automatically.

[1] https://stackoverflow.com/questions/25523806/google-maps-v3-prevent-api-from-loading-roboto-font [2] https://stackoverflow.com/a/74852333

sanel commented 1 year ago

The same problem can be visible in demo [1]:

  1. page is loaded with normal fonts
  2. after map is shown, all fonts are now bold (Roboto font)

[1] https://addonsv24.flowingcode.com/googlemaps/googlemaps

paodb commented 1 year ago

The problem seems reproducible only on Windows OS.

sanel commented 1 year ago

The same problem is on Linux (Slackware 15) with chrome-ungoogled 113 and latest firefox dev edition.

paodb commented 1 year ago

Fix included in new released version 1.8.3.

sanel commented 1 year ago

thanks!