New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

@digabi/maps

Package Overview
Dependencies
Maintainers
1
Versions
9
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@digabi/maps

This is a tool for exploring different maps. Used in the exams and [cheat.abitti.fi](https://cheat.abitti.fi)

  • 0.4.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
7
decreased by-50%
Maintainers
1
Weekly downloads
 
Created
Source

Digabi Maps

This is a tool for exploring different maps. Used in the exams and cheat.abitti.fi

How to use

To use cheat maps you need to fufill the peer dependency of leaflet by installing 1.6+ version. Your project also needs to include the leaflet css file as mentioned in leaflet documentation

yarn add @digabi/maps leaflet@~1.6

import { createMap } from '@digabi/maps'
import 'leaflet/dist/leaflet.css'

createWorldMap({
  container: '#map-container',
  mapUrl: 'https://url.to.maps.com/{z}/{x}/{y}.png',
  attribution: 'map-copyright-attribution'
})

More in-depth example can be found from the /public folder in this project.

Development

After cloning the repository, the project can be run locally by following the steps below.

  1. yarn install
  2. yarn start

Maps

You may test map tiles locally by creating a maps directory to the root of the project and adding your map tiles there. You can then load them by editing the contents of the public directory. By default the project includes urls to the same maps used in cheat.abitti.fi and in the exams. These maps can currently be found from the aws tabs.

FAQs

Package last updated on 20 Apr 2022

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