Giter VIP home page Giter VIP logo

Comments (7)

brendan-ward avatar brendan-ward commented on September 21, 2024 1

You can open the tileset using a SQLite viewer like DB Browser for SQLite, then navigate to the metadata table, add an entry for center (longitude, latitude, zoom), then save it. Zoom is arbitrary; I often use the lowest zoom of a tileset.

from mbtileserver.

brendan-ward avatar brendan-ward commented on September 21, 2024

@ItalyPaleAle it sounds like the issue is that the metadata table for your tileset does not contain an entry for center, which is optional according to the TileJSON spec - but I must have always expected it to be present within the maps. Most tools that create tiles produce a metadata entry for center. Out of curiosity, how did you create your tileset?

As a quick fix, you can add an entry for center to your tileset(s) and restart the server.

Is this problem showing up for an image tileset or a vector tileset?

from mbtileserver.

ItalyPaleAle avatar ItalyPaleAle commented on September 21, 2024

Thanks for the quick response and for pinpointing the issue quickly!

I'm very new to working with TileJSON and maps. I was trying with a map I created with tilemaker from OSM data. It's a vector tileset.

Let me look into how to add a center property - I'm really brand new to this :)

from mbtileserver.

ItalyPaleAle avatar ItalyPaleAle commented on September 21, 2024

I submitted a PR that fixes the issue!

from mbtileserver.

ItalyPaleAle avatar ItalyPaleAle commented on September 21, 2024

Thank you!

from mbtileserver.

brendan-ward avatar brendan-ward commented on September 21, 2024

See also tilemaker #380; looks like this is now fixed in tilemaker master branch

from mbtileserver.

brendan-ward avatar brendan-ward commented on September 21, 2024

Thanks for reporting this! I just pushed changes to main branch that fixes this. If that doesn't fix the problem for you, please reopen this issue.

from mbtileserver.

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.