【文件属性】:
文件名称:aframe-openlayers-component:一个A-Frame组件,可在A-Frame中使用OpenLayers映射
文件大小:2.41MB
文件格式:ZIP
更新时间:2021-05-14 23:56:25
a-frame webvr openlayers aframe mozvr
aframe-openlayers-component
一个A框架组件,允许在A框架内部使用OpenLayers映射。
该组件允许使用任何OpenLayers映射到任何A-Frame对象中。 它使用OpenLayers后postcompose地图事件将地图导出到图像中(使用画布),然后将图像添加到A-Frame材质中。 而且,它尝试将OpenLayers交互传递到A帧中,以允许在VR环境中进行选择,平移,移动等操作。
架构图
财产
描述
默认值
必需的
地图
OpenLayers映射要使用的Javascript变量名称。
地图
真的
pixToVRRatio
A帧中的仪表与地图像素之间的相乘系数。 IE; 设置为100时,将在VR空间中每1米显示100个像素。 请检查
100
真的
OlEvent
交互中使用的OpenLayers事件。 该事件将被传递到框架中。 IE; 当
【文件预览】:
aframe-openlayers-component-master
----.gitignore(760B)
----package.json(1KB)
----dist()
--------main.js(7KB)
--------aframe-openlayers-component.js(7KB)
--------aframe-openlayers-component.min.js(3KB)
----LICENSE(1KB)
----index.js(5KB)
----examples()
--------inverted.html(3KB)
--------simple.html(2KB)
--------select.html(3KB)
--------main.js(23B)
--------build.js(6KB)
--------curvedPlane.html(2KB)
--------invertedTwoMaps.html(4KB)
--------dev.js(241B)
----README.md(7KB)
----docs()
--------1.gif(1.06MB)
--------select.png(151KB)
--------2.gif(397KB)
--------3.gif(649KB)
--------simple.png(172KB)