forked from fleaflet/flutter_map
-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Increase scope of polygon draw batching for polygons with labels (fle…
…aflet#1607) * Polygon labels are expensive. Add a layer-level switch to disable labels to allow reusing the same polygons while toggling the labels, e.g. depending on zoom level. Also a bunch of small optimizations to minimize canvas operations (save/restore) and reduce strain on garbage collection (fewer ephemeral allocations) * Improve scope of polygon draw batching by flushing polygons with labels only if the label would actually be drawn, as determined by the layouting algorithm.
- Loading branch information
Showing
2 changed files
with
92 additions
and
73 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