feat: support diagonal grid and pins on it

This commit is contained in:
Basile Bruneau
2020-05-05 22:06:39 +02:00
parent 5a12e6e231
commit 67ad6c53da
3 changed files with 57 additions and 22 deletions
+2 -1
View File
@@ -6,8 +6,9 @@
const map = new DottedMap({
height,
width, // (one of both if enough)
countries: ['FRA', 'DEU'] // if not present, whole world is used
countries: ['FRA', { id: 'DEU', svgOptions: { color: 'blue' } }] // if not present, whole world is used
region: { lat: {min, max}, lng: {min, max} }, // if not present, it fits the countries or the world
grid: 'vertical' | 'diagonal',
})
// → it will cache the points array