Coder Social home page Coder Social logo

nbulaj / mapbox-gl-rails Goto Github PK

View Code? Open in Web Editor NEW
35.0 35.0 2.0 30.49 MB

A gem to provide Mapbox GL JS and it's ecosystem (plugins) for Rails applications :train2:

License: MIT License

Ruby 0.11% JavaScript 98.93% CSS 0.01% HTML 0.01% SCSS 0.96% Sass 0.01%
assets-pipeline mapbox-gl-js mapboxgl rails ruby-on-rails

mapbox-gl-rails's Introduction

Hey / Привет 👋

My name is Nikita, and I'm a senior developer at @azati.

I'm currently working on:

  • OAuth 2 provider as a Rails engine - @doorkeeper and related ecosystem.
  • Proxy lists fetcher and validator - @proxy_fetcher.
  • ... and other OSS.

📫 Reach me out at [email protected]

My GitHub stats

mapbox-gl-rails's People

Contributors

jdar avatar nbulaj avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

jdar stuson99

mapbox-gl-rails's Issues

Upgrade to Mapbox GL 2.9.0; globe view projection not working

Currently, when you create a new map in Mapbox Studio, the default projection is the new globe view. This rather new projection was not yet supported by Mapbox GL 2.7.0, and so when a user tries to load a new Mapbox Studio map with mapbox-gl-rails, it does not work until the user changes the projection from Studio into one of the other options. Or, alternatively, we have to build some validation code into our Rails app to handle any incoming projection: globe maps to load with one of the other projections e.g. mercator instead.

I think it should be straightforward to bump the version to 2.9.0 in mapbox-gl.js for this gem.

Gem doesn't work in Chrome 70.0.3538.77

This gem doesn't seem to work on Chrome 70.0.3538.77. This is code from our template. We see the alert box pop up. It works in Safari and Firefox.

  if (!mapboxgl.supported()) {
    alert('Your browser does not support Mapbox GL');
  } else {
    var map = new mapboxgl.Map({
        container: 'map',
        style: 'mapbox://styles/mapbox/streets-v9',
        center: [<%= @post.longitude %>, <%= @post.latitude %>],
        zoom: 15
    });
  }

Upgrade to 1.9.1

Hello,

I am looking for version 1.9.1, which is not yet available. I am willing to open a PR with this change, but the process to do so seems not to be documented anywhere. What is the recommended source to grab the js and scss files?

The file at https://api.mapbox.com/mapbox-gl-js/v1.9.1/mapbox-gl-dev.js seems to be a good starting point, but I have not found the companion scss in non-minified format.

Thanks!

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.