Skip to content

Commit

Permalink
docs: map GaodeMap from extension
Browse files Browse the repository at this point in the history
  • Loading branch information
lvisei committed May 27, 2024
1 parent dd043c4 commit b9eb65f
Show file tree
Hide file tree
Showing 27 changed files with 50 additions and 30 deletions.
2 changes: 1 addition & 1 deletion site/.dumi/global.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ if (window) {
(window as any).g2 = require('@antv/g2');
(window as any).l7 = require('@antv/l7');
(window as any).l7Maps = require('@antv/l7-maps');
(window as any).L7ExtensionMaps = require('@antv/l7-extension-maps');
(window as any).l7ExtensionMaps = require('@antv/l7-extension-maps');
(window as any).l7plot = require('@antv/l7plot');
(window as any).l7CompositeLayers = require('@antv/l7-composite-layers');
(window as any).l7Draw = require('@antv/l7-draw');
Expand Down
3 changes: 2 additions & 1 deletion site/examples/choropleth/administrative/delete/china-city.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { GaodeMap, Scene } from '@antv/l7';
import { Scene } from '@antv/l7';
import { GaodeMap } from '@antv/l7-extension-maps';
import { Choropleth } from '@antv/l7plot';

const scene = new Scene({
Expand Down
3 changes: 2 additions & 1 deletion site/examples/choropleth/administrative/delete/china-map.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { GaodeMap, Scene } from '@antv/l7';
import { Scene } from '@antv/l7';
import { GaodeMap } from '@antv/l7-extension-maps';
import { Choropleth } from '@antv/l7plot';

const scene = new Scene({
Expand Down
3 changes: 2 additions & 1 deletion site/examples/choropleth/administrative/delete/world-map.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { GaodeMap, Scene } from '@antv/l7';
import { Scene } from '@antv/l7';
import { GaodeMap } from '@antv/l7-extension-maps';
import { Choropleth } from '@antv/l7plot';

const scene = new Scene({
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { GaodeMap, Scene } from '@antv/l7';
import { Scene } from '@antv/l7';
import { GaodeMap } from '@antv/l7-extension-maps';
import { Choropleth } from '@antv/l7plot';

const scene = new Scene({
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { GaodeMap, Scene } from '@antv/l7';
import { Scene } from '@antv/l7';
import { GaodeMap } from '@antv/l7-extension-maps';
import { Choropleth } from '@antv/l7plot';

const scene = new Scene({
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { GaodeMap, Scene } from '@antv/l7';
import { Scene } from '@antv/l7';
import { GaodeMap } from '@antv/l7-extension-maps';
import { Choropleth } from '@antv/l7plot';

const scene = new Scene({
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { GaodeMap, Scene } from '@antv/l7';
import { Scene } from '@antv/l7';
import { GaodeMap } from '@antv/l7-extension-maps';
import { Choropleth } from '@antv/l7plot';

const scene = new Scene({
Expand Down
3 changes: 2 additions & 1 deletion site/examples/component/control/demo/exportimage.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { ExportImage, GaodeMap, PolygonLayer, Scene } from '@antv/l7';
import { ExportImage, PolygonLayer, Scene } from '@antv/l7';
import { GaodeMap } from '@antv/l7-extension-maps';

const scene = new Scene({
id: 'map',
Expand Down
3 changes: 2 additions & 1 deletion site/examples/component/control/demo/fullscreen.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { Fullscreen, GaodeMap, Scene } from '@antv/l7';
import { Fullscreen, Scene } from '@antv/l7';
import { GaodeMap } from '@antv/l7-extension-maps';

const scene = new Scene({
id: 'map',
Expand Down
3 changes: 2 additions & 1 deletion site/examples/component/control/demo/geolocate.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { GaodeMap, GeoLocate, Scene } from '@antv/l7';
import { GeoLocate, Scene } from '@antv/l7';
import { GaodeMap } from '@antv/l7-extension-maps';
import gcoord from 'gcoord';

const scene = new Scene({
Expand Down
3 changes: 2 additions & 1 deletion site/examples/component/control/demo/layerswitch.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { GaodeMap, LayerSwitch, LineLayer, PolygonLayer, Scene } from '@antv/l7';
import { LayerSwitch, LineLayer, PolygonLayer, Scene } from '@antv/l7';
import { GaodeMap } from '@antv/l7-extension-maps';

const scene = new Scene({
id: 'map',
Expand Down
3 changes: 2 additions & 1 deletion site/examples/component/control/demo/layerswitch1.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { GaodeMap, LayerSwitch, RasterLayer, Scene } from '@antv/l7';
import { LayerSwitch, RasterLayer, Scene } from '@antv/l7';
import { GaodeMap } from '@antv/l7-extension-maps';

const scene = new Scene({
id: 'map',
Expand Down
3 changes: 2 additions & 1 deletion site/examples/component/control/demo/logo.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { GaodeMap, Logo, Scene } from '@antv/l7';
import { Logo, Scene } from '@antv/l7';
import { GaodeMap } from '@antv/l7-extension-maps';

const scene = new Scene({
id: 'map',
Expand Down
3 changes: 2 additions & 1 deletion site/examples/component/control/demo/maptheme.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { GaodeMap, MapTheme, Scene } from '@antv/l7';
import { MapTheme, Scene } from '@antv/l7';
import { GaodeMap } from '@antv/l7-extension-maps';

const scene = new Scene({
id: 'map',
Expand Down
3 changes: 2 additions & 1 deletion site/examples/component/control/demo/mouselocation.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { GaodeMap, MouseLocation, Scene } from '@antv/l7';
import { MouseLocation, Scene } from '@antv/l7';
import { GaodeMap } from '@antv/l7-extension-maps';

const scene = new Scene({
id: 'map',
Expand Down
3 changes: 2 additions & 1 deletion site/examples/component/control/demo/scale.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { GaodeMap, Scale, Scene } from '@antv/l7';
import { Scale, Scene } from '@antv/l7';
import { GaodeMap } from '@antv/l7-extension-maps';

const scene = new Scene({
id: 'map',
Expand Down
3 changes: 2 additions & 1 deletion site/examples/component/control/demo/swipe.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { GaodeMap, RasterLayer, Scene, Swipe } from '@antv/l7';
import { RasterLayer, Scene, Swipe } from '@antv/l7';
import { GaodeMap } from '@antv/l7-extension-maps';

const scene = new Scene({
id: 'map',
Expand Down
3 changes: 2 additions & 1 deletion site/examples/component/control/demo/syncScene.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { GaodeMap, HeatmapLayer, PointLayer, Scene } from '@antv/l7';
import { HeatmapLayer, PointLayer, Scene } from '@antv/l7';
import { GaodeMap } from '@antv/l7-extension-maps';
import { isNumber } from 'lodash';

// 通过 Scene 获取到地图引擎类型
Expand Down
3 changes: 2 additions & 1 deletion site/examples/component/control/demo/zoom.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { GaodeMap, Scene, Zoom } from '@antv/l7';
import { Scene, Zoom } from '@antv/l7';
import { GaodeMap } from '@antv/l7-extension-maps';

const scene = new Scene({
id: 'map',
Expand Down
3 changes: 2 additions & 1 deletion site/examples/component/popup/demo/customContent.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import * as G2 from '@antv/g2';
import { GaodeMap, LayerPopup, PointLayer, Scene } from '@antv/l7';
import { LayerPopup, PointLayer, Scene } from '@antv/l7';
import { GaodeMap } from '@antv/l7-extension-maps';

const data: any[] = [
{
Expand Down
3 changes: 2 additions & 1 deletion site/examples/component/popup/demo/layerpopup.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
import { GaodeMap, LayerPopup, PointLayer, Scene } from '@antv/l7';
import { LayerPopup, PointLayer, Scene } from '@antv/l7';
import { GaodeMap } from '@antv/l7-extension-maps';

const scene = new Scene({
id: 'map',
Expand Down
2 changes: 0 additions & 2 deletions site/examples/component/popup/demo/popup2.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
// @ts-ignore
import { PointLayer, Popup, Scene } from '@antv/l7';
// @ts-ignore
import { GaodeMap } from '@antv/l7-extension-maps';

async function initMap() {
Expand Down
5 changes: 3 additions & 2 deletions site/examples/composite-layers/l7plot/demo/flow-layer.js
Original file line number Diff line number Diff line change
@@ -1,11 +1,12 @@
import { GaodeMapV2, LayerPopup, Scene } from '@antv/l7';
import { LayerPopup, Scene } from '@antv/l7';
import { FlowLayer } from '@antv/l7-composite-layers';
import { GaodeMap } from '@antv/l7-extension-maps';

// 详情可见:https://l7plot.antv.antgroup.com/api/composite-layers/flow-layer

const scene = new Scene({
id: 'map',
map: new GaodeMapV2({
map: new GaodeMap({
pitch: 0,
style: 'dark',
center: [121.458794, 31.205302],
Expand Down
3 changes: 2 additions & 1 deletion site/examples/composite-layers/l7plot/demo/icon-layer.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { GaodeMap, Scene } from '@antv/l7';
import { Scene } from '@antv/l7';
import { IconFontLayer } from '@antv/l7-composite-layers';
import { GaodeMap } from '@antv/l7-extension-maps';

// 详情可见:https://l7plot.antv.antgroup.com/api/composite-layers/icon-font-layer

Expand Down
3 changes: 2 additions & 1 deletion site/examples/composite-layers/l7plot/demo/image-layer.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { GaodeMap, Scene } from '@antv/l7';
import { Scene } from '@antv/l7';
import { IconImageLayer } from '@antv/l7-composite-layers';
import { GaodeMap } from '@antv/l7-extension-maps';

// 详情可见:https://l7plot.antv.antgroup.com/api/composite-layers/icon-image-layer

Expand Down
2 changes: 0 additions & 2 deletions site/examples/tile/vector/demo/worldmap.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,4 @@
// @ts-ignore
import { LineLayer, PolygonLayer, Scene, Source } from '@antv/l7';
// @ts-ignore
import { GaodeMap } from '@antv/l7-extension-maps';

const data = [
Expand Down

0 comments on commit b9eb65f

Please sign in to comment.