dburles / meteor-google-maps

🗺 Meteor package for the Google Maps Javascript API v3
https://atmospherejs.com/dburles/google-maps
MIT License
196 stars 49 forks source link

Every time GoogleMaps.load() run <head> get additional copy of <style> for google maps #149

Closed ghost closed 7 years ago

ghost commented 7 years ago

Grretings. In my project I happen to use Google search box in forms. Form itself called when I click on table row, and I noticed that <head> tag get updated every click. Putting break on subtree modification showed code related to google maps which load additional <styles> tag in <head>. Maybe need to add check if styles loaded to not load it many times? Thanks.

dburles commented 7 years ago

Hey @Cherviakov do you have a simple reproduction I can look at? I don't think it would be caused by GoogleMaps.load as it should only run once

ghost commented 7 years ago

Tried to write simple test, cannot reproduce the way I explained before. Will look further into my project code.

ghost commented 6 years ago

It appeared to be error with google maps itself, but they refuse to take look into it saying we use 3d party packages. Not looked further in it myself, so let it be for now like this.