
Security News
Deno 2.2 Improves Dependency Management and Expands Node.js Compatibility
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
@mappedin/viewer
Advanced tools
A lightweight indoor map application with first class support for maps made in [Mappedin](https://app.mappedin.com/editor).
A lightweight indoor map application with first class support for maps made in Mappedin.
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>
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
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')!,
});
Import and run the startWithLocalData
method.
import { startWithLocalData } from '@mappedin/viewer';
startWithLocalData({
data: myParsedMVF,
});
FAQs
A lightweight indoor map application with first class support for maps made in [Mappedin](https://app.mappedin.com/editor).
The npm package @mappedin/viewer receives a total of 897 weekly downloads. As such, @mappedin/viewer popularity was classified as not popular.
We found that @mappedin/viewer demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 0 open source maintainers collaborating on the project.
Did you know?
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.
Security News
Deno 2.2 enhances Node.js compatibility, improves dependency management, adds OpenTelemetry support, and expands linting and task automation for developers.
Security News
React's CRA deprecation announcement sparked community criticism over framework recommendations, leading to quick updates acknowledging build tools like Vite as valid alternatives.
Security News
Ransomware payment rates hit an all-time low in 2024 as law enforcement crackdowns, stronger defenses, and shifting policies make attacks riskier and less profitable.