0.1.0 • Published 1 year ago

bhumi-sdk v0.1.0

Weekly downloads
-
License
ISC
Repository
-
Last release
1 year ago

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 = new BhumiMap(1);


//It takes elevation-exaggeration as parameter 
// 0 for 2D and 1 for 3D

//drawPoint method is used to Point on the map
//It takes 2 parameter, 1st is the type of point to draw which are default, rain, tree, model and icon.
//2nd is an object in which you can pass materialObj, geometeryObj and path depending on the need. It is optional parameter

map.drawPoint("default",{                      //default point example
    materialObj:{color:0x0000ff},
    geometeryObj:{radius:500}
});

// map.drawPoint("model",{path:'/src/public/models/telecom_tower/scene.gltf'});     //model point example(need to provide path in model and icon)


//drawLine method is used to Line on the map
//It takes 2 parameter, 1st is the type of point to draw which are default, fencing, dashedLine, pipe, dcb, arc.
//2nd is an object in which you can pass materialObj and geometeryObj depending on the need. It is optional parameter

// map.drawLine("default",{materialObj:{color:"red"}});        //default Line example 

// map.drawLine("arc")                          //arc line example


//drawPolygon method is used to Polygon on the map
//It takes 2 parameter, 1st is the type of point to draw which are default, fencing, water.
//2nd is an object in which you can pass materialObj and geometeryObj depending on the need. It is optional parameter

// map.drawPolygon("default",{materialObj:{color:0xa214ff});                //default Polygon example 
// map.drawPolygon("fencing")           
// map.drawTile("slope")                //fencing Polygon example
0.1.0

1 year ago

0.0.1

1 year ago

0.0.0

1 year ago