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 🙏

© 2026 – Pkg Stats / Ryan Hefner

ooomap-combine-amap

v1.0.78

Published

ooomap结合高德地图实现室内外一体化

Readme

ooomap 嵌入 高德3D地图插件

ooomap 地图 合并到 高德地图

安装

npm install ooomap-combine-amap --save

引入

使用模块引入

import { createOAMap } from "ooomap-combine-amap"

createOAMap( ... )

也可以直接使用 <script> 标签引入, 此时调用要放到加载 ooomap SDK 之后, 使用om命名空间调用

om.createOAMap( ... )

"嵌入高德地图" 与 "合入高德底图" 的区别

  • 嵌入高德地图

    • 是将 ooomap 地图, 嵌入到高德地图中,使用的是高德地图的JsAPI, 您可以使用高德地图提供的所有API, 包括定位, 导航等, 视图的控制是在高德地图中, 主要用于 "室外" 部分ooomap地图做为高德地图中的一个图层, 用于细化园区或室内地图部分, 用于室内外一体化的导航项目

    • [高德3D地图API]

  • 合入高德底图

创建地图容器div

<!-- 地图的容器 -->
<div id="container"></div>

调用创建方法

方法签名

createOAMap( ooomapConfig, amapConfig ).then( { map, amap, gllayer } => {})

示例

createOAMap(

	// ooomap 配置
	{
		container,
		verifyUrl: 'https://www.ooomap.com/ooomap-verify/check/13b7e6de01570b42ae2a686c1253756d',
		appID: '3c4caa9aeb0a89a1c731308956bee252'
	},

	// 高德地图 配置
	{
		zoom: 19,
		center: [117.213337,39.090965],    // 高德地图中心点经纬度坐标
	}

).then(({ map, amap, gllayer }) => {

	//
	// map: ooomap 地图实例
	// amap: 高德地图实例
	// gllayer: ooomap所在的高德图层
	//
	console.log(map, amap, gllayer)

})