Skip to content

jwjames/easy-map

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

35 Commits
 
 
 
 
 
 
 
 

Repository files navigation

Easy-maps

Version 0.0.7 Announcement: Now accepts an array of addresses!

An extremely simple one-line Google Maps package. Can be used with Lat Lng, an address, or an array of addresses.

Add with:

meteor add jeffrey:easy-map

Notes:
  • This package has a default width:800px and height:500px.

Directions:

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.

Example:

Html:

LatLng:
{{> map lat="40.7133" lng="-73.9533"}}
Address:
{{> map address="1600 Pennsylvania Ave NW, Washington, DC 20500"}}

Array of addresses:

Html:
<template name = "outerTemplate">
{{> map addresses=addresses}}
</template>
Javascript:
Template.yourTemplateName.helpers({
  'addresses':
    [
    "1600 Pennsylvania Ave NW, Washington, DC 20500",
    "Ft. Lauderdale, FL",
    "1526 H St, Sacramento, CA 95814"
    ]
});

About

An extremely simple one-line Google Maps package.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages