Is there a way in which i can give one addon a priority over another one? As an example, id like to be able to have one addon enabled with line widths of 5 and then have another addon have line widths of 3. Then if they happen to have same values for day or at that moment you would be able to clearly see the thinner line on top of the wider line from the other addon. Can this be done somehow?
Thanks,
Dean
Is there a way to control the order in which addons are overlaid on top of one another?
-
- Posts: 548
- Joined: Mon Jul 09, 2018 11:18 am
- Has thanked: 25 times
- Been thanked: 85 times
Re: Is there a way to control the order in which addons are overlaid on top of one another?
Hi Dean,
- Simplified API - use your Indicator's setRenderPriority(int priority) method. From Javadoc: "Essentially controls Z (depth) coordinate of the line. Lines with higher values will be "closer" to the screen (on top of the ones with lower values). See LayerRenderPriority for reference values. You should normally specify the position relative to one of the values specified in it."
- Core API - set graphLayerRenderPriority for your Layer1ApiUserMessageModifyIndicator (the field is accessible)
Re: Is there a way to control the order in which addons are overlaid on top of one another?
Andrey,
Having an issue getting setRenderPriority to work. It errors no matter which way i try implementing it. I just used Shift&F2 to look at Indicator and IndicatorModifiable in my velox.api.layer1.simplified javadoc and they dont even reference it like this page on the Bookmap website does. Is there an update to the API or something?
Thanks,
Dean
Having an issue getting setRenderPriority to work. It errors no matter which way i try implementing it. I just used Shift&F2 to look at Indicator and IndicatorModifiable in my velox.api.layer1.simplified javadoc and they dont even reference it like this page on the Bookmap website does. Is there an update to the API or something?
Thanks,
Dean
Re: Is there a way to control the order in which addons are overlaid on top of one another?
Woke up thinking about a couple other things...
1. My build.gradle file references core and simplified versions 7.1.0.35 is that still current?
2. Could my javadoc just be outdated somehow and im just implementing 'setRenderPriority' wrong?
3. Is there a package that i needed to import at the beginning of my project?
Thanks,
Dean
1. My build.gradle file references core and simplified versions 7.1.0.35 is that still current?
2. Could my javadoc just be outdated somehow and im just implementing 'setRenderPriority' wrong?
3. Is there a package that i needed to import at the beginning of my project?
Thanks,
Dean
-
- Posts: 548
- Joined: Mon Jul 09, 2018 11:18 am
- Has thanked: 25 times
- Been thanked: 85 times
Re: Is there a way to control the order in which addons are overlaid on top of one another?
Hi Dean,
right, pls change the core/simplified libraries versions in your build.gradle to 7.1.0.66
right, pls change the core/simplified libraries versions in your build.gradle to 7.1.0.66
Re: Is there a way to control the order in which addons are overlaid on top of one another?
Issue resolved.
Thanks Andrey!
Thanks Andrey!