BangleApps/apps/spacew
Anton 241b6e20ce Warn about empty blocks 2024-02-26 15:03:50 +01:00
..
prep Warn about empty blocks 2024-02-26 15:03:50 +01:00
ChangeLog add changlog to avoid CI warning 2023-09-13 08:45:21 +01:00
README.md Prepare version 0.02 of Space Weaver. Major changes are move towards 2023-09-08 22:52:30 +02:00
app-icon.js Add Space Weaver -- vector map application. 2023-08-18 22:41:41 +02:00
app.js Prepare version 0.02 of Space Weaver. Major changes are move towards 2023-09-08 22:52:30 +02:00
app.png Add Space Weaver -- vector map application. 2023-08-18 22:41:41 +02:00
bench.js Prepare version 0.02 of Space Weaver. Major changes are move towards 2023-09-08 22:52:30 +02:00
metadata.json Prepare version 0.02 of Space Weaver. Major changes are move towards 2023-09-08 22:52:30 +02:00
world.mtar Prepare version 0.02 of Space Weaver. Major changes are move towards 2023-09-08 22:52:30 +02:00

README.md

Space Weaver

Vector map

Written by: Pavel Machek

Space Weaver is application for displaying vector maps. It is currently suitable for developers, and more work is needed.

Maps can be created from openstreetmap extracts. Those are cut using osmosis, then translated into geojson. Geojson is further processes to add metadata such as colors, and to split it into xyz tiles, while keeping geojson format. Tiles are then merged into single file, which can be uploaded to the filesystem. Index at the end provides locations of the tiles.

Preparing data

Tools in spacew/prep can be used to prepare data.

You'll need to edit prepare.sh to point it to suitable osm extract, and you'll need to select area of interest. Start experiments with small area. You may want to delete cstocs and provide custom conversion to ascii.

Details of which features are visible at what zoom levels can be configured in split.js. This can greatly affect file sizes. Then there's "meta.max_zoom = 17" setting, reduce it if file is too big.

For initial experiments, configure things so that mtar file is around 500KB. (I had troubles with big files, both on hardware and to lesser extent on simulator. In particular, mtar seemed to be corrupted after emulator window was closed.)

Future Development

Directories at the end of .mtar should be hashed, not linear searched.

Geojson is not really suitable as it takes a lot of storage.

Web-based tool for preparing maps would be nice.

Storing 12bit coordinates, but only using 8bits.

Polygons should go first to get proper z-order.