From 3192dbb4f45d96f1ea17b73eab171bc54de3bfc2 Mon Sep 17 00:00:00 2001 From: franciszek Date: Tue, 5 Jan 2021 15:26:38 +0100 Subject: [PATCH] Added leaflet for osm map --- package-lock.json | 33 +++++++++++++++++++++++++++++++++ package.json | 5 ++++- 2 files changed, 37 insertions(+), 1 deletion(-) diff --git a/package-lock.json b/package-lock.json index 0e1325e..56c1f88 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1039,6 +1039,11 @@ "physical-cpu-count": "^2.0.0" } }, + "@react-leaflet/core": { + "version": "1.0.2", + "resolved": "https://registry.npmjs.org/@react-leaflet/core/-/core-1.0.2.tgz", + "integrity": "sha512-QbleYZTMcgujAEyWGki8Lx6cXQqWkNtQlqf5c7NImlIp8bKW66bFpez/6EVatW7+p9WKBOEOVci/9W7WW70EZg==" + }, "@types/accepts": { "version": "1.3.5", "resolved": "https://registry.npmjs.org/@types/accepts/-/accepts-1.3.5.tgz", @@ -1101,6 +1106,12 @@ "@types/range-parser": "*" } }, + "@types/geojson": { + "version": "7946.0.7", + "resolved": "https://registry.npmjs.org/@types/geojson/-/geojson-7946.0.7.tgz", + "integrity": "sha512-wE2v81i4C4Ol09RtsWFAqg3BUitWbHSpSlIo+bNdsCJijO9sjme+zm+73ZMCa/qMC8UEERxzGbvmr1cffo2SiQ==", + "dev": true + }, "@types/http-assert": { "version": "1.5.1", "resolved": "https://registry.npmjs.org/@types/http-assert/-/http-assert-1.5.1.tgz", @@ -1172,6 +1183,15 @@ "@types/koa": "*" } }, + "@types/leaflet": { + "version": "1.5.19", + "resolved": "https://registry.npmjs.org/@types/leaflet/-/leaflet-1.5.19.tgz", + "integrity": "sha512-ZAKqfvdU/+KFoCpf8aUba09F8mfSc8R2esq++Cha3E2DgwS5K/I/4eJ+0JylrVHZivgY7PSAeXFv/izP+81/MQ==", + "dev": true, + "requires": { + "@types/geojson": "*" + } + }, "@types/mime": { "version": "2.0.3", "resolved": "https://registry.npmjs.org/@types/mime/-/mime-2.0.3.tgz", @@ -4024,6 +4044,11 @@ } } }, + "leaflet": { + "version": "1.7.1", + "resolved": "https://registry.npmjs.org/leaflet/-/leaflet-1.7.1.tgz", + "integrity": "sha512-/xwPEBidtg69Q3HlqPdU3DnrXQOvQU/CCHA1tcDQVzOwm91YMYaILjNp7L4Eaw5Z4sOYdbBz6koWyibppd8Zqw==" + }, "levn": { "version": "0.3.0", "resolved": "https://registry.npmjs.org/levn/-/levn-0.3.0.tgz", @@ -5294,6 +5319,14 @@ "scheduler": "^0.20.1" } }, + "react-leaflet": { + "version": "3.0.5", + "resolved": "https://registry.npmjs.org/react-leaflet/-/react-leaflet-3.0.5.tgz", + "integrity": "sha512-0hJwwRMo5ChY+0nr1yO/UDCT4alIqMgJ7S/HoMBkL65Sr1yJ8eX5lAXk3EkdBUOwxQlMYCduU87pczYmudnlbQ==", + "requires": { + "@react-leaflet/core": "^1.0.2" + } + }, "readable-stream": { "version": "2.3.7", "resolved": "https://registry.npmjs.org/readable-stream/-/readable-stream-2.3.7.tgz", diff --git a/package.json b/package.json index e8e6c8b..cb6fe60 100644 --- a/package.json +++ b/package.json @@ -27,11 +27,14 @@ "koa": "^2.13.0", "koa-mount": "^4.0.0", "koa-static": "^5.0.0", + "leaflet": "^1.7.1", "parcel-bundler": "^1.12.4", "react": "^17.0.1", - "react-dom": "^17.0.1" + "react-dom": "^17.0.1", + "react-leaflet": "^3.0.5" }, "devDependencies": { + "@types/leaflet": "^1.5.19", "sass": "^1.32.0", "typescript": "^4.1.3" }