Giter Site home page Giter Site logo

Improvement suggestion about jxmapviewer2 HOT 4 CLOSED

olivbrau avatar olivbrau commented on August 17, 2024
Improvement suggestion

from jxmapviewer2.

Comments (4)

msteiger avatar msteiger commented on August 17, 2024

I thought about it for a while and I believe that it's difficult to realize. You can zoom the tiles, of course even with built-in Swing methods. See AffineTransform on how to scale images (down).
Probably you will still see visual glitches, because the pre-rendered tiles contains text and it might look distorted. But maybe worth a try.
One alternative would be pulling vector tiles from OMS instead and draw them directly. This would give much higher quality and control over things are shown. I don't know what would be needed to get them though.

from jxmapviewer2.

olivbrau avatar olivbrau commented on August 17, 2024

from jxmapviewer2.

msteiger avatar msteiger commented on August 17, 2024

I think the easiest is to just draw everything as before and use an AffineTransform to scale the final image just before rendering it to the size that you want. Alternatively, you can scale them individually as you suggest. The coordinate transformation is done in those two classes here:
https://github.com/msteiger/jxmapviewer2/tree/master/jxmapviewer2/src/main/java/org/jxmapviewer/viewer/util
Hope that helps!

from jxmapviewer2.

msteiger avatar msteiger commented on August 17, 2024

Closing this from age ...

from jxmapviewer2.

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.