GithubHelp home page GithubHelp logo

MBTiles UTFGrid about tileserver-php HOT 6 CLOSED

maptiler avatar maptiler commented on September 10, 2024
MBTiles UTFGrid

from tileserver-php.

Comments (6)

klokan avatar klokan commented on September 10, 2024

Initial MBTiles tile implementation in 0d4d50a. Conditional get added as function into tileserver.php, but it is not yet used - still to be done.

from tileserver-php.

klokan avatar klokan commented on September 10, 2024

It would be also cool to expose the grid.json interaction layers out of .mbtiles files. It is pretty simple with:

$query = sprintf('SELECT grid FROM grids WHERE tile_column = %d AND tile_row = %d AND zoom_level = %d', $tile_col, $tile_row, $zoom);
...
gzinflate(substr($compressed, 2));
...

and adding traditional JSONP callback(...) around..

Discussed at: http://support.mapbox.com/discussions/general-questions/573-how-do-i-get-gridjson-files-out-of-mbtiles

from tileserver-php.

daliborjanak avatar daliborjanak commented on September 10, 2024

Demo of UTFGrid:
https://www.mapbox.com/demo/visiblemap/

from tileserver-php.

klokan avatar klokan commented on September 10, 2024

A sample MBTiles to download:
http://a.tiles.mapbox.com/v3/mapbox.geography-class.mbtiles

and preview at:
http://a.tiles.mapbox.com/v3/mapbox.geography-class/page.html#2/30.3/0.0

from tileserver-php.

daliborjanak avatar daliborjanak commented on September 10, 2024

59c2d03

from tileserver-php.

klokan avatar klokan commented on September 10, 2024

Our TileJSON request such as:

http://s444715029.onlinehome.us/geographyclass.json

must contain the grids value similar to the one available in:

http://a.tiles.mapbox.com/v3/mapbox.geography-class.json

It should be present ONLY if there are some UTFGrids in the MBTiles (the table 'grids' is present). The test can be done as described in http://stackoverflow.com/questions/1601151/how-do-i-check-in-sqlite-whether-a-table-exists

from tileserver-php.

Related Issues (20)

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.