Skip to content

Manage orienteering maps data with Javascript/Typescript

License

Notifications You must be signed in to change notification settings

orienteering-js/map

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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]));

About

Manage orienteering maps data with Javascript/Typescript

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published