autopublish
package. What if I wanted to remove autopublish
and insecure
... would I have to use methods and subscriptions to write and read from MongoDB?
userId
, a range of dates, and other criteria. Is it possible to do all this within one template?
Hey @StephenMayeux
yes, you'll need to write some publications and subscribe to them and methods to write to the db (the guide can help you with that https://guide.meteor.com/)
Sure that's possible, just query (and publish) for the userId that you wish to view
if (Meteor.isClient) {
Meteor.startup(function() {
GoogleMaps.load({
key: 'A*************************g'
});
});
}
or look at this fiddle https://jsfiddle.net/9dgL1t8t/
App.accessRule('*');
App.accessRule('https://*.googleapis.com/*');
App.accessRule('https://*.google.com/*');
App.accessRule('https://*.gstatic.com/*');
App.setPreference('android-targetSdkVersion', '23');
App.setPreference("WebAppStartupTimeout", 60000);
adding startup time will allow maps to load completely.
GoogleMaps.ready 'myMap', (map) ->
markers = []
markerCluster = new MarkerClusterer(map.instance, markers, clusterOptions)
OK, I think I know what's happening my `Meteor.startup(function() {
GoogleMaps.load({ key: '<my key>', libraries: 'places'});
});` is not running. If I run it manually through Safari console, the map shows up.
I thought Meteor.startup should only run once Cordova is ready... thoughts?