-
Notifications
You must be signed in to change notification settings - Fork 229
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
How do I select a feature in a cluster #226
Comments
So I manage to do the selection with the following call: this.$refs.interaction.select(this.$refs.clusterLayer.getSourceTarget().values_.source.getFeatures()[0]) Is there a more concise way to the feature? |
Hello @panchofrank ,
I'll try to release patch as soon as possible. |
- resolved #132 #224 #225 #226, #230 - simplified initial interaction/controls setup #95 - added `id` property for all ol components for easy identification - mixins, ol-ext and rx-ext now are build to single file package, imports from those packages are not changed - UMD version (dev/demo version) now includes all used stuff from `ol` package
- resolved #173, #174, #201, #135, #216, #132 #224 #225 #226, #230 - merged of pull requests #160, #175, #180, #185, #188, #191, #206, #208, #212, #213, #215, #221, #227, #231 Thanks to @baspeeters, @sjmallon, @janlazo, @categulario, @skymaze, @jemasfox, @owen-thurston, @agmt5989, @RemiDesgrange - improved property watchers - optional debug messages - fixed broken UMD version - simplified initial interaction/controls setup #95 - added `id` property for all ol components for easy identification - mixins, ol-ext and rx-ext now are build to single file package, imports from those packages are not changed - UMD version (dev/demo version) now includes all used stuff from `ol` package - updated documentation and README
- resolved #173, #174, #201, #135, #216, #132 #224 #225 #226, #230 - merged of pull requests #160, #175, #180, #185, #188, #191, #206, #208, #212, #213, #215, #221, #227, #231 Thanks to @baspeeters, @sjmallon, @janlazo, @categulario, @skymaze, @jemasfox, @owen-thurston, @agmt5989, @RemiDesgrange - improved property watchers - optional debug messages - fixed broken UMD version - simplified initial interaction/controls setup #95 - added `id` property for all ol components for easy identification - mixins, ol-ext and rx-ext now are build to single file package, imports from those packages are not changed - UMD version (dev/demo version) now includes all used stuff from `ol` package - updated documentation and README
@ghettovoice Hi! How are you? I am working on a map which I need to show the elements grouped by cluster, but I must also show the lines that join the points (LineString) only when the points are visible and not grouped |
Hi @alejandrosuarez231 , |
Hello,
I'm trying to programmatically select a feature that is in a cluster: https://jsfiddle.net/Francoisgaudin/2bxdjuwg/
When I select the feature by clicking on it we see that the feature appears in an array as a field in another feature. I guess that other feature represents the cluster and it has a generated id. When we enter that ID in the jsfiddle text box and attempt to select by pressing the button nothing happens.
Also I can't find the cluster features using a getFeatures call on the source of the layer.
What am I doing wrong?
The text was updated successfully, but these errors were encountered: