Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

修改场景中地图使用方式 #92

Merged
merged 12 commits into from
Nov 28, 2019
Merged

修改场景中地图使用方式 #92

merged 12 commits into from
Nov 28, 2019

Conversation

xiaoiver
Copy link
Contributor

re #86
修改后 Scene API 使用方式如下,通过 ESModule 按需引用所需地图实现:

import { Scene, PolygonLayer } from '@antv/l7';
import { AMap } from '@antv/l7-maps';

const scene = new Scene({
  id: 'map',
  map: new AMap({
    center: [110.19382669582967, 50.258134],
    pitch: 0,
    style: 'dark',
    zoom: 3,
    token: 'pg.xxx', // 高德或者 Mapbox 的 token
  }),
});

CDN 用法如下:

const scene = new L7.Scene({
  id: 'map',
  map: new L7.AMap({
    center: [110.19382669582967, 50.258134],
    pitch: 0,
    style: 'dark',
    zoom: 3,
    token: 'pg.xxx', // 高德或者 Mapbox 的 token
  }),
});

文档、examples 和 stories 中都已经替换成最新的 API。

Copy link

@tests-checker tests-checker bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you please add tests to make sure this change works as expected?

@netlify
Copy link

netlify bot commented Nov 26, 2019

Deploy preview for trusting-saha-7bb4e5 ready!

Built with commit 90537ef

https://deploy-preview-92--trusting-saha-7bb4e5.netlify.com

@lgtm-com
Copy link

lgtm-com bot commented Nov 26, 2019

This pull request introduces 1 alert and fixes 1 when merging 9d08549 into e585bf1 - view on LGTM.com

new alerts:

  • 1 for Unused variable, import, function or class

fixed alerts:

  • 1 for Unused variable, import, function or class

@lgtm-com
Copy link

lgtm-com bot commented Nov 26, 2019

This pull request introduces 3 alerts and fixes 2 when merging 393e891 into e585bf1 - view on LGTM.com

new alerts:

  • 3 for Unused variable, import, function or class

fixed alerts:

  • 2 for Unused variable, import, function or class

@lgtm-com
Copy link

lgtm-com bot commented Nov 27, 2019

This pull request introduces 3 alerts and fixes 3 when merging 8943ee6 into e585bf1 - view on LGTM.com

new alerts:

  • 3 for Unused variable, import, function or class

fixed alerts:

  • 3 for Unused variable, import, function or class

@lgtm-com
Copy link

lgtm-com bot commented Nov 27, 2019

This pull request introduces 8 alerts and fixes 3 when merging 864d73c into e585bf1 - view on LGTM.com

new alerts:

  • 8 for Unused variable, import, function or class

fixed alerts:

  • 3 for Unused variable, import, function or class

@lgtm-com
Copy link

lgtm-com bot commented Nov 28, 2019

This pull request introduces 9 alerts and fixes 3 when merging 4579a9b into 3c71526 - view on LGTM.com

new alerts:

  • 9 for Unused variable, import, function or class

fixed alerts:

  • 3 for Unused variable, import, function or class

@lgtm-com
Copy link

lgtm-com bot commented Nov 28, 2019

This pull request introduces 9 alerts and fixes 3 when merging 90537ef into 3c71526 - view on LGTM.com

new alerts:

  • 9 for Unused variable, import, function or class

fixed alerts:

  • 3 for Unused variable, import, function or class

@lzxue lzxue merged commit 1b01ccd into master Nov 28, 2019
@lzxue lzxue deleted the dev-map branch November 28, 2019 04:17
lzxue added a commit that referenced this pull request Mar 5, 2020
修改场景中地图使用方式
lzxue added a commit that referenced this pull request Mar 5, 2020
修改场景中地图使用方式
lzxue added a commit that referenced this pull request Mar 5, 2020
修改场景中地图使用方式
lzxue added a commit that referenced this pull request Mar 6, 2020
修改场景中地图使用方式
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants