meteor-maps
An easy to use map package for using Google Maps with Blaze.
Install
$ meteor add dispatch:maps
For use with cordova, edit your mobile-config.js
:
1App.configurePlugin('plugin.google.maps', { 2 API_KEY_FOR_ANDROID: 'xxx', 3 API_KEY_FOR_IOS: 'xxx' 4});
Usage
1 Meteor.startup(function () { 2 GoogleMaps.load({ 3 v: '3.20', 4 client: Meteor.settings.public.GOOGLE_MAPS_CLIENT_ID, 5 libraries: 'geometry,places', 6 language: 'en' 7 }); 8 }); 9 10 GoogleMaps.onReady(function(google) { 11 // Got google.maps 12 });