developmentseed / aep Goto Github PK
View Code? Open in Web Editor NEWAfrica Electrification Platform - a project for the World Bank
License: MIT License
Africa Electrification Platform - a project for the World Bank
License: MIT License
Hi team, I have introduced a new case study, I have validated locally and everything seems to be working fine (locally). However, when I am trying to push the new branch to the remote I reveive an authentication error fatal: Authentication failed for 'https://github.com/developmentseed/aep.git/'
. I assume this is a security issue that can be resolved via an access token or by simply being added as collaborator? Or is this something I should configure on my machine. Thanks!
Is it possible to change the size of symbols (e.g., points) on the map through the config file? Or symbols come at one side?
When the layer Schools
is enabled, nothing shows up on the map. Also no error message in the console, nor any failed tile requests in the network tab.
✔️ The tiles themselves are working: https://aep-tiles.staging.derilinx.com/tiles/ke/schools/mapbox.html
✔️ The metadata.json seems ok and in line with the Mapbox config: https://aep-tiles.staging.derilinx.com/tiles/ke/schools/metadata.json
Source:
"schools": {
"tiles": [
"https://aep-tiles.staging.derilinx.com/tiles/ke/schools/{z}/{x}/{y}.pbf"
],
"type": "vector"
}
Layer:
{
"id": "schools",
"type": "circle",
"source": "schools",
"source-layer": "data_layer"
}
❌ Interestingly enough console.log(theMap.getLayer('schools'))
returns this:
filter: (3) ["all", Array(3), Array(3)]
id: "schools"
layout: di {_properties: wi, _values: {…}}
maxzoom: undefined
metadata: {mapbox:group: "a636a5194689e7c1dede11bf3cd8dcac"}
minzoom: undefined
paint: di {_properties: wi, _values: {…}}
source: "composite"
sourceLayer: "landuse"
type: "fill"
visibility: "visible"
My guess is that the layer name clashes with the layer name in the base style. Any thoughts @danielfdsilva ?
The Kenya study has 3 default layers that are enabled when loading the page (http://localhost:9000/studies/kenya?layers=)
When disabling all layers, the application automatically enables the default layers again.
When loading the map, a layer is loaded, even though not of them is enabled in the panel:
To see the basemap, without any layer on top of it.
When the Mapbox Style specifies a layer (in the example above no2
), but this is not referenced in the layer configuration in YML.
Should we catch this on the content validation?
We are seeing that some fonts in the value of the attributes for map popups are displaying some weird characters. Is that something you can look into? Attached is a screenshot of the popup from the Benin country study for the Health Facilities data layer.
yarn build
fails after #9
See: https://github.com/developmentseed/aep/actions/runs/600160021
35 | // Get url from window since it is easier.
36 | // Gatsby ensures the location refresh.
> 37 | const url = window.location.toString();
| ^
38 |
39 | return (
40 | <Dropdown
WebpackError:ReferenceError: window is not defined
- share-options.js:37
src/components/share-options.js:37:15
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.