Giter Site home page Giter Site logo

tonyc / leaflet-rails Goto Github PK

View Code? Open in Web Editor NEW

This project forked from leaflet/leaflet

0.0 2.0 0.0 13.78 MB

Leaflet is a modern JavaScript library for interactive maps on both desktop and mobile browsers by CloudMade.

Home Page: http://leaflet.cloudmade.com

License: BSD 2-Clause "Simplified" License

Ruby 100.00%

leaflet-rails's Introduction

Quickstart Guide

To start using the leaflet-rails gem, follow the steps below (assuming you use the default asset pipeline):

First, add the following code to your Gemfile.

gem 'leaflet-rails'

Then, run bundle install from within your project to download the necessary files. Following that, open your application-wide CSS file (app/assets/stylesheets/application.css) and add the following line as a comment:

= require leaflet

If you require support for Internet Explorer, add the following line as well:

= require leaflet.ie

After that, open your application-wide Javascript file (typically app/assets/javascripts/application.js) and add the following line before requiring files which depend on Leaflet:

= require leaflet

At this point, you may skip the first two steps of the Leaflet Quick Start guide and start at the third step (adding the map div to a view).

leaflet-rails's People

Contributors

aceiii avatar anru avatar antonj avatar axyjo avatar bmcbride avatar carljm avatar codejosch avatar dravnic avatar ershkus avatar fabrik42 avatar florianf avatar foodtruckfiesta avatar jasondavies avatar jasonsanford avatar jgerigmeyer avatar jondewoo avatar k4 avatar kmahoney avatar majiir avatar marphi avatar max-mapper avatar mcornick avatar mehmeta avatar mikolajgrajek avatar mortenbekditlevsen avatar mourner avatar msaspence avatar neno-giscloud avatar samatjain avatar snc avatar

Watchers

 avatar  avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.