Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

mapbox-rails

Package Overview
Dependencies
Maintainers
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

mapbox-rails

  • 2.3.0
  • Rubygems
  • Socket score

Version published
Maintainers
1
Created
Source

MapBox.js for rails asset pipeline

MapBox.js is a library integrating MapBox maps.

The mapbox-rails gem integrates the Chosen with the Rails asset pipeline.

Usage

Install mapbox-rails gem

Include mapbox-rails in Gemefile

gem 'mapbox-rails'

Then run bundle install

Include mapbox javascript assets

Add to your app/assets/javascripts/application.js

//= require mapbox.js

Include mapbox stylesheet assets

Add to your app/assets/stylesheets/application.css

*= require mapbox

Enable mapbox

<div id='map' class='dark'></div>
<script type='text/javascript'>
  var map = L.mapbox.map('map', 'examples.map-y7l23tes').setView([37.9, -77], 5);
</script>

Gem maintenance

Maintain mapbox-rails gem with Rake commands.

Update origin mapbox source files.

rake update-mapbox

Publish gem.

rake release

License

Portions of this code use the BSD and the MIT license. See LICENSE.md for more information.

FAQs

Package last updated on 19 Jan 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc