Giter Club home page Giter Club logo

osm-analysis-dashboard's Introduction

osm-analysis-dashboard's People

Contributors

jenningsanderson avatar michaelsteffen avatar rasagy avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 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  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  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

osm-analysis-dashboard's Issues

Cleanup code

@tridip1931 creating a stub issue here to discuss and go ahead with some code-cleanups

Here's how I'm thinking about it:

  • As a start, just organize the current file, make sure things are logically separated, and add comments
  • Work with @kepta to setup rollup to have a module system we can use in this repository
  • Separate out some things into separate modules / files, especially make sure all constants that should be configurable, like filterProperties for eg. are in a separate file.

Dashboard requirements

Summarising from conversations with @jenningsanderson and @ramyaragupathy.

requirements


Stakeholders: Jennings, Ramya, Mapbox Data Team

  • Mapbox Data Team. Track data team edits. Each quarter in 80 priority cities.
  • Readiness. Track readiness for specific assets. Per assets per quarter in 80 priority cities. See the maturity of edits over time.
  • Jennings. Study OSM edit history. Per user, per asset, per quarter for the whole ๐Ÿ—บ .

Data

  • z15 tiles aggregated quarterly from 2010 to current quarter.
  • z15 tiles aggregated weekly from 2017 to current quarter.

Coverage: 80 priority cities to start with.
Tilesets with contain historical edit counts, count of users, individuals assets added and readiness metrics.

Interface

The dashboard should ideally allow

  • seeing edits made in a particular quarter,
  • comparing edits between any two quarters,
  • filtering edits by one, many or all users,
  • filtering edits by one, many or all asset types, and
  • comparing maturity of tiles across all quarters.

cc: @jenningsanderson @ramyaragupathy @rasagy @maning
+cc: @ramyaragupathy

Private vs Public

Forking the conversation around documenting the project/opening the repo from here.

From what Iโ€™m seeing, this code is only front-end code (tilesets are read-only). I see no harm in making this public so others can understand how to build a project like this. It would also enable us to document the project in the Readme/wiki here.

@batpad Based on the #9 (comment) I think both Jennings & Ramya would prefer to make this repo open and document the project using wiki/Readme. Want to go ahead and make it open?

cc @jenningsanderson @ramyaragupathy

Things to ship for SOTM Asia

Per discussion today listing down items, in order of importance, that needs to be shipped for the SOTM Asia presentation:

  • Move the legend/Color ramp from the map div to the sidebar
  • Specify min & max property values for legends. This can give a good overview on the range distribution for a particular property
  • Geocoder to switch between cities
  • Help text for each property in the sidebar
  • A link to resources (methodology, github repo) in the sidebar
  • Pop up on hover with just selected property
  • Year & Quarter information on each side of the map compare
  • Change the text from filter to Compare Quarters
  • Move city/place labels one layer above the tile view
  • Open in OSM link for a particular viewport

cc @planemad @rasagy @batpad @jenningsanderson @tridip1931

Define stops for properties and stop colours

Is there a way for the javascript to figure out optimum stop values for colour changes for each property dynamically on the fly on the front-end, or should we statically define these in a constant?

How complex does this need to be? Do we have different stops for different property values as well as for different years? Or just define stops based on property and they remain constant through years.

Proposal for data structure to define details per property value that can be filtered on:

{
  'editCount': {
    'label': 'Total Edit Count',
    'stops': [0, 100, 500, 1500, 2500, 8000, 15000]
  },
  'editedBuildings': {
    'label': 'Total Buildings Edited',
    'stops': [0, 80, 250, 500, 1000, 5000, 10000]
  }
}

I'm assuming we'd use a constant colour scale for each - if we want different properties to have different colours, ^ would change a bit.

Also, do we need to have stops per zoom level? In that case, the complexity of this will increase slightly.

Once we have this in place, I see a lot of other things on the front-end flowing from how we define the above data structure.

cc @jenningsanderson @ramyaragupathy @rasagy @tridip1931

z15 tiles do not show up

@jenningsanderson -

Am trying to use this tileset: https://www.mapbox.com/studio/tilesets/jenningsanderson.2010-Q1-agg/

Firstly, I see that the properties defined for the z15 layer and the other layers are different. Is this expected / intended? Also some of the property types are different. If this is intended, we will need to figure out how this fits into our property definitions: #4

Although, even when choosing a property type that seems to exist consistently across layers, I'm still not seeing the z15 tiles show up on the map, working off this branch: https://github.com/mapbox/osm-analysis-dashboard/blob/mockup-compare/mockup/script.js

Dropping this issue here while I debug - but if there's anything obvious that comes to mind @jenningsanderson, please do let know.

Compare plugin gets stuck

screenshot 2017-09-22 15 27 30

Slider gets stuck sometimes. This error does not happen as often as to reproduce it everytime.
I believe this is something to do when dragging using touchpad, with mouse there seems to be no issue. I am not sure.

I have created this issue to flag it out.

/cc: @batpad @rasagy @jenningsanderson

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.