2019-11-21 13:44:32 +08:00
|
|
|
module.exports = {
|
|
|
|
plugins: [
|
|
|
|
{
|
|
|
|
resolve: '@antv/gatsby-theme-antv',
|
|
|
|
options: {
|
2019-11-22 13:23:41 +08:00
|
|
|
GATrackingId: 'UA-148148901-7'
|
2019-11-21 13:44:32 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
siteMetadata: {
|
|
|
|
title: 'L7',
|
2021-11-08 19:49:43 +08:00
|
|
|
isAntVSite: false,
|
2020-01-15 11:31:49 +08:00
|
|
|
description: 'Large-scale WebGL-powered Geospatial data visualization analysis framework',
|
2019-11-21 12:36:59 +08:00
|
|
|
siteUrl: 'https://l7.antv.vision',
|
2019-11-21 13:44:32 +08:00
|
|
|
githubUrl: 'https://github.com/antvis/L7',
|
2020-11-16 15:19:41 +08:00
|
|
|
showChartResize: true, // 是否在demo页展示图表视图切换
|
|
|
|
showAPIDoc: true, // 是否在demo页展示API文档
|
2019-11-21 13:44:32 +08:00
|
|
|
navs: [
|
|
|
|
{
|
|
|
|
slug: 'docs/api',
|
|
|
|
title: {
|
|
|
|
zh: '文档',
|
|
|
|
en: 'Document'
|
|
|
|
},
|
|
|
|
redirect: 'api/l7'
|
|
|
|
},
|
2019-11-22 12:08:33 +08:00
|
|
|
{
|
|
|
|
slug: 'docs/tutorial',
|
|
|
|
title: {
|
|
|
|
zh: '教程',
|
2019-11-24 14:09:12 +08:00
|
|
|
en: 'Tutorial'
|
2019-11-22 12:08:33 +08:00
|
|
|
}
|
|
|
|
},
|
2019-11-21 13:44:32 +08:00
|
|
|
{
|
|
|
|
slug: 'examples',
|
|
|
|
title: {
|
|
|
|
zh: '图表演示',
|
|
|
|
en: 'Examples'
|
2019-12-27 15:33:00 +08:00
|
|
|
}
|
2019-11-21 13:44:32 +08:00
|
|
|
}
|
|
|
|
],
|
2021-11-21 11:33:43 +08:00
|
|
|
ecosystems: [
|
|
|
|
{
|
|
|
|
name: {
|
|
|
|
zh: 'L7 React组件',
|
|
|
|
en: 'L7React L7 For React',
|
|
|
|
},
|
|
|
|
url: 'http://antv.vision/L7-react/',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: {
|
|
|
|
zh: 'L7 地理围栏绘制组件库',
|
|
|
|
en: 'L7Draw',
|
|
|
|
},
|
|
|
|
url: 'http://antv.vision/L7-draw/',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: {
|
|
|
|
zh: 'L7 行政区划可视化库',
|
|
|
|
en: 'L7Boundary',
|
|
|
|
},
|
|
|
|
url: 'http://antv.vision/L7-boundary/',
|
|
|
|
},
|
|
|
|
{
|
|
|
|
name: {
|
2021-11-23 17:56:44 +08:00
|
|
|
zh: 'Dipper 地理可视分开发框架',
|
2021-11-21 11:33:43 +08:00
|
|
|
en: 'Dipper',
|
|
|
|
},
|
|
|
|
url: 'http://antv.vision/Dipper',
|
|
|
|
},
|
|
|
|
],
|
2019-11-21 13:44:32 +08:00
|
|
|
docs: [
|
|
|
|
{
|
|
|
|
slug: 'api/l7',
|
|
|
|
title: {
|
|
|
|
zh: '简介 L7',
|
|
|
|
en: 'Introduction'
|
|
|
|
},
|
|
|
|
order: 0
|
|
|
|
},
|
2019-11-26 11:59:39 +08:00
|
|
|
{
|
|
|
|
slug: 'api/l7stable',
|
|
|
|
title: {
|
|
|
|
zh: '1.x 稳定版',
|
|
|
|
en: '1.x Stable'
|
|
|
|
},
|
|
|
|
order: 1
|
|
|
|
},
|
2019-11-21 13:44:32 +08:00
|
|
|
{
|
2019-11-25 11:47:02 +08:00
|
|
|
slug: 'tutorial',
|
2019-11-21 13:44:32 +08:00
|
|
|
title: {
|
|
|
|
zh: '快速入门',
|
2019-11-22 18:21:59 +08:00
|
|
|
en: 'QuickStart'
|
|
|
|
},
|
|
|
|
order: 0
|
|
|
|
},
|
|
|
|
{
|
2019-11-25 11:47:02 +08:00
|
|
|
slug: 'tutorial/map',
|
2019-11-22 18:21:59 +08:00
|
|
|
title: {
|
|
|
|
zh: '地图',
|
2019-11-25 11:47:02 +08:00
|
|
|
en: 'Map'
|
2019-11-21 13:44:32 +08:00
|
|
|
},
|
2019-11-25 11:47:02 +08:00
|
|
|
order: 3
|
2019-11-21 13:44:32 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
slug: 'api/scene',
|
|
|
|
title: {
|
|
|
|
zh: '场景 Scene',
|
|
|
|
en: 'Scene'
|
|
|
|
},
|
2019-12-02 15:16:45 +08:00
|
|
|
order: 1
|
2019-11-21 13:44:32 +08:00
|
|
|
},
|
2020-05-15 21:07:04 +08:00
|
|
|
{
|
|
|
|
slug: 'api/district',
|
|
|
|
title: {
|
|
|
|
zh: '行政区划',
|
|
|
|
en: 'District'
|
|
|
|
},
|
|
|
|
order: 2
|
|
|
|
},
|
2020-04-18 10:51:09 +08:00
|
|
|
{
|
|
|
|
slug: 'api/draw',
|
|
|
|
title: {
|
|
|
|
zh: '绘制组件',
|
|
|
|
en: 'Draw Component'
|
|
|
|
},
|
|
|
|
order: 2
|
|
|
|
},
|
2020-03-08 14:48:52 +08:00
|
|
|
{
|
|
|
|
slug: 'api/react',
|
|
|
|
title: {
|
2020-03-08 17:31:56 +08:00
|
|
|
zh: 'React 组件',
|
2020-04-18 10:51:09 +08:00
|
|
|
en: 'React Component'
|
2020-03-08 14:48:52 +08:00
|
|
|
},
|
2020-03-12 16:06:26 +08:00
|
|
|
order: 2
|
2020-03-08 14:48:52 +08:00
|
|
|
},
|
2019-11-21 13:44:32 +08:00
|
|
|
{
|
|
|
|
slug: 'api/layer',
|
|
|
|
title: {
|
|
|
|
zh: '图层 Layer',
|
|
|
|
en: 'Layer'
|
|
|
|
},
|
2020-04-18 10:51:09 +08:00
|
|
|
order: 5
|
2019-11-21 13:44:32 +08:00
|
|
|
},
|
2019-12-14 22:15:28 +08:00
|
|
|
{
|
|
|
|
slug: 'api/layer/point_layer',
|
|
|
|
title: {
|
|
|
|
zh: '点图层',
|
|
|
|
en: 'PointLayer'
|
|
|
|
},
|
|
|
|
order: 1
|
|
|
|
},
|
|
|
|
{
|
|
|
|
slug: 'api/layer/line_layer',
|
|
|
|
title: {
|
|
|
|
zh: '线图层',
|
|
|
|
en: 'LineLayer'
|
|
|
|
},
|
|
|
|
order: 2
|
|
|
|
},
|
|
|
|
{
|
|
|
|
slug: 'api/layer/polygon_layer',
|
|
|
|
title: {
|
|
|
|
zh: '面图层',
|
|
|
|
en: 'PolygonLayer'
|
|
|
|
},
|
|
|
|
order: 3
|
|
|
|
},
|
|
|
|
{
|
|
|
|
slug: 'api/layer/heatmap_layer',
|
|
|
|
title: {
|
|
|
|
zh: '热力图',
|
|
|
|
en: 'HeatmapLayer'
|
|
|
|
},
|
|
|
|
order: 4
|
|
|
|
},
|
2020-01-07 21:15:23 +08:00
|
|
|
{
|
|
|
|
slug: 'api/layer/image_layer',
|
|
|
|
title: {
|
|
|
|
zh: '图片图层',
|
|
|
|
en: 'IMageLayer'
|
|
|
|
},
|
|
|
|
order: 5
|
|
|
|
},
|
|
|
|
{
|
|
|
|
slug: 'api/layer/raster_layer',
|
|
|
|
title: {
|
|
|
|
zh: '栅格图',
|
|
|
|
en: 'RasterLayer'
|
|
|
|
},
|
|
|
|
order: 6
|
|
|
|
},
|
2019-12-31 19:17:29 +08:00
|
|
|
{
|
|
|
|
slug: 'api/layer/cityBuilding',
|
|
|
|
title: {
|
|
|
|
zh: '城市建筑',
|
|
|
|
en: 'CityBuilding'
|
|
|
|
},
|
2020-01-07 21:15:23 +08:00
|
|
|
order: 8
|
2019-12-31 19:17:29 +08:00
|
|
|
},
|
2019-11-21 13:44:32 +08:00
|
|
|
{
|
|
|
|
slug: 'api/source',
|
|
|
|
title: {
|
|
|
|
zh: '数据 Source',
|
|
|
|
en: 'Source'
|
|
|
|
},
|
2020-03-12 16:06:26 +08:00
|
|
|
order: 5
|
2019-11-21 13:44:32 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
slug: 'api/component',
|
|
|
|
title: {
|
|
|
|
zh: '组件 Component',
|
|
|
|
en: 'Component'
|
|
|
|
},
|
2020-03-12 16:06:26 +08:00
|
|
|
order: 6
|
2021-09-23 15:05:50 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
slug: 'api/renderer',
|
|
|
|
title: {
|
|
|
|
zh: '第三方引擎接入',
|
|
|
|
en: 'import other gl'
|
|
|
|
},
|
|
|
|
order: 3
|
2021-10-13 16:51:20 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
slug: 'api/earth',
|
|
|
|
title: {
|
|
|
|
zh: '地球模式',
|
|
|
|
en: 'Earth Mode'
|
|
|
|
},
|
|
|
|
order: 3
|
2021-11-20 16:04:47 +08:00
|
|
|
},
|
|
|
|
{
|
|
|
|
slug: 'api/mini',
|
|
|
|
title: {
|
|
|
|
zh: '小程序',
|
|
|
|
en: 'mini'
|
|
|
|
},
|
|
|
|
order: 3
|
|
|
|
},
|
|
|
|
{
|
|
|
|
slug: 'api/mini/demos',
|
|
|
|
title: {
|
|
|
|
zh: '案例集合',
|
|
|
|
en: 'demos'
|
|
|
|
},
|
|
|
|
order: 5
|
|
|
|
},
|
2021-12-02 16:13:44 +08:00
|
|
|
{
|
|
|
|
slug: 'api/amapPlugin',
|
|
|
|
title: {
|
|
|
|
zh: '地图插件',
|
|
|
|
en: 'map plugin'
|
|
|
|
},
|
|
|
|
order: 5
|
|
|
|
},
|
2019-11-21 13:44:32 +08:00
|
|
|
],
|
|
|
|
examples: [
|
|
|
|
{
|
|
|
|
slug: 'gallery',
|
|
|
|
icon: 'gallery',
|
|
|
|
title: {
|
2019-12-27 15:33:00 +08:00
|
|
|
zh: '官方精品库',
|
|
|
|
en: 'Featured'
|
2019-11-21 13:44:32 +08:00
|
|
|
}
|
|
|
|
},
|
2020-03-11 21:35:11 +08:00
|
|
|
{
|
|
|
|
slug: 'react',
|
|
|
|
icon: 'map',
|
|
|
|
title: {
|
|
|
|
zh: 'React 组件',
|
|
|
|
en: 'React Demo'
|
|
|
|
}
|
|
|
|
},
|
2020-05-12 17:59:42 +08:00
|
|
|
{
|
|
|
|
slug: 'district',
|
|
|
|
icon: 'map',
|
|
|
|
title: {
|
|
|
|
zh: '行政区划',
|
|
|
|
en: 'L7 District'
|
|
|
|
}
|
|
|
|
},
|
2020-04-14 17:01:40 +08:00
|
|
|
{
|
|
|
|
slug: 'draw',
|
|
|
|
icon: 'map',
|
|
|
|
title: {
|
2020-05-12 17:59:42 +08:00
|
|
|
zh: '绘制组件',
|
2020-04-14 17:01:40 +08:00
|
|
|
en: 'L7 Draw'
|
|
|
|
}
|
|
|
|
},
|
2021-10-13 16:51:20 +08:00
|
|
|
{
|
|
|
|
slug: 'engine',
|
|
|
|
icon: 'map',
|
|
|
|
title: {
|
|
|
|
zh: '第三方引擎',
|
|
|
|
en: 'other engine'
|
|
|
|
}
|
|
|
|
},
|
2021-12-02 16:13:44 +08:00
|
|
|
{
|
|
|
|
slug: 'amapPlugin',
|
|
|
|
icon: 'map',
|
|
|
|
title: {
|
|
|
|
zh: '高德地图插件',
|
|
|
|
en: 'amapPlugin'
|
|
|
|
}
|
|
|
|
},
|
2021-10-13 16:51:20 +08:00
|
|
|
{
|
|
|
|
slug: 'earth',
|
|
|
|
icon: 'map',
|
|
|
|
title: {
|
|
|
|
zh: '地球模式',
|
|
|
|
en: 'Earth Mode'
|
|
|
|
}
|
|
|
|
},
|
2019-11-21 13:44:32 +08:00
|
|
|
{
|
|
|
|
slug: 'point',
|
|
|
|
icon: 'point',
|
|
|
|
title: {
|
|
|
|
zh: '点图层',
|
|
|
|
en: 'Point Layer'
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
slug: 'line',
|
|
|
|
icon: 'line',
|
|
|
|
title: {
|
|
|
|
zh: '线图层',
|
|
|
|
en: 'Line Layer'
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
slug: 'polygon',
|
|
|
|
icon: 'polygon',
|
|
|
|
title: {
|
|
|
|
zh: '面图层',
|
|
|
|
en: 'Polygon Layer'
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
slug: 'heatmap',
|
|
|
|
icon: 'heatmap',
|
|
|
|
title: {
|
|
|
|
zh: '热力图',
|
|
|
|
en: 'HeatMap Layer'
|
|
|
|
},
|
|
|
|
order: 5
|
|
|
|
},
|
|
|
|
{
|
|
|
|
slug: 'raster',
|
|
|
|
icon: 'raster',
|
|
|
|
title: {
|
|
|
|
zh: '栅格图层',
|
|
|
|
en: 'Raster Layer'
|
|
|
|
}
|
|
|
|
},
|
|
|
|
{
|
|
|
|
slug: 'tutorial',
|
|
|
|
icon: 'map',
|
|
|
|
title: {
|
|
|
|
zh: '教程示例',
|
|
|
|
en: 'Tutorial demo'
|
|
|
|
}
|
|
|
|
}
|
|
|
|
],
|
|
|
|
playground: {
|
2021-12-22 12:15:30 +08:00
|
|
|
container: '<div style="height: 100vh;justify-content: center; position: relative" id="map"/>',
|
2019-11-25 17:29:48 +08:00
|
|
|
dependencies: {
|
2020-01-19 20:22:30 +08:00
|
|
|
'@antv/l7': 'latest',
|
2019-11-29 13:33:44 +08:00
|
|
|
'@antv/l7-maps': 'latest'
|
2019-11-25 17:29:48 +08:00
|
|
|
}
|
2019-12-12 12:13:47 +08:00
|
|
|
},
|
|
|
|
docsearchOptions: {
|
|
|
|
apiKey: '97db146dbe490416af81ef3a8923bcaa',
|
|
|
|
indexName: 'antv_l7'
|
2019-11-21 13:44:32 +08:00
|
|
|
}
|
|
|
|
}
|
|
|
|
};
|