Coder Social home page Coder Social logo

coronavirus-2019-demo's Introduction

Hi there 👋

👨🏻‍💻  About Me

Hi I’m Mofei, 哈喽我是朱文龙, A full-stack engineer since 2010, currently working on data processing pipelines at @mapbox

🛠  Tech Stack

HTML CSS JavaScript React Redux Webpack Sass Mini%20program Visualization Engineering

Node.js Nginx Mysql Mongodb Amazon AWS Alibaba%20Cloud Apache%20Spark Apache%20Airflow

Code ReView Unit testing Code Coverage

Git  GitHub  Markdown Visual Studio Code  Illustrator  Photoshop 

⚙️  GitHub Analytics

🤝🏻  Connect with Me

coronavirus-2019-demo's People

Contributors

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

Watchers

 avatar  avatar  avatar

coronavirus-2019-demo's Issues

时间尺度问题

  1. 原始数据中,数据库是如何设计的,因为有时间尺度,时间字段怎么存储的?
    2.随着时间的变化,填色图怎么更新的,其实这和从后端返回来的数据有关。其实填色图这个source不可能把每天的数据都放在矢量切片中,请问具体是怎么实现的?
    3.原始数据能否共享?

关于数字面板的问题

请问页面的数字面板模块的样式是引用哪个控件吗?官方有提供吗?好像没看到。

聚合图层使用setFilter时的问题

希望利用setFilter来筛选不同的日期,但是在聚合图层里没有生效,不知道问题在哪,请问可以帮我看一下吗?
以下是我添加图层的代码:
export function addCluster(map, GeojsonData, initialDate) {
map.addSource('cluster', {
type: 'geojson',
data: GeojsonData,
cluster: true, // 打开聚合
clusterRadius: 50, // 设置聚合的半径
clusterProperties: { 'confirmed': ['+', ['get', 'confirmed']] } // 设置聚合过程中需要处理的数据
});
map.addLayer(
{
id: 'cluster',
type: 'circle',
source: 'cluster',
layout: {
'visibility': 'none'
},
filter: ['>=', ['get', 'confirmed'], 1],
paint: {
'circle-radius': [
'step',
['get', 'confirmed'],
10, 10,
20, 1000,
30, 5000,
40
],
'circle-color': [
'step',
['get', 'confirmed'],
'#9ad5ff', 10,
'#9af6ff', 1000,
'cyan', 2000,
'#f1f075'
]
}
},
'waterway-label'
);

map.addLayer({
id: 'clusters-count',
type: 'symbol',
source: 'cluster',
filter: ['>=', ['get', 'confirmed'], 1],
layout: {
'text-field': '{confirmed}',
'text-font': ['DIN Offc Pro Medium', 'Arial Unicode MS Bold'],
'text-size': 12,
'text-allow-overlap': true,
'visibility': 'none'
}
}, 'waterway-label')
map.setFilter('cluster', ['==', 'date', initialDate]);
map.setFilter('clusters-count', ['==', 'date', initialDate]);
}

GeojsonData里含有date属性。

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.