Giter Club home page Giter Club logo

Comments (8)

trusktr avatar trusktr commented on August 24, 2024 2

It seems like a good idea for themes to be able to style the map content as well as the tile-not-loaded-yet content.

from harp.gl.

trusktr avatar trusktr commented on August 24, 2024 2

Oh! Another thing: by default, the background color of space is the same color as the globe, so in this case even the globe is invisible if no tiles have loaded yet and we've zoomed all the way out and expect to see a sphere. A good default would be two different colors.

from harp.gl.

nzjony avatar nzjony commented on August 24, 2024

@trusktr, thanks for reporting this bug, we have a BackgroundDataSource that could handle this. See the method addGroundPlane in the TileGeometryCreator. It should be easy to add texture coordinates and a texture to these tiles as google / apple maps do this, and have this hook up to the style so that this can be configured. I will let the team now and we can look to this, I agree that this should help to provide a better sense of where the user is.

from harp.gl.

trusktr avatar trusktr commented on August 24, 2024

That's great that I can configure it, thanks! πŸ‘ A default would be great, so it doesn't give the impression nothing's happening.

from harp.gl.

trusktr avatar trusktr commented on August 24, 2024

That might be a good example of what an underlying default layer could look like (but the colors would be beautified for the default experience): https://www.harp.gl/docs/master/examples/#datasource_custom.html

Then any user's custom tiles would load on top (or something). This way there would always be feedback when interacting with the map, especially on slow connections.

(In fact, in that example I thought I had to wait for something: I thought the white tiles with red lines were default tiles for that particular example, so I was waiting and waiting, but then I realized that the red lines were the example.)

from harp.gl.

nzjony avatar nzjony commented on August 24, 2024

@trusktr , thanks for the added feedback. Have created internal task HARP-9401 so that one of our developers can pick it up if they have time.

from harp.gl.

nzjony avatar nzjony commented on August 24, 2024

Oh! Another thing: by default, the background color of space is the same color as the globe.

Yeah, the BackgroundDataSource sets the tiles to be the clear color specified in the Theme, which would probably explain your observation. It isn't possible to style them differently, it would need a separate entry in the Theme to allow this, as you mention above.

from harp.gl.

stale avatar stale commented on August 24, 2024

This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.

from harp.gl.

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.