mapcachetools 1.0.1 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md
CHANGED
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
# MAP Cache
|
|
1
|
+
# MAP Cache Tools
|
|
2
2
|
|
|
3
3
|
This tool download any area from map provider and store it as images in a folder.
|
|
4
4
|
You can use these images with a library like [Leafet](https://leafletjs.com/ "Leafet") to make your own map server easily without the need to download a local OpenStreetMap server.
|
|
@@ -9,21 +9,21 @@ You can use these images with a library like [Leafet](https://leafletjs.com/ "Le
|
|
|
9
9
|
Download area from 58.5500977,-4.5231876 to 58.5501,-4.5231976 with maximum zoom in of 20 and minimum zoom in of 0 i.e. whole world zoom, and store images in folder called image_folder
|
|
10
10
|
|
|
11
11
|
|
|
12
|
-
|
|
12
|
+
mapcache_download --lat1=58.5500977 --lng1=-4.5231876 --lat2=58.5501 --lng2=-4.5231976 --zin=20 --zout=0 --folder=./image_folder
|
|
13
13
|
|
|
14
14
|
## Map Providers
|
|
15
15
|
|
|
16
16
|
The application supports [openstreetmap.org](https://www.openstreetmap.org/#map=7/26.805/30.246 "openstreetmap.org")
|
|
17
17
|
|
|
18
18
|
```bash
|
|
19
|
-
|
|
19
|
+
mapcache_download --lat1=58.5500977 --lng1=-4.5231876 --lat2=58.5501 --lng2=-4.5231976 --zin=20 --folder=./out
|
|
20
20
|
|
|
21
21
|
```
|
|
22
22
|
|
|
23
23
|
and [api.mapbox.com](https://api.mapbox.com "api.mapbox.com"). You need to have a **TOKEN** for using [api.mapbox.com](https://api.mapbox.com "api.mapbox.com").
|
|
24
24
|
|
|
25
25
|
```bash
|
|
26
|
-
|
|
26
|
+
mapcache_download --lat1=58.5500977 --lng1=-4.5231876 --lat2=58.5501 --lng2=-4.5231976 --zin=20 --folder=./out --provider=1 --token=pk.eyJ1IjoibSahlZm59IiwiYSI6ImNrZW84Nm9rYTA2ZWgycv9mdmNscmFxYzcifQ.c-z43FdasErPzKhbQ
|
|
27
27
|
```
|
|
28
28
|
|
|
29
29
|
## Sample
|
package/package.json
CHANGED
|
@@ -1,13 +1,13 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "mapcachetools",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"description": "This tool downloads images from a map provider and cache it locally on your device. Please check terms and condition of your map provider. The tool is provided as is with no responsibility from author. Please Use IT AT YOUR OWN RISK.",
|
|
5
5
|
"main": "downloadmaps.js",
|
|
6
6
|
"scripts": {
|
|
7
7
|
"start": "node ./bin/downloadmaps.js"
|
|
8
8
|
},
|
|
9
9
|
"bin": {
|
|
10
|
-
"
|
|
10
|
+
"mapcache_download": "mapcache_download.js"
|
|
11
11
|
},
|
|
12
12
|
"keywords": [
|
|
13
13
|
"map",
|