Hi I’m Mofei, 哈喽我是朱文龙, A full-stack engineer since 2010, currently working on data processing pipelines at @mapbox
zmofei / coronavirus-2019-demo Goto Github PK
View Code? Open in Web Editor NEWwebinar for coronavirus map
License: MIT License
webinar for coronavirus map
License: MIT License
数据格式只支持geojson吗?我可以接入接口数据源显示数据到地图上吗?通过接口读取数据,渲染图层。谢谢
在mapbox studio 的style中 tyle选择了heatmap 调整过radlus.但是缩小看不到。 只有放大才能看到。
请问页面的数字面板模块的样式是引用哪个控件吗?官方有提供吗?好像没看到。
获取填色地图的面坐标以及上传到studio这个能做个教程吗
希望利用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属性。
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.