Giter Site home page Giter Site logo

Comments (3)

jiaxianghao avatar jiaxianghao commented on August 19, 2024

Thank you.

from skybolt.

matthew-reid avatar matthew-reid commented on August 19, 2024

It's not directly supported, but you might be able to do what you want with any one of these 3 methods:

Method 1. Combine both maps into a single map hierarchy. For example, imagine a situation where the tiles follow a <z>/<x>/<y>.png naming convention, the low-res map goes up to level 8, and the high res map goes up to level 14. In that case you would combine the low res folders 0-8 into the same directory as the high-res folders 9-14.

Method 2. Use relative filesystem path to the tiles (this method doesn't work with http URL). You would specify the path to the tiles in the PlanetEarth.json as "url": "MyTiles/z/x/y.png". You would then create two asset packages, one with the high res tiles, and one with the low res tiles, and both packages would have their tile hierarchy under a MyTiles folder. When the engine searches at runtime for a tile, it will search in both asset packages, and find the appropriate tile in the appropriate package.

Method 3. Create a custom TileSource, derived from the TileSource base class. This custom TileSource would wraps multiple tile sources. You'd have to write a custom createImage function which calls createImage on the appopriate wrapped TileSource for the tile level queried.

from skybolt.

jiaxianghao avatar jiaxianghao commented on August 19, 2024

OK,I got it.

from skybolt.

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.