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

[New Feature]: Separate layer variables for FeatureID, mouseover, and onClick #560

Open
fcalef opened this issue Jun 18, 2024 · 0 comments
Labels
enhancement For making an existing feature better

Comments

@fcalef
Copy link
Collaborator

fcalef commented Jun 18, 2024

Checked for duplicates

Yes - I've already checked

Alternatives considered

Yes - and alternatives don't suffice

Related problems

The "useKeyAsName" layer variable is used for mouseover events and for the Feature ID (unique value at top) in the Info tool. If that property is not meant as a Feature ID, e.g. it contains HTML, it becomes unusable for a Feature ID.

Describe the feature request

I'd like to have separate variables for Feature ID, mouseover, and feature
"onClick" events. Something like:
"useKeyAsName" = For Feature ID
"useKeyAsDisplay" = shows property(s) as a mouseover popup
"useKeyAsID" = uses this property as the unique Feature ID in the Info Tool.

Default option (i.e. no variables defined) works as always with the first feature property for all three events. For backward compatibility, "useKeyAsName" could be kept for mouseover events, but let the first feature property always be the first property in the file.

@fcalef fcalef added the enhancement For making an existing feature better label Jun 18, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement For making an existing feature better
Projects
None yet
Development

No branches or pull requests

1 participant