mirror of https://gitee.com/antv-l7/antv-l7
663 lines
16 KiB
TypeScript
663 lines
16 KiB
TypeScript
import { defineConfig } from 'dumi';
|
||
const path = require('path');
|
||
const env = process.env.NODE_ENV;
|
||
console.log(env);
|
||
export default defineConfig({
|
||
locales: [{ id: 'zh', name: '中文' }, { id: 'en', name: 'English' }],
|
||
copy: env ==='production' ? ['docs/CNAME'] : [],
|
||
themeConfig: {
|
||
title: 'L7',
|
||
isAntVSite: false,
|
||
internalSite: {
|
||
url: 'https://l7.antv.antgroup.com',
|
||
name: {
|
||
zh: '国内镜像',
|
||
en: 'China Mirror',
|
||
},
|
||
},
|
||
description:
|
||
'Large-scale WebGL-powered Geospatial data visualization analysis framework',
|
||
siteUrl: 'https://l7.antv.antgroup.com/',
|
||
githubUrl: 'https://github.com/antvis/L7',
|
||
keywords:
|
||
'l7, L7, antv/l7, 地理, 空间可视化, Webgl, webgl, 地图, webgis, 3d, GIS, gis, Mapbox, deckgl, g2, g6, antv,',
|
||
showChartResize: true, // 是否在demo页展示图表视图切换
|
||
showAPIDoc: true, // 是否在demo页展示API文档
|
||
detail: {
|
||
title: {
|
||
zh: '蚂蚁地理空间数据可视化',
|
||
en: 'L7 Geospatial Visualization',
|
||
},
|
||
description: {
|
||
zh:
|
||
'蚂蚁集团 AntV 数据可视化团队推出的基于 WebGL 的开源大规模地理空间数据可视分析引擎。',
|
||
en: 'Geospatial Data Visualization Analysis Engine',
|
||
},
|
||
image:
|
||
'https://gw.alipayobjects.com/mdn/antv_site/afts/img/A*cCI7RaJs46AAAAAAAAAAAABkARQnAQ',
|
||
buttons: [
|
||
{
|
||
text: {
|
||
zh: '开始使用',
|
||
en: 'Getting Started',
|
||
},
|
||
link: `/tutorial/quickstart`,
|
||
},
|
||
{
|
||
text: {
|
||
zh: '图表示例',
|
||
en: 'gallery',
|
||
},
|
||
link: `/examples`,
|
||
type: 'primary',
|
||
},
|
||
],
|
||
},
|
||
msfu:false,
|
||
features: [
|
||
{
|
||
icon:
|
||
'https://gw.alipayobjects.com/zos/basement_prod/ca2168d1-ae50-4929-8738-c6df62231de3.svg',
|
||
title: {
|
||
zh: '架构灵活且自由',
|
||
en: 'Easy to use',
|
||
},
|
||
description: {
|
||
zh: '支持地图底图,渲染引擎,图层自由定制、扩展,组合',
|
||
en:
|
||
'Support many basemap, many rendering engine, and layer free customization, extension, combination',
|
||
},
|
||
},
|
||
{
|
||
icon:
|
||
'https://gw.alipayobjects.com/zos/basement_prod/0ccf4dcb-1bac-4f4e-8d8d-f1031c77c9c8.svg',
|
||
title: {
|
||
zh: '业务专业且通用',
|
||
en: 'Simple and Universal',
|
||
},
|
||
description: {
|
||
zh: '以图形符号学地理设计体系理论基础,易用、易理解、专业、专注',
|
||
en:
|
||
'Generating high quality statistical charts through a few lines of code.',
|
||
},
|
||
},
|
||
{
|
||
icon:
|
||
'https://gw.alipayobjects.com/zos/basement_prod/fd232581-14b3-45ec-a85c-fb349c51b376.svg',
|
||
title: {
|
||
zh: '视觉酷炫且动感',
|
||
en: 'Cool and Dynamic',
|
||
},
|
||
description: {
|
||
zh: '支持海量数据,2D、3D,动态,可交互,高性能渲染',
|
||
en:
|
||
'Support many basemap, many rendering engine, and layer free customization, extension, combination',
|
||
},
|
||
},
|
||
],
|
||
case: [
|
||
{
|
||
logo: 'https://antv-2018.alipay.com/assets/image/icon/l7.svg',
|
||
title: {
|
||
zh: '指挥分配场景',
|
||
en: 'Advanced Features',
|
||
},
|
||
description: {
|
||
zh: '区域化网格化数据管理指挥分配场景',
|
||
en:
|
||
'We are now working on some advanced and powerful chart features.',
|
||
},
|
||
link: 'https://antv.vision/Dipper/~demos/docs-task',
|
||
image:
|
||
'https://gw.alipayobjects.com/mdn/rms_08cc33/afts/img/A*scJBTq8PW7kAAAAAAAAAAAAAARQnAQ',
|
||
},
|
||
{
|
||
logo: 'https://antv-2018.alipay.com/assets/image/icon/l7.svg',
|
||
title: {
|
||
zh: '地图数据分析',
|
||
en: 'Advanced Features',
|
||
},
|
||
description: {
|
||
zh: '区域化网格化数据分析场景',
|
||
en:
|
||
'We are now working on some advanced and powerful chart features.',
|
||
},
|
||
link: 'https://antv.vision/Dipper/~demos/docs-analysis',
|
||
image:
|
||
'https://gw.alipayobjects.com/mdn/rms_08cc33/afts/img/A*OnGVRb_qWxcAAAAAAAAAAAAAARQnAQ',
|
||
},
|
||
],
|
||
news: [
|
||
{
|
||
type: {
|
||
zh: '发布',
|
||
en: 'publish',
|
||
},
|
||
title: {
|
||
zh: 'L7 从矢量到遥感,从引擎到平台,探索地理分析的远方',
|
||
en:
|
||
'From vector to remote sensing, from engine to platform, explore the distance of geographical analysis',
|
||
},
|
||
date: '2022.11.22',
|
||
link: 'https://www.yuque.com/antv/blog/zrz77eat2m4wb7yk',
|
||
},
|
||
],
|
||
navs: [
|
||
{
|
||
slug: 'docs/tutorial/l7',
|
||
title: {
|
||
zh: '使用教程',
|
||
en: 'Tutorial',
|
||
},
|
||
redirect: 'api/quickstart',
|
||
},
|
||
{
|
||
slug: 'docs/api',
|
||
title: {
|
||
zh: 'API 文档',
|
||
en: 'Document',
|
||
},
|
||
redirect: 'api/scene',
|
||
},
|
||
{
|
||
slug: 'examples',
|
||
title: {
|
||
zh: '图表演示',
|
||
en: 'Examples',
|
||
},
|
||
},
|
||
],
|
||
cases: [
|
||
{
|
||
logo:
|
||
'https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*-kafQrA1ky4AAAAAAAAAAAAADmJ7AQ/fmt.webp',
|
||
title: {
|
||
zh: 'LarkMap 空间数据可视分析组件库',
|
||
en: 'LarkMap ',
|
||
},
|
||
description: {
|
||
zh:
|
||
'新一代 React 地图可视分析组件库,提供丰富/高效/专业/易用的可视化组件,一站式满足地理可视化需求。',
|
||
en:
|
||
'The new generation of React map visual analysis component library provides rich/efficient/professional/easy-to-use visual components to meet the needs of geographic visualization in a one-stop manner.',
|
||
},
|
||
link: `https://larkmap.antv.antgroup.com/`,
|
||
image:
|
||
'https://mdn.alipayobjects.com/mdn/huamei_qa8qxu/afts/img/A*5iCQSqov5p4AAAAAAAAAAAAADmJ7AQ/fmt.webp',
|
||
isAppLogo: true,
|
||
},
|
||
{
|
||
logo:
|
||
'https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*yaEWT706NFoAAAAAAAAAAAAADmJ7AQ/original',
|
||
title: {
|
||
zh: 'LocationInsight 空间数据可视分析组件库',
|
||
en: 'LocationInsight',
|
||
},
|
||
description: {
|
||
zh:
|
||
'下一代地理空间数据可视分析平台,可配置出丰富的地理可视化效果提供洞察分析、地图应用搭建、开放扩展能力',
|
||
en:
|
||
'The next generation geospatial data visual analysis platform can be configured with rich geographic visualization effects to provide insight analysis, map application construction, and open expansion capabilities',
|
||
},
|
||
link: `https://larkmap.antv.antgroup.com/`,
|
||
image:
|
||
'https://mdn.alipayobjects.com/huamei_qa8qxu/afts/img/A*tR2BTIG6Bz8AAAAAAAAAAAAADmJ7AQ/original',
|
||
isAppLogo: true,
|
||
},
|
||
],
|
||
ecosystems: [
|
||
{
|
||
name: {
|
||
zh: 'LarkMap',
|
||
en: 'L7 For React',
|
||
},
|
||
url: 'https://larkmap.antv.antgroup.com/',
|
||
},
|
||
{
|
||
name: {
|
||
zh: 'L7Plot',
|
||
en: 'L7Plot',
|
||
},
|
||
url: 'https://l7plot.antv.antgroup.com/',
|
||
},
|
||
{
|
||
name: {
|
||
zh: 'L7Draw',
|
||
en: 'L7Draw',
|
||
},
|
||
url: 'http://antv.vision/L7Draw/',
|
||
},
|
||
{
|
||
name: {
|
||
zh: 'LocationInsight',
|
||
en: 'LocationInsight',
|
||
},
|
||
url: 'https://li.antv.antgroup.com/#/home',
|
||
},
|
||
],
|
||
docs: [
|
||
{
|
||
slug: 'tutorial/map',
|
||
title: {
|
||
zh: '地图使用',
|
||
en: 'Map Usage',
|
||
},
|
||
order: 3,
|
||
},
|
||
{
|
||
slug: 'tutorial/interactive',
|
||
title: {
|
||
zh: '图层交互',
|
||
en: 'Layer Interactive',
|
||
},
|
||
order: 4,
|
||
},
|
||
{
|
||
slug: 'tutorial/demo',
|
||
title: {
|
||
zh: '教程示例',
|
||
en: 'Tutorial demo',
|
||
},
|
||
order: 5,
|
||
},
|
||
{
|
||
slug: 'tutorial/point',
|
||
title: {
|
||
zh: '点图层 PointLayer',
|
||
en: 'PointLayer',
|
||
},
|
||
order: 6,
|
||
},
|
||
{
|
||
slug: 'tutorial/line',
|
||
title: {
|
||
zh: '线图层 LineLayer',
|
||
en: 'LineLayer',
|
||
},
|
||
order: 7,
|
||
},
|
||
{
|
||
slug: 'tutorial/polygon',
|
||
title: {
|
||
zh: '面图层 PolygonLayer',
|
||
en: 'PolygonLayer',
|
||
},
|
||
order: 8,
|
||
},
|
||
{
|
||
slug: 'tutorial/heatmap',
|
||
title: {
|
||
zh: '热力图层 HeatmapLayer',
|
||
en: 'HeatmapLayer',
|
||
},
|
||
order: 9,
|
||
},
|
||
{
|
||
slug: 'tutorial/mask',
|
||
title: {
|
||
zh: '掩模图层 MaskLayer',
|
||
en: 'MaskLayer',
|
||
},
|
||
order: 10,
|
||
},
|
||
{
|
||
slug: 'tutorial/tile',
|
||
title: {
|
||
zh: '瓦片图层 TileLayer',
|
||
en: 'TileLayer',
|
||
},
|
||
order: 11,
|
||
},
|
||
{
|
||
slug: 'tutorial/debug',
|
||
title: {
|
||
zh: '调试 debug',
|
||
en: 'debug',
|
||
},
|
||
order: 12,
|
||
},
|
||
{
|
||
slug: 'api/map',
|
||
title: {
|
||
zh: '地图 Map',
|
||
en: 'Map',
|
||
},
|
||
order: 3,
|
||
},
|
||
{
|
||
slug: 'api/source',
|
||
title: {
|
||
zh: '数据 Source',
|
||
en: 'Source',
|
||
},
|
||
order: 3,
|
||
},
|
||
{
|
||
slug: 'api/component',
|
||
title: {
|
||
zh: '组件 Component',
|
||
en: 'Component',
|
||
},
|
||
order: 3,
|
||
},
|
||
{
|
||
slug: 'api/base_layer',
|
||
title: {
|
||
zh: '图层基类 BaseLayer',
|
||
en: 'BaseLayer',
|
||
},
|
||
order: 3,
|
||
},
|
||
{
|
||
slug: 'api/point_layer',
|
||
title: {
|
||
zh: '点图层 PointLayer',
|
||
en: 'PointLayer',
|
||
},
|
||
order: 3,
|
||
},
|
||
{
|
||
slug: 'api/line_layer',
|
||
title: {
|
||
zh: '线图层 LineLayer',
|
||
en: 'LineLayer',
|
||
},
|
||
order: 4,
|
||
},
|
||
{
|
||
slug: 'api/polygon_layer',
|
||
title: {
|
||
zh: '面图层 PolygonLayer',
|
||
en: 'PolygonLayer',
|
||
},
|
||
order: 5,
|
||
},
|
||
{
|
||
slug: 'api/heatmap_layer',
|
||
title: {
|
||
zh: '热力图层 HeatMapLayer',
|
||
en: 'HeatMapLayer',
|
||
},
|
||
order: 6,
|
||
},
|
||
{
|
||
slug: 'api/image_layer',
|
||
title: {
|
||
zh: '图片图层 ImageLayer',
|
||
en: 'ImageLayer',
|
||
},
|
||
order: 7,
|
||
},
|
||
{
|
||
slug: 'api/mask_layer',
|
||
title: {
|
||
zh: '掩模图层 MaskLayer',
|
||
en: 'MaskLayer',
|
||
},
|
||
order: 8,
|
||
},
|
||
{
|
||
slug: 'api/raster_layer',
|
||
title: {
|
||
zh: '栅格图层 RasterLayer',
|
||
en: 'RasterLayer',
|
||
},
|
||
order: 9,
|
||
},
|
||
{
|
||
slug: 'api/tile',
|
||
title: {
|
||
zh: '瓦片图层 TileLayer',
|
||
en: 'TileLayer',
|
||
},
|
||
order: 10,
|
||
},
|
||
{
|
||
slug: 'api/other',
|
||
title: {
|
||
zh: '其他图层 Other',
|
||
en: 'Other Layers',
|
||
},
|
||
order: 11,
|
||
},
|
||
{
|
||
slug: 'api/debug',
|
||
title: {
|
||
zh: '调试 debug',
|
||
en: 'debug',
|
||
},
|
||
order: 12,
|
||
},
|
||
{
|
||
slug: 'api/component/control',
|
||
title: {
|
||
zh: '控件类型 Control',
|
||
en: 'Control',
|
||
},
|
||
order: 1,
|
||
},
|
||
{
|
||
slug: 'api/component/popup',
|
||
title: {
|
||
zh: '气泡类型 Popup',
|
||
en: 'Popup',
|
||
},
|
||
order: 2,
|
||
},
|
||
{
|
||
slug: 'api/component/marker',
|
||
title: {
|
||
zh: 'Marker 类型',
|
||
en: 'Marker',
|
||
},
|
||
order: 3,
|
||
},
|
||
{
|
||
slug: 'api/experiment/earth',
|
||
title: {
|
||
zh: '地球模式',
|
||
en: 'Earth Mode',
|
||
},
|
||
order: 0,
|
||
},
|
||
{
|
||
slug: 'api/experiment',
|
||
title: {
|
||
zh: '实验特性',
|
||
en: 'experiment',
|
||
},
|
||
order: 13,
|
||
},
|
||
],
|
||
examples: [
|
||
{
|
||
slug: 'gallery',
|
||
icon: 'gallery',
|
||
title: {
|
||
zh: '官方精品库',
|
||
en: 'Featured',
|
||
},
|
||
order: 0,
|
||
},
|
||
{
|
||
slug: 'point',
|
||
icon: 'point',
|
||
title: {
|
||
zh: '点图层',
|
||
en: 'Point Layer',
|
||
},
|
||
order: 1,
|
||
},
|
||
{
|
||
slug: 'line',
|
||
icon: 'line',
|
||
title: {
|
||
zh: '线图层',
|
||
en: 'Line Layer',
|
||
},
|
||
order: 2,
|
||
},
|
||
{
|
||
slug: 'polygon',
|
||
icon: 'polygon',
|
||
title: {
|
||
zh: '面图层',
|
||
en: 'Polygon Layer',
|
||
},
|
||
order: 3,
|
||
},
|
||
{
|
||
slug: 'heatmap',
|
||
icon: 'heatmap',
|
||
title: {
|
||
zh: '热力图',
|
||
en: 'HeatMap Layer',
|
||
},
|
||
order: 6,
|
||
},
|
||
{
|
||
slug: 'raster',
|
||
icon: 'raster',
|
||
title: {
|
||
zh: '栅格图层🌟',
|
||
en: 'Raster Layer🌟',
|
||
},
|
||
order: 7,
|
||
},
|
||
{
|
||
slug: 'tile',
|
||
icon: 'raster',
|
||
title: {
|
||
zh: '瓦片图层 🌟',
|
||
en: 'Tile Layer🌟 ',
|
||
},
|
||
order: 7,
|
||
},
|
||
{
|
||
slug: 'component',
|
||
icon: 'map',
|
||
title: {
|
||
zh: '组件',
|
||
en: 'Component',
|
||
},
|
||
order: 9,
|
||
},
|
||
{
|
||
slug: 'draw',
|
||
icon: 'map',
|
||
title: {
|
||
zh: '绘制组件',
|
||
en: 'L7Draw',
|
||
},
|
||
order: 9,
|
||
},
|
||
{
|
||
slug: 'wind',
|
||
icon: 'raster',
|
||
title: {
|
||
zh: '风场图层',
|
||
en: 'Wind Layer',
|
||
},
|
||
order: 7,
|
||
},
|
||
{
|
||
slug: 'earth',
|
||
icon: 'map',
|
||
title: {
|
||
zh: '地球模式',
|
||
en: 'Earth Mode',
|
||
},
|
||
order: 4,
|
||
},
|
||
{
|
||
slug: 'geometry',
|
||
icon: 'raster',
|
||
title: {
|
||
zh: '几何体图层',
|
||
en: 'Geometry Layer',
|
||
},
|
||
order: 7,
|
||
},
|
||
{
|
||
slug: 'engine',
|
||
icon: 'map',
|
||
title: {
|
||
zh: '第三方引擎',
|
||
en: 'other engine',
|
||
},
|
||
order: 8,
|
||
},
|
||
{
|
||
slug: 'amap-plugin',
|
||
icon: 'map',
|
||
title: {
|
||
zh: '高德地图插件',
|
||
en: 'Amap Plugin',
|
||
},
|
||
order: 10,
|
||
},
|
||
{
|
||
slug: 'choropleth',
|
||
icon: 'map',
|
||
title: {
|
||
zh: '行政区划',
|
||
en: 'Choropleth',
|
||
},
|
||
order: 11,
|
||
},
|
||
{
|
||
slug: 'tutorial',
|
||
icon: 'map',
|
||
title: {
|
||
zh: '教程示例',
|
||
en: 'Tutorial demo',
|
||
},
|
||
},
|
||
],
|
||
playground: {
|
||
container:
|
||
'<div style="height: 80vh;justify-content: center; position: relative" id="map"/>',
|
||
dependencies: {
|
||
'@antv/l7': 'latest',
|
||
'@antv/l7-maps': 'latest',
|
||
},
|
||
},
|
||
mdPlayground: {
|
||
// markdown 文档中的 playground 若干设置
|
||
splitPaneMainSize: '50%',
|
||
},
|
||
docsearchOptions: {
|
||
apiKey: '97db146dbe490416af81ef3a8923bcaa',
|
||
indexName: 'antv_l7',
|
||
},
|
||
},
|
||
extraBabelPlugins:[
|
||
// 开发模式下以原始文本引入,便于调试
|
||
[
|
||
// import glsl as raw text
|
||
'babel-plugin-inline-import',
|
||
{ extensions: ['.glsl','.worker.js'] },
|
||
],
|
||
// ['transform-import-css-l7'],
|
||
],
|
||
links: [],
|
||
scripts: [
|
||
'https://webapi.amap.com/maps?v=2.0&key=ff533602d57df6f8ab3b0fea226ae52f',
|
||
],
|
||
alias: {
|
||
'@antv/l7': path.resolve(__dirname, '../l7/src'),
|
||
'@antv/l7-mini': path.resolve(__dirname, '../mini/src'),
|
||
'@antv/l7-maps/lib/map': path.resolve(__dirname, '../maps/src/map'),
|
||
'@antv/l7-core': path.resolve(__dirname, '../core/src'),
|
||
'@antv/l7-component': path.resolve(__dirname, '../component/src'),
|
||
'@antv/l7-three': path.resolve(__dirname, '../three/src'),
|
||
'@antv/l7-layers': path.resolve(__dirname, '../layers/src'),
|
||
'@antv/l7-map': path.resolve(__dirname, '../map/src'),
|
||
'@antv/l7-maps': path.resolve(__dirname, '../maps/src'),
|
||
'@antv/l7-renderer': path.resolve(__dirname, '../renderer/src'),
|
||
'@antv/l7-scene': path.resolve(__dirname, '../scene/src'),
|
||
'@antv/l7-source': path.resolve(__dirname, '../source/src'),
|
||
'@antv/l7-utils': path.resolve(__dirname, '../utils/src')
|
||
}
|
||
});
|