bhumi-sdk
v0.0.17
Published
Bhumi npm
Readme
Bhumi SDK
Bhumi SDK is a threejs based JavaScript library for interactive, customizable 3D Raster maps on the web.
Usage/Examples
import { BhumiMap } from 'bhumi-sdk'
// Initialing the bhumi
const map = await BhumiMap.create({
container: document.body,
});
let draw = map.addDrawControls()
let analysis = map.add_Analysis()
// Adding draw controls
draw.addDrawButtons({
types: ["point", "line",'polygon'],
className: "bhumi-btn",
drawOptions: {
point: { type:'default',materialObj: { color: "blue", size: 10 } ,scale:10,subOptions:['default','tree','tower','atm','school','petrol']},
line: { type:'default',materialObj: { color: "orange", linewidth: 0.007 } ,subOptions:['default','dcb','fencing','dashedLine','pipe','arc'] },
polygon: { type:'default',materialObj: { color: "green", opacity: 0.5 }, subOptions:['default','fencing','water','border'] }
}
});
analysis.addLOSbtn()
