npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

test-npm-bos-geo

v2.5.61

Published

BIM+GIS融合场景引擎——BOSGeo引擎库

Downloads

28

Readme

npm Docs

BOSGeo Viewer 是 BOS 提供的一个 BIM+GIS 的三维空间可视化组件。在集成海量 BIM 模型、实景三维模型、遥感影像、地形和矢量数据等空间数据的基础上,提供一系列基于 BIM+GIS 的三维可视化场景查看和交互功能及相关的接口,包括三维地图视图控制、漫游、图层管理、BIM 模型数据搜索与空间定位、路径规划、测量等空间分析功能,实现地理空间的室内室外、地上地下一体化展示与管理。相比于 BOS3DViewer,BOSGeoViewer 由于能够承载海量 GIS 数据(倾斜摄影数据、矢量数据和栅格数据等),并提供了剖面分析、地形开挖、缓冲分析等三维 GIS 特色的空间分析功能,可以实现空间大场景至小场景的逐级细化管理,适合于大型园区、城区级或城市级等大范围 BIM+GIS 数据的承载与展示。

BOSGeo Viewer 包含 BOSGeo 和 BOSGeoUI 两个顶级父类,其中 BOSGeo 类对应引擎库的内容,主要包含 GeoMap、LayerManager、MapLayer、ModelLayer、ParticleLayer、Roam、Draw 和 GeoUtil 等类;BOSGeoUI 对应 UI 库的内容,目前主要实现了 UI 界面的配置。BOSGeo 类是 BOSGeoViewer 的核心,除 BOSGeoUI 类外,所有类、对象全都是 BOSGeo 的子类。

本 NPM 包为引擎库,只包含 BOSGeo 类。

盈嘉互联 BOS 官网

开始

安装 BOSGeo 引擎库 npm 包:

npm install bosgeo

使用

// webpack.config.js配置
const CopyWebpackPlugin = require("copy-webpack-plugin");

{
    plugins: [
        new CopyWebpackPlugin([
            { from: path.join('node_modules/bosgeo/build', '/Workers'), to: 'Workers' },
            { from: path.join('node_modules/bosgeo/build', '/Assets'), to: 'Assets' },
            { from: path.join('node_modules/bosgeo/build', '/resource'), to: 'resource' },
            { from: path.join('node_modules/bosgeo/build', '/ThirdParty'), to: 'ThirdParty' },
            { from: path.join('node_modules/bosgeo/build', '/Widgets'), to: 'Widgets' },
        ]
    ]
}

// index.js使用
import * as BOSGeo from "bosgeo"; //引入BOSGeo引擎库
BOSGeo.setBOSGeoBaseUrl("http://localhost:8000/");//设置资源(CopyWebpackPlugin中Workers、Assets、resource、Widgets)根路径
let geomap = new BOSGeo.GeoMap("bosgeoContainer"); //实例化GeoMap对象

案例

如果有问题,欢迎到 知屋安砖上交流。