Comments (6)
Everything about the map is in (or accessible via Javascript linked from) the HTML source of the pages it's on, e.g. http://effectivealtruismhub.com/map (and http://effectivealtruismhub.com/groups and http://effectivealtruismhub.com/ ). So you can fix it with a local copy of that. The map points included in that HTML source are generated elsewhere, but you don't need to worry about that.
(Currently they're generated at ea...hub dot com /sites/effectivealtruismhub.com/scripts/map-exports/ea-profiles.php pending someone taking on #17 .)
from eahub.
The Map tiles returned 404s from Mapbox which is why they were greyed out. A new Map box account was created to replace the tile provider for leaflet.js. The map now displays properly at the dev site.
from eahub.
Deployed fix by @haryshwaran which was to paste in this code:
L.tileLayer('https://api.tiles.mapbox.com/v4/shared-ea-account.ee9fbb54/{z}/{x}/{y}.png?access_token=pk.eyJ1Ijoic2hhcmVkLWVhLWFjY291bnQiLCJhIjoiM2M3YjdmNzcwNDg1MmM5YjliMzIyNThkZTc2OWJjMWUifQ.-QAdcCLKxJZr8dtAofvdsw',{
maxZoom: 18,
attribution:
'Imagery from <a href="http://mapbox.com/about/maps/">MapBox</a> — ' +
'Map data {attribution.OpenStreetMap}',
subdomains: 'abcd'
}).addTo(map);
from eahub.
attributions need to be fixed and subdomains can be removed, please use this code instead of the above one.
L.tileLayer('https://api.tiles.mapbox.com/v4/shared-ea-account.ee9fbb54/{z}/{x}/{y}.png?access_token=pk.eyJ1Ijoic2hhcmVkLWVhLWFjY291bnQiLCJhIjoiM2M3YjdmNzcwNDg1MmM5YjliMzIyNThkZTc2OWJjMWUifQ.-QAdcCLKxJZr8dtAofvdsw',{
maxZoom: 18,
attribution: 'Map data © <a href="http://openstreetmap.org">OpenStreetMap</a> contributors, ' +
'<a href="http://creativecommons.org/licenses/by-sa/2.0/">CC-BY-SA</a>, ' +
'Imagery © <a href="http://mapbox.com">Mapbox</a>'
}).addTo(map);
from eahub.
code added to all pages and attributions has been fixed
from eahub.
from eahub.
Related Issues (20)
- Restore link to 'Your Profile' in menu, but make linkable URL obvious HOT 19
- Recreate a page showing past donations on the EA Donation Registry
- Add rel="nofollow" to all user-added links
- Add better captcha/spam protection to EA Profile registration HOT 5
- "Edit donations" page contains references to 2013 HOT 1
- Modify Drupal Views code to always show profile fields from the same user together HOT 2
- Automate updates of map based on people's EA Profile locations HOT 3
- Come up with improved EA Hub home page
- Setup automated builds upon commits HOT 1
- Add advanced search for EA Profiles: search by at least some common fields HOT 8
- [CANCELLED] Add an admin user that people can import to their local 'users' table HOT 1
- Fully implement 'What people can offer' page HOT 3
- Add vagrant (or similar) option for setting up a local copy HOT 4
- Fix reported error when changing profile pic HOT 7
- Fix map being broken HOT 4
- Merge users with identical emails & then require emails to be unique HOT 1
- Fully implement 'Effective altruists happy to help with your career' page
- Add searches of people on the EA Donation Registry HOT 3
- Unable to add myself to the group HOT 1
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 eahub.