Skip to main content
Home

Built and signed on GitHub Actions

Manage orienteering maps data with Javascript/Typescript

This package works with Cloudflare Workers, Node.js, Deno, Bun, Browsers
This package works with Cloudflare Workers
This package works with Node.js
This package works with Deno
This package works with Bun
This package works with Browsers
JSR Score
100%
Published
a year ago (0.1.0)

Course

Manage orienteering maps data with Javascript/Typescript

Installation

Deno

deno add @orienteering-js/map

Npm

npx jsr add @orienteering-js/map

Yarn

yarn dlx jsr add @orienteering-js/map

Pnpm

pnpm dlx jsr add @orienteering-js/map

Bun

bunx jsr add @orienteering-js/map

Usage

import { CoordinatesConverter } from "@orienteering-js/map";

const mapCalibration = [
  {
    gps: { lat: 45, lon: 6 },
    point: { x: 0, y: 0 },
  },
  {
    gps: { lat: 45.5, lon: 6.02 },
    point: { x: 0, y: 4053 },
  },
  {
    gps: { lat: 45.03, lon: 6.65 },
    point: { x: 2587, y: 0 },
  },
];

const converter = new CoordinatesConverter(mapCalibration);

console.log(converter.latLongToXY([45.0256, 6.1456]));
Built and signed on
GitHub Actions

New Ticket: Report package

Please provide a reason for reporting this package. We will review your report and take appropriate action.

Please review the JSR usage policy before submitting a report.

Add Package

deno add jsr:@orienteering-js/map

Import symbol

import * as map from "@orienteering-js/map";
or

Import directly with a jsr specifier

import * as map from "jsr:@orienteering-js/map";

Add Package

pnpm i jsr:@orienteering-js/map
or (using pnpm 10.8 or older)
pnpm dlx jsr add @orienteering-js/map

Import symbol

import * as map from "@orienteering-js/map";

Add Package

yarn add jsr:@orienteering-js/map
or (using Yarn 4.8 or older)
yarn dlx jsr add @orienteering-js/map

Import symbol

import * as map from "@orienteering-js/map";

Add Package

vlt install jsr:@orienteering-js/map

Import symbol

import * as map from "@orienteering-js/map";

Add Package

npx jsr add @orienteering-js/map

Import symbol

import * as map from "@orienteering-js/map";

Add Package

bunx jsr add @orienteering-js/map

Import symbol

import * as map from "@orienteering-js/map";