Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zIndex #42

Open
Mackiavelly opened this issue May 18, 2018 · 6 comments
Open

zIndex #42

Mackiavelly opened this issue May 18, 2018 · 6 comments
Assignees

Comments

@Mackiavelly
Copy link
Contributor

The best option is to specify zIndex of the entire ruler when defining, like this:

measureTool = new MeasureTool(map, {
        //contextMenu: false,
        showSegmentLength: true,
        tooltip: false,
        unit: MeasureTool.UnitTypeId.METRIC,
        zIndex: 100,
});
@zhenyanghua
Copy link
Owner

Is this an existing issue? Could you explain it?

@Mackiavelly
Copy link
Contributor Author

I have a map with a huge number of objects and very often objects are superimposed one over another, so that they are beautifully displayed I assign to my objects zIndex (10,20,30, etc.), your ruler always gets zIndex 1 and hence the vertices, the line itself, it turns out under my objects as a result of which the data is simply not visible.

@Mackiavelly
Copy link
Contributor Author

It was great if the ruler was always displayed on top of all objects, but since people can specify any zIndex, it would be super if you could specify a global zIndex for your ruler.

@Mackiavelly
Copy link
Contributor Author

its enhancement, new feature

@zhenyanghua
Copy link
Owner

zhenyanghua commented May 18, 2018

This is a legit suggestion as Google Maps Polygon class has similar options. There are also complications in implementing this feature in this project because the svg elements doesn't work with html elements with z-index. I am open to ideas.

@TsogoS
Copy link

TsogoS commented Apr 6, 2019

Wish it can be improved :). However, some work around by the user is that click on somewhere where there is no object then drag it to the starting point of measurement. Then click on somewhere again not overlapping object and drag it to the ending point of measurement. Then we will have the measurement on top of user's object such as big circle.

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

No branches or pull requests

3 participants