@tuby/kereal
v0.4.1
Published
tuby kereal engine, a api to create cyber world.
Downloads
16
Readme
#@tuby/kereal
The kereal is a 3d engine to create a syber world. This library is only API, should set a basic engine.
Recently,the basic engine include osg cesium cloud openlayers.
##Installation With NPM:
$ npm install @tuby/kereal
With Yarn:
$ yarn @tuby/kereal
##Update With NPM:
$ npm update @tuby/kereal
With Yarn:
$ yarn upgrade @tuby/kereal
Usage
$ npm install @tuby/kereal-cesium
import {createKereal} from '@tuby/kereal-cesium'
let options={
elementId: 'map3d',
baseMap:{
// 初始视点位置
initLocation: {
viewpoint: {
heading: 25.942301367654593,
pitch: -38.431944183452515,
roll: 0.07677076716942897,
x: 113.19540948017503,
y: 23.81639878150138,
z: 270.32724939781247
}
},
// 地球地图配置
basemap: {
'name': '地球',
'type': 'tms',
'url': 'http://www.cntuby.com:9000/Base/World',
'format': 'png',
'maximumLevel': 8
},
layers: []
}
}
var kereal= createKereal(options);
Testing & Dev
npm run dev
:scroll: Changelog
Detailed changes for each release are documented in the CHANGELOG.md