meteor-google-maps icon indicating copy to clipboard operation
meteor-google-maps copied to clipboard

Maps not loading in mobile (ios)

Open idesignpixels opened this issue 8 years ago • 5 comments

In dev browser they load fine but in ios sim/device they do not, I have set my mobile-config.js in the root of my project to have:

App.accessRule('*.google.com/*');
App.accessRule('*.googleapis.com/*');
App.accessRule('*.gstatic.com/*');

I have also tried re-installing the plugin with no luck. I don't get any errors but GoogleMaps.loaded() never evaluates to true.

idesignpixels avatar Oct 21 '16 15:10 idesignpixels

I think this is an issue with loading the library within Meteor.startup. Is that how you're loading the library? If so, try place GoogleMaps.load within a template onRendered instead.

dburles avatar Oct 21 '16 21:10 dburles

Thanks for responding so quickly, I am instantiating it this way so I will try this when I get back on Monday and let you know.

idesignpixels avatar Oct 22 '16 10:10 idesignpixels

That's solved it thanks!

idesignpixels avatar Oct 24 '16 09:10 idesignpixels

Great! I might leave this open incase others run into the same problem. Seems a bit strange, I'd definitely like to find the underlying cause.

dburles avatar Oct 24 '16 09:10 dburles

When I am creating a mobile build using run command it is working fine.But When I am creating a android non debuggable build map is not loading. I have this in mobile.config App.accessRule('.google.com/'); App.accessRule('.googleapis.com/'); App.accessRule('.gstatic.com/'); I don't get any errors but GoogleMaps.loaded() never evaluates to true. I had loaded the map in template only.

ankitappuria avatar Dec 02 '16 08:12 ankitappuria