dburles / meteor-google-maps

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

Map is black on Cordova and Meteor 1.4.2-beta9 on iOS10 #129

Closed adamgins closed 7 years ago

adamgins commented 7 years ago

HI,

trying to get maps working on iOS10 (via Xcode 8).

Pre iOS10 / Meteor 1.3 my code works fine. It seems like a browser policy issue, although I have the policy specified for this package.

I can view the map on mobile on iOS, it's just in Cordova that it does not show up. I can't see anything on the console (via XCode). Any ideas pls?

OK, my load command is not working on Cordova:

Meteor.startup(function() {

    GoogleMaps.load({ key: '<my key>', libraries: 'places'});
});

I thought Meteor.startup should only run once Cordova is ready... thoughts?

If I move it on the onRendered it works... just not sure why Meteor.startup is not working with Cordova/iOS 10, when it's always worked prior to this.

adamgins commented 7 years ago

if I view the markup on the

Via browser:

screen shot 2016-10-07 at 1 34 35 pm

Cordova

screen shot 2016-10-07 at 1 33 30 pm

guidouil commented 7 years ago

do you have the App.accessRule('*'); or at list open to google.com and gstatic.com in your mobile-config.js file ?

adamgins commented 7 years ago

Yes. Actually got a note back from @dburles that onRendered probably better place to run the load command. So will close this now as that worked.