Skip to content
This repository has been archived by the owner on May 11, 2020. It is now read-only.

zindex not applied to custom markers when transfrom is enabled #864

Open
lskalac opened this issue Mar 13, 2018 · 1 comment
Open

zindex not applied to custom markers when transfrom is enabled #864

lskalac opened this issue Mar 13, 2018 · 1 comment

Comments

@lskalac
Copy link

lskalac commented Mar 13, 2018

I'm working on the project where we have a map with a lot of custom markers and there are the cases when one (A) overlaps the other one (B). In that case, I want to achieve that one part of marker A goes above and one part under the marker B. I tested it and I think that maybe the problem is in the transform property on custom-marker.

If you look into the following example:
https://codepen.io/ivanronga/pen/ZxbdPb?editors=1100#0
grey circle of custom-marker first element is above custom-marker second element. But if you remove transform property from .custom-marker class, that circle will go under it.

Is there any way to disable calculating custom markers position with transform property, using just top and left properties?

@allenhwkim
Copy link
Owner

You may use z-index https://plnkr.co/edit/WnNdQhWIEPcrk4b4PFRu?p=preview

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants