An extremely simple one-line Google Maps package. Can be used with Lat Lng, an address, or an array of addresses.
meteor add jeffrey:easy-map
Notes:
- This package has a default
width:800px
andheight:500px
.
Add
{{> map lat:"[latitude]" lng:"[longitude]"}}
OR {{> map address: [address]}}
in your HTML file. You will see a map appear centered on a pin at that location.
{{> map lat="40.7133" lng="-73.9533"}}
{{> map address="1600 Pennsylvania Ave NW, Washington, DC 20500"}}
<template name = "outerTemplate">
{{> map addresses=addresses}}
</template>
Template.yourTemplateName.helpers({
'addresses':
[
"1600 Pennsylvania Ave NW, Washington, DC 20500",
"Ft. Lauderdale, FL",
"1526 H St, Sacramento, CA 95814"
]
});