Giter VIP home page Giter VIP logo

Comments (9)

DiegoGomezDeck avatar DiegoGomezDeck commented on August 23, 2024

G3M doesn't support mixing of layers with transparency, I recommend to merge the layers on the server side.

from g3m.

mdelacalle avatar mdelacalle commented on August 23, 2024

Currently we don't support that capability because of performance. Probably in the next future we are going to add that, if you need urgently that please contact with us we can give you the workaround or our change our roadmap if was needed.

from g3m.

DiegoGomezDeck avatar DiegoGomezDeck commented on August 23, 2024

If the WMS server support generation of PNGs with alpha channel (with a parameter such opacity or transparency) you can send this parameter using the method WMSLayer.setExtraParameter(string). The current version does support to mix layers respecting the alpha channel present in the PNGs.

from g3m.

DiegoGomezDeck avatar DiegoGomezDeck commented on August 23, 2024

Add, to Layer class, float _transparency instance variable, and use it as an alpha factor when merging layers.

from g3m.

NidhalSNSdev avatar NidhalSNSdev commented on August 23, 2024

Can you give us more details to implement this solution

from g3m.

mdelacalle avatar mdelacalle commented on August 23, 2024

Work in progress. I hope in a few time we will have this capability available

from g3m.

amazingsmash avatar amazingsmash commented on August 23, 2024

Now Layers have an extra parameter (optional) that sets their transparency [0..1] when merging with other layers. G3MiOSDemo has an example where Spain is shown as a mix of BlueMarble layer and PNOA layer with a transparency of 0.5.

from g3m.

mdelacalle avatar mdelacalle commented on August 23, 2024

great!

from g3m.

mdelacalle avatar mdelacalle commented on August 23, 2024

https://github.com/glob3mobile/g3m_owm/blob/master/Shared/g3m_owm_shared/src/com/glob3mobile/g3mowm/shared/data/SimpleRasterLayerBuilder.java

device-2013-12-26-141612

from g3m.

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.