Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Leaflet.js for Meteor.js

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
images
lib
styles
package.js
readme.md
smart.json
smart.lock

readme.md

Leaflet for Meteor

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

Current Version: 0.7.1

How to install

  1. npm install -g meteorite (if not already installed)
  2. edit the smart.json to reference the github repo
  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 2

  "packages": {
    "leaflet": {
      "git": "https://github.com/bevanhunt/meteor-leaflet.git",
      "branch": "master" 
    }
  }

step 4

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

step 5

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

Plugins

If you want to add Leaflet plugins to your project - include them in your client folder - I prefer using the client/lib folder.

GeoJSON

I suggest the free web service - Orge Web Service

Demo

Meteor Leafet Demo | GitHub | Demo

License

MIT/X11

Something went wrong with that request. Please try again.