Page 1 of 1

Skin button element over map element

Posted: Fri Jul 20, 2018 6:03 am
by bherbes
Does P2VR b3 support skin elements over mapbox map elements?

I’m trying to implement custom map "control buttons" (zoom in/zoom out) in the skin editor. (ie I've disabled the use map UI - map controls)

I’ve applied the map zoom actions to the button, the issue is the button will not appear above the map element

The map z index is 75, the button z index is 80.

The button appears, then the map tiles cover the button. The button functions work fine - they are just not visible?

Is this a bug.

Any suggestions please

Re: Skin button element over map element

Posted: Sat Jul 21, 2018 4:43 am
by Tony
Hi,

Any chance you can post your skin?

Tony

Re: Skin button element over map element

Posted: Sat Jul 21, 2018 8:49 am
by bherbes
G'day Tony,

Thanks for your interest. I’m new to p2vr, have made a basic project demonstrating the issue - project uses a self hosted map.

Hit the button bottom right to show the map
The 2 buttons below the map function fine, but cannot be placed over the map!
I’ve placed them half way to demonstrate the issue.
Have changed to default tree z-index - still no change.

Made with beta3 trial. Any suggestions ?

Re: Skin button element over map element

Posted: Sat Jul 21, 2018 3:08 pm
by Tony
Hi,

Great old panoramas, very interesting.

Okay, if I'm having z index issues I tend to set the elements I want on top to 99 as this always seems to put them at the top. So I did that with your skin setting the 'btn_map_zoom_out' and 'btn_map_zoom_in' elements at Properties > Advanced> Z-Index: = 99 and then the Map 1 element to 98 and it seems to have done the trick. Let me know if this is what you are after.

Here's the output https://s3-ap-southeast-2.amazonaws.com ... index.html

I've attached the skin
OldMap.ggsk
(1.17 KiB) Downloaded 139 times
cheers,
Tony

Re: Skin button element over map element

Posted: Sun Jul 22, 2018 8:42 am
by bherbes
Yes, that's it. That was a simple solution.

Appreciate you sharing your experience with p2vr

Thank you very much Tony.