Skip to content

lucfranken/meteor-leaflet

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

33 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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}} 

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

About

Leaflet.js for Meteor.js

Resources

Stars

Watchers

Forks

Packages

No packages published

Languages

  • JavaScript 95.0%
  • CSS 5.0%