-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Allow changing the feature.mouseover order.
Add an event that allows changing the selection order for feature.mouseover. Also, add two common handlers for such ordering. Specifically, the geo.event.feature.mouseover_order event is triggered if the mouse is located on multiple elements of a feature. The `feature.mouseOverOrderHighestIndex` function will always sort these so that the highest index element is on top. The `polygonFeature.mouseOverOrderClosestBorder` function will sort polygons so that they are sorted based on how far the mouse is from their borders, with the closest on top. Note that, as always, the mouse must be within the polygon for it to be considered.
- Loading branch information
Showing
5 changed files
with
200 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters