0.4.1 • Published 2 years ago

@digabi/maps v0.4.1

Weekly downloads
20
License
EUPL-1.1
Repository
github
Last release
2 years ago

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.

0.4.1

2 years ago

0.4.0

4 years ago

0.3.4

4 years ago

0.3.3

4 years ago

0.3.0

4 years ago

0.3.2

4 years ago

0.3.1

4 years ago

0.2.0

4 years ago

0.1.0

4 years ago