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

bosgeo-ui

v2.5.0

Published

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

Downloads

6

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包为UI库,同时包含BOSGeo和BOSGeoUI类。

盈嘉互联 BOS 官网

开始

安装 BOSGeo UI库 npm 包:

npm install bosgeo-ui

使用

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

{
  plugins: [
    new CopyWebpackPlugin([
      { from: path.join("node_modules/bosgeo-ui/build", "/Assets"), to: "Assets" },
      {
        from: path.join("node_modules/bosgeo-ui/build", "/ThirdParty"),
        to: "ThirdParty",
      },
      {
        from: path.join("node_modules/bosgeo-ui/build", "/Widgets"),
        to: "Widgets",
      },
      {
        from: path.join("node_modules/bosgeo-ui/build", "/Workers"),
        to: "Workers",
      },
    ]),
  ];
}
import {BOSGeo, BOSGeoUI} from "bosgeo-ui"; //引入BOSGeoViewer的两个核心对象
BOSGeo.setBOSGeoBaseUrl("http://localhost:8000/");//用于本地化部署时设置静态资源文件的根路径
let geoMap = new BOSGeo.GeoMap("bosgeoContainer"); //实例化GeoMap对象
//UI界面初始化
let geoUI = new BOSGeoUI({
    geomap: geoMap
});

案例

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