Coder Social home page Coder Social logo

iiab / maps Goto Github PK

View Code? Open in Web Editor NEW
18.0 18.0 6.0 70.68 MB

Internet-in-a-Box (IIAB) Maps are like Google Maps but better, for schools especially, as they work offline (including satellite photos!) and avoid all the advertising. LATEST README: https://github.com/iiab/iiab/tree/master/roles/osm-vector-maps

Home Page: https://github.com/iiab/iiab/wiki/IIAB-Maps

HTML 0.15% PHP 1.08% Shell 0.36% CSS 0.19% JavaScript 97.31% Python 0.57% Perl 0.04% Roff 0.07% Jupyter Notebook 0.23%

maps's People

Contributors

dependabot[bot] avatar georgejhunt avatar holta avatar jvonau avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

maps's Issues

Feature Request: add base mbtiles to catalog

map-catalog.json contains all the installable regions in a list named maps.

It would be nice if other prerequisite or base mbtiles were also in the catalog to make managing their urls easier. This could be done either by adding them to the existing maps list and then adding a property that the user interface could use to distinguish between maps the should be displayed in the download list and those that should not or by adding a top level list parallel to maps that contains base mbtiles.

The tiles in question are:

  • osm-planet_z0-z10_2019.mbtiles
  • planet_z0-z6_2019.mbtiles
  • satellite_z0-z6_v3.mbtiles
  • satellite_z0-z9_v3.mbtiles

Question: is this still true?

In the top read me, History, 3.ii:

The world's landmasses are covered by detail.mbtiles -> .mbtiles (2-10GB depending on region) at zoom levels 0-18, encoded as MVT/PBF vector maps.

Please clarify the use of osm_size within the code base. [& discussion of init.json browser viewport, centered on lat/long + zoom-level]

https://github.com/iiab/maps/blob/master/2020/map-catalog.json no osm_size has 2020 entries
https://github.com/iiab/iiab-admin-console/blob/master/roles/common/files/map/adm-map-catalog.json no osm_size has 2020
What is the significance of "seq" below and these 2 versions are so close could they be unified going forward?

jvonau@kickass:/mnt/scratch$ diff -u git/maps/2020/map-catalog.json git/iiab-admin-console/roles/common/files/map/adm-map-catalog.json
--- git/maps/2020/map-catalog.json	2022-04-28 18:15:48.174567668 -0500
+++ git/iiab-admin-console/roles/common/files/map/adm-map-catalog.json	2022-05-01 22:46:18.563206181 -0500
@@ -13,10 +13,10 @@
       "perma_ref": "",
       "publish": "False",
       "region": "planet_base",
-      "seq": 50,
+      "seq": 1,
       "size": 2108256256,
       "south": "-84.0",
-      "title": "Planet Base",
+      "title": "Planet to Zoom 10",
       "version": "",
       "west": "0.0",
       "zoom": "0",
@@ -35,10 +35,10 @@
       "perma_ref": "",
       "publish": "False",
       "region": "satellite_base",
-      "seq": 0,
+      "seq": 2,
       "size": 1273274368,
       "south": "0.0",
-      "title": "Satellite Base",
+      "title": "Satellite to Zoom 9",
       "version": "v3",
       "west": "0.0",
       "zoom": "0",
@@ -216,7 +216,7 @@
       "seq": 95,
       "size": 86868115456,
       "south": "-84",
-      "title": "World",
+      "title": "Entire World",
       "version": "v0.2",
       "west": "-180",
       "zoom": "2",
@@ -235,10 +235,10 @@
       "perma_ref": "en-osm-omt_san_jose",
       "publish": "True",
       "region": "san_jose",
-      "seq": 5,
+      "seq": 105,
       "size": 30449664,
       "south": "37.23",
-      "title": "World to Zoom Level 10",
+      "title": "San Jose Small File for Testing",
       "version": "v0.21",
       "west": "-122.24",
       "zoom": "2",
@@ -311,4 +311,4 @@
       "filename": "osm_spanish_speaking_regions_z11-z14_2020.mbtiles"
     }
   }
-}
\ No newline at end of file
+}

http://download.iiab.io/content/OSM/vector-tiles/map-catalog.json has osm_size has 2019 entries
https://github.com/iiab/maps/blob/master/osm-source/jupyter-code/README.md
I get the impression that osm_size is going/gone away and just using 'size' 'mbtile_size' only now in map-catalog.json?
These tools mention osm_size:
https://github.com/iiab/maps/blob/master/osm-source/jupyter-code/maps.ipynb has 4 mentions of osm_size, one within what looks to be a python traceback.
https://github.com/iiab/maptools/search?q=osm_size
Other mentions of osm_size https://github.com/iiab/maps/search?&q=osm_size

To run latest Admin Console with maps 7.2-devel

The following is needed from iiab 7.1:

cp scripts/local_facts.fact /etc/ansible/facts.d/local_facts.fact
cp roles/www_base/files/html/js/nacl-fast.min.js /library/www/html/common/js
cp roles/www_base/files/html/js/nacl-util.min.js /library/www/html/common/js

from maps
cp /opt/iiab/maps/resources/regions.json /etc/iiab

Of course you will be downloading tiles to maplist, not viewer.

And they are different versions of the tiles

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.