Comments (8)
如果我们map类传入,把参数铺平通过scene内部实例化呢
import { Scene } from '@antv/l7';
import { Mapbox, AMap, GoogleMap } from '@antv/l7-maps';
const scene = new Scene({
type: Mapbox,
center:[112,32],
pitch:30
....
});
这样的写法可以实现,如果 L7Map 作为基础的坐标系,在不传type的情况 下也能够正常初始化。
我们可以认为Amap, mapbox ,googlemap 对L7而言更像是种扩展一种坐标系,
L7Map 是L7的基础的坐标系,这样L7 不依赖第三方map也可以渲染
还有一个问题需要思考:
如果用户已经有了基于AMap或者mapbox地图应用,L7可以支持传入地图实例,这样的需求的话。
const scene = new Scene({
map: new Mapbox({
map: mapinstance,
// ...省略其他地图参数
}),
// ...省略其他场景参数
});
这样的实例化方案是比较可行的。
总结
-
第三方map 可以 new 一个地图实例传入
-
L7 内部坐标系直接通过scene初始化。
from l7.
hello,既然说到多种地图底图使用方案,给你们介绍maptalks,支持接入多种底图风格。
详细可以这个仓库maptalks-tileLayercollection
from l7.
hello,既然说到多种地图底图使用方案,给你们介绍maptalks,支持接入多种底图风格。
详细可以这个仓库maptalks-tileLayercollection
这种只是瓦片底图加载方式,layer级别的功能
from l7.
讨论的结果可以理解为,L7在未来不会支持到除了AMap,mapbox以外的地图吗?例如BMap
from l7.
讨论的结果可以理解为,L7在未来不会支持到除了AMap,mapbox以外的地图吗?例如BMap
支持啊
import { Mapbox, AMap, GoogleMap } from '@antv/l7-maps';
这样拆分就是为了更好的支持其他第三方地图。
from l7.
如果我们map类传入,把参数铺平通过scene内部实例化呢
import { Scene } from '@antv/l7'; import { Mapbox, AMap, GoogleMap } from '@antv/l7-maps'; const scene = new Scene({ type: Mapbox, center:[112,32], pitch:30 .... });
这样的写法可以实现,如果 L7Map 作为基础的坐标系,在不传type的情况 下也能够正常初始化。
我们可以认为Amap, mapbox ,googlemap 对L7而言更像是种扩展一种坐标系,
L7Map 是L7的基础的坐标系,这样L7 不依赖第三方map也可以渲染还有一个问题需要思考:
如果用户已经有了基于AMap或者mapbox地图应用,L7可以支持传入地图实例,这样的需求的话。
const scene = new Scene({ map: new Mapbox({ map: mapinstance, // ...省略其他地图参数 }), // ...省略其他场景参数 });
这样的实例化方案是比较可行的。
总结
- 第三方map 可以 new 一个地图实例传入
- L7 内部坐标系直接通过scene初始化。
目前的版本支持传入map instance实例化吗?
from l7.
如果我们map类传入,把参数铺平通过scene内部实例化呢
import { Scene } from '@antv/l7'; import { Mapbox, AMap, GoogleMap } from '@antv/l7-maps'; const scene = new Scene({ type: Mapbox, center:[112,32], pitch:30 .... });
这样的写法可以实现,如果 L7Map 作为基础的坐标系,在不传type的情况 下也能够正常初始化。
我们可以认为Amap, mapbox ,googlemap 对L7而言更像是种扩展一种坐标系,
L7Map 是L7的基础的坐标系,这样L7 不依赖第三方map也可以渲染
还有一个问题需要思考:
如果用户已经有了基于AMap或者mapbox地图应用,L7可以支持传入地图实例,这样的需求的话。const scene = new Scene({ map: new Mapbox({ map: mapinstance, // ...省略其他地图参数 }), // ...省略其他场景参数 });
这样的实例化方案是比较可行的。
总结
- 第三方map 可以 new 一个地图实例传入
- L7 内部坐标系直接通过scene初始化。
目前的版本支持传入map instance实例化吗?
已经支持持传入map instance实例化了
from l7.
是否支持CRS坐标系的选择呢?
🌰:3857||4326类的?
from l7.
Related Issues (20)
- 百度地图+threejs 报错 TypeError: this.mapService.map.getCameraState is not a function at e.value (l7-three:1:19753) HOT 6
- 天地图setCenter方法缺失,仅有centerAndZoom可设置 HOT 3
- v2.21.1以上版本,地图设置为无底图模式时,获取经纬度的控件回现实(0,0)
- v2.21.1以上版本,地图设置为无底图模式时,获取经纬度的控件会显示(0,0) HOT 10
- CanvasLayer,鼠标交互相关的bug HOT 3
- 线路围墙示例代码有BUG HOT 2
- L7 官网工程 - 文档地址钉正 HOT 1
- 栅格瓦片类型图层对应的请求无法自定义请求头参数 HOT 1
- L7的Popup不支持style和className HOT 2
- 「Tracker」三方地图接入架构升级
- 请问如何结合bingMap使用? HOT 9
- 官网demo「lerc 高程栅格」报错 HOT 1
- 官网demo「Terrain-RGB 高程图」白屏 HOT 1
- 在事件中根据字段动态设置opacity时无效或报错 HOT 6
- 高德地图的语言可以修改为英文吗? HOT 4
- 重构 shader 里非标给 uniform 声明默认值逻辑
- 「Tracker」渲染引擎完全移除 regl 默认替换升级至 G-Device HOT 3
- WindLayer加载失败 HOT 10
- l7-three 支持 mapbox 底图
- 使用天地图后,出现两张底图 HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from l7.