Skip to content
This repository

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP

Leaflet.js Meteorite Package

branch: master

This branch is 0 commits ahead and 0 commits behind master

Fetching latest commit…

Cannot retrieve the latest commit at this time

readme.md

Leaflet for Meteor

Leaflet.js, a Javascript library for mobile-friendly interactive maps.

How to install

  1. npm install -g meteorite (if not already installed)
  2. mrt add leaflet
  3. write the map code in Template.myTemplate.rendered
  4. set in your client code the default image path
  5. enclose the map div in your template with the constant tag

step 4

L.Icon.Default.imagePath = 'packages/leaflet/images'

step 5

{{#constant}}<div id="map">{{/constant}} 

Demo

http://leaflet.meteor.com

Something went wrong with that request. Please try again.