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

Picking priority #1592

Open
emackey opened this issue Mar 31, 2014 · 15 comments
Open

Picking priority #1592

emackey opened this issue Mar 31, 2014 · 15 comments

Comments

@emackey
Copy link
Contributor

emackey commented Mar 31, 2014

It would be a useful addition to CZML for objects to have a "picking priority" of some sort. @mramato and I discussed possibly an enum (High, Default, Low, None) or a number (where 1 is default, and 0 means don't pick). The viewerDynamicObjectMixin would drill-pick and take the highest-priority pickable object as the picked object.

This feature would be useful for scenes that have a lot of sensor cones, or a single very large sensor cone, for example. The cone(s) can contain multiple objects, and the user may be more interested in picking the interior objects than the cone itself. The cone would get "low" priority (but not un-pickable) and would only get picked if there were no other objects under the mouse.

@shunter
Copy link
Contributor

shunter commented Sep 18, 2014

I recently encountered a use case where I needed this feature as well. I have a CZML with a polyline showing a route and points drawn at each stop. The points are intended to be picked to show the description in the info box, but frequently the pick ends up returning the polyline instead of the point. In my case, I never need to pick the polyline itself.

@ivanprice
Copy link

yep us too.. we're making a measuring tool and it doesn't make any sense that the vertex markers or line are clickable.

@hpinkos
Copy link
Contributor

hpinkos commented Mar 4, 2016

This is something that gets requested in the forum frequently.

https://groups.google.com/forum/?hl=en#!topic/cesium-dev/0XA8qWPQfRE
https://groups.google.com/d/msg/cesium-dev/agtOrHYEhUo/lGlFb5q4EQAJ

@pierotofy
Copy link
Contributor

+1

@dwhipps
Copy link
Contributor

dwhipps commented Oct 6, 2016

I'm going to work on this right now. Should have a PR by tomorrow.

@hpinkos
Copy link
Contributor

hpinkos commented Oct 6, 2016

Thanks @dwhipps! This has been a frequently requested feature, I think a lot of people will be happy to see this added

@rahwang
Copy link
Contributor

rahwang commented Mar 22, 2017

This came up again on the forum: https://groups.google.com/forum/?hl=en#!topic/cesium-dev/wO_LHnTsmJs

@dwhipps
Copy link
Contributor

dwhipps commented Mar 22, 2017

My PR is still open here: #4410

@svenvarennes
Copy link

Any news on this?

@pjcozzi
Copy link
Contributor

pjcozzi commented Dec 30, 2017

@svenvarennes no update on this beyond what is in #4410. Feel free to test, review, and chime in on that PR.

@hpinkos
Copy link
Contributor

hpinkos commented Mar 5, 2019

Also requested by @githubhanjunjun in #7623

@OmarShehata
Copy link
Contributor

@OmarShehata
Copy link
Contributor

Requested again here: https://groups.google.com/d/msg/cesium-dev/NojRg2rnfUg/JwMkEqkQAwAJ

I have a geojson file which i load as a baselayer using viewer.datasource and have several other geojsons that load on top of the baselayer. I want to make the baselayer geojson file not be selected when clicking on the polygon and being shown in the cesium info box. Is there a way to do so.

@DallasHoff
Copy link

+1

@ggetz
Copy link
Contributor

ggetz commented Jan 5, 2023

Also requested in #11022.

@mramato mramato removed their assignment Jan 5, 2023
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