Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Fetching contributors…

Cannot retrieve contributors at this time

36 lines (26 sloc) 1.056 kb

Leaflet for Meteor

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

Packaged Files:

  • Leaflet: 0.7.3 (stable at 2015-03-21)
  • Leaflet Providers: 1.0.23 (stable at 2015-03-22)

Demo

Meteor Leafet Demo | GitHub | Demo

How to install

  1. meteor add bevanhunt: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 3

L.Icon.Default.imagePath = '/packages/bevanhunt_leaflet/images';

step 4 - 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

License

MIT/X11

Jump to Line
Something went wrong with that request. Please try again.