pointerMove select style is not rendered / Selected Objects type LineString
See original GitHub issueDescribe the bug
-
Select style is not rendered immediately - only after zoom event is triggered [style given via style attribute of
Select()
with condition pointerMove] -
When binding to ‘select’ of the pointerMove-
Select()
the given objects ine.selected
are of type “LineString” and therefor not styleable viasetStyle()
[“.setStyle() is not a function
”]
To Reproduce
-
When zooming with the cursor above a selectable line the select-style is rendered but without zooming it isnt.
-
Console out
getType()
of the objects inside ofe.selected
=> “LineString”
Expected behavior
-
Immediate render of select-Style on pointerMove/Hover
-
Expected the objects in
e.selected
to be features to callsetStyle()
System
- Angular 8.0.3
- ol 5.3.3
Screencast
Issue Analytics
- State:
- Created 4 years ago
- Comments:5 (1 by maintainers)
Top Results From Across the Web
Pointermove select event works but not the click select in ...
I am drawing linestring and point feature types on separate vector layers. ... The example shows different types of Select interaction.
Read more >OpenLayers v7.2.2 API - Module: ol/interaction/Select
A function that takes an Feature and returns true if the feature may be selected or false otherwise. Options{Object}. Properties: Name, Type ......
Read more >Selecting only specific features not all, and dragging and ...
Yes it works fine, but I would like to select features based on pointermove not click, in that example I need first select...
Read more >Editing Massive Geospatial Data Sets with nebula.gl | Uber Blog
For users who need geospatial drawing on a map but not deck.gl's massive data rendering technologies, this is a great option. Check this ......
Read more >VS Code API | Visual Studio Code Extension API
However, when invoking an editor command not all argument types are supported. ... Namespace for participating in language-specific editor features, ...
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
You cannot
setStyle()
on aRenderFeature
, which is the default feature class forol/source/MVT
. If you want to go that route, you need to configure your source like thisThanks! That solved the problem; So not an Issue! (closed)