https://github.com/tvandoorn/GoogleMapsTileCutter
Java tool to cut one large map image into tiles compatible with Google Maps
https://github.com/tvandoorn/GoogleMapsTileCutter
custom-map google-maps java leaflet-map openstreetmap tile tilemap
Last synced: about 1 year ago
JSON representation
Java tool to cut one large map image into tiles compatible with Google Maps
- Host: GitHub
- URL: https://github.com/tvandoorn/GoogleMapsTileCutter
- Owner: tvandoorn
- Archived: true
- Created: 2018-02-12T00:21:25.000Z (about 8 years ago)
- Default Branch: master
- Last Pushed: 2018-05-15T16:31:18.000Z (almost 8 years ago)
- Last Synced: 2024-11-07T10:43:11.680Z (over 1 year ago)
- Topics: custom-map, google-maps, java, leaflet-map, openstreetmap, tile, tilemap
- Language: Java
- Homepage:
- Size: 9.77 KB
- Stars: 4
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# GoogleMapsTileCutter
## Usage
``GoogleMapsTileCutter.jar {zoom} {threads} {full map} {output directory}``
Zoom and threads should be an integer above zero. Full map should be a relative or absolute path to the full map (.png only!). The output directory does not have to exist at runtime. It will be created as long as the parent directory exists.
## Dimensions vs zoom levels vs tile count
| Zoom level | Dimensions | Tiles |
| ---------- | ---------- | ----- |
| 1 | 256x256 | 5 |
| 2 | 512x512 | 21 |
| 3 | 1024x1024 | 85 |
| 4 | 2048x2048 | 341 |
| 5 | 4096x4096 | 1365 |
| 6 | 8192x8192 | 5461 |
Required dimensions for a zoom level can be calculated by the following formula: ``2^(zoom -1) * 256``
You can calculate the tile count with the following formula: ``2^zoom * 2^zoom + x + 1`` where `x` is the sum of all previous tile counts for all zoom levels above zero.