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

@openattitude/other-gps-generic

v0.1.2

Published

GPS moving-map tile view for OpenAttitude

Readme

@openattitude/other-gps-generic

Copyright (c) Torsten Dreyer ([email protected]). SPDX-License-Identifier: LGPL-3.0-or-later.

Leaflet-based moving map for OpenAttitude panels: dark basemap tiles (Carto / OSM), optional openAIP overlay, and a custom aircraft layer (position + heading). Props drive map center, zoom, and aircraft pose—suitable for binding to FlightGear GPS/heading properties in a host app.

This package does not depend on @openattitude/core; it only needs Vue 3 and Leaflet.


Installation

npm install @openattitude/other-gps-generic leaflet

Peer dependencies: vue ^3.5, leaflet ^1.9.

Styles

Import the bundle stylesheet so the map container and aircraft icon class render correctly:

import '@openattitude/other-gps-generic/style.css';

(or @openattitude/other-gps-generic/dist/other-gps-generic.css — see package.json exports.)


Component

GenericGps

| Prop | Type | Description | |------|------|-------------| | latitudeDeg | number \| null \| undefined | Aircraft latitude (deg). | | longitudeDeg | number \| null \| undefined | Aircraft longitude (deg). | | headingDeg | number \| null \| undefined | Heading (deg); affects icon rotation and map offset. | | zoomLevel | number \| null \| undefined | Zoom level; clamped roughly between 5 and 19 when the map is active. | | openaipApiKey | string \| null \| undefined | openAIP tile API key (openaip.net). If omitted or blank, only base map tiles are shown—the key is never read from this package’s source. |

The root element uses class other-gps-generic__map. Width/height are intended to come from the host layout (e.g. panel cutout CSS), not from hard-coded dimensions inside the component.

Pass the key from your host (e.g. Vite import.meta.env.VITE_OPENAIP_API_KEY, runtime config, or server proxy) rather than committing it into this component.


Usage

<script setup lang="ts">
import { GenericGps } from '@openattitude/other-gps-generic';
import '@openattitude/other-gps-generic/style.css';

const openaipKey = import.meta.env.VITE_OPENAIP_API_KEY as string | undefined;
</script>

<template>
  <GenericGps
    class="my-panel-cutout"
    :latitude-deg="50.0"
    :longitude-deg="10.0"
    :heading-deg="270"
    :zoom-level="11"
    :openaip-api-key="openaipKey"
  />
</template>

Development

From the monorepo library/ root:

npm run dev:testbed --workspace=@openattitude/other-gps-generic
npm run test --workspace=@openattitude/other-gps-generic
npm run build --workspace=@openattitude/other-gps-generic

To show the openAIP overlay in the testbed, create packages/other-gps-generic/.env with VITE_OPENAIP_API_KEY=<your key> (do not commit that file).


Related

Other @openattitude/* instrument packages use @openattitude/core for SVG rasterization and gauge math; this package is standalone aside from Vue + Leaflet.