Comments (9)
@marharyta I also am working on a few city projects, getting the same issue here.
I'll take a look and see if we can get it building!
from mapbox-gl-accessibility.
@tristen you bet! as soon as that's merged i'll PR a simple test suite so we can refactor stuff.
from mapbox-gl-accessibility.
Arrow functions were introduced in ES6!
from mapbox-gl-accessibility.
Thanks, With that in mind, I'll try a bit more to see if I can get it transpiling into a distributable build.
from mapbox-gl-accessibility.
@andrewharvey what is the situation with that? I am currently building an app that might critically need good a11y (city project) and I want to know if there is any CDN I can use? Thanks a lot for your work! Also, do you need help? I am not good with maps but I can try!
from mapbox-gl-accessibility.
@marharyta I'm not working on this at the moment, so feel free to give it a go yourself. You can take a look at a similar project https://github.com/mapbox/mapbox-gl-draw/blob/master/package.json and see how it generates the dist build and try to replicate that here?
from mapbox-gl-accessibility.
I am also running into this syntax error. Babel doesn't seem to be seeing this plugin: https://babeljs.io/docs/en/next/babel-plugin-proposal-class-properties.html
When I change the syntax from the arrow function style syntax to class method syntax (myProp = () => { }
to myProp(){ }
), I'm able to build; Babel can transform without issue.
There is a slight difference, but not relevant here. That said, I will keep trying to see why arrow function methods aren't working (I'd rather understand why this wasn't working in the first place than work around). Oops, it is relevant. These are event callbacks :) so binding matters.
Fork here until I get something ready for PR: https://github.com/allthesignals/mapbox-gl-accessibility
from mapbox-gl-accessibility.
What are some next steps for this? I want to help but I'm not sure what needs to happen to publish this onto npm and a CDN? I'm assuming this will need to happen on Mapbox's account...
from mapbox-gl-accessibility.
👋 @allthesignals I can help with the publish step to npm. OK to do that when #34 is merged?
from mapbox-gl-accessibility.
Related Issues (19)
- Automatically choose layers based on source layers HOT 2
- derive width and height from feature property HOT 2
- Make roads accessible HOT 2
- compliance with WCAG HOT 2
- Link is broken HOT 3
- add image/video of demo to README.md
- Order POIs by proximity to user location HOT 1
- Inherit mouse events HOT 3
- Add some tests HOT 1
- Event listener for when elements are drawn on the page?
- Filter out duplicate features with the largest one
- Error when running `npm install & npm start` HOT 3
- Provide more information about each POI
- Demo requires access token
- Summarize visible places and roads HOT 4
- Use localized name property by default HOT 1
- Label features by evaluated text-field HOT 1
- Accessibility Elements not created on map load
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from mapbox-gl-accessibility.