Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@mappedin/viewer

Package Overview
Dependencies
Maintainers
0
Versions
441
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@mappedin/viewer

A lightweight indoor map application with first class support for maps made in [Mappedin](https://app.mappedin.com/editor).

  • 0.32.2
  • latest
  • npm
  • Socket score

Version published
Weekly downloads
445
decreased by-50.77%
Maintainers
0
Weekly downloads
 
Created
Source

Mappedin Viewer

A lightweight indoor map application with first class support for maps made in Mappedin.

Getting Started

HTML

Add a <div> element to your website with the id #viewer-app-root. The map will be rendered into this element.

<body>
	<div id="viewer-app-root"></div>
</body>

Then, add the following snippet somewhere in your website.

<script type="module">
	import start from 'https://cdn.jsdelivr.net/npm/@mappedin/viewer@latest/dist/index.js';
	start();
</script>

Package Manager

Install the package with the package manager of your choice.

# npm
npm install @mappedin/viewer

# yarn
yarn add @mappedin/viewer

#pnpm
pnpm i @mappedin/viewer
Pointing at a public Mappedin map

Import and run the default start method. The ID of the map will be parsed from the URL.

import start from '@mappedin/viewer';

start({
	root: document.getElementById('my-element')!,
});
Pointing at local MVF

Import and run the startWithLocalData method.

import { startWithLocalData } from '@mappedin/viewer';

startWithLocalData({
	data: myParsedMVF,
});

FAQs

Package last updated on 16 Jan 2025

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc