Skip to content

Latest commit

 

History

History
33 lines (24 loc) · 999 Bytes

README.md

File metadata and controls

33 lines (24 loc) · 999 Bytes

Leaflet for Meteor

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

Current Leaflet Version: 0.7.3 (stable at 2015-03-21)

How to install

  1. meteor add beavanhunt:leaflet
  2. write the map code in Template.myTemplate.rendered
  3. set in your client code the default image path
  4. optional - set your free tile provider - Read Docs

step 4

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

step 5 - example

L.tileLayer.provider('Stamen.Watercolor').addTo(map)

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