Refactoring for better layer management

The only feature on the temporary layer is now the
vertexFeature, and the temporary layer's style is dynamically
changed to the style of the layer whose segment is being edited
(the topmost layer if more than one segment are being edited).
With this simplification, we can also put all segments on a
single RTree. Finally, we no longer rely on structures set on
layers - all we need is now on the instance itself.

This refactoring also changes the way we define layers to
participate in modification - by using an array or a filter
function, or assuming all layers if no layers property is set.
This commit is contained in:
ahocevar
2013-11-12 16:51:24 +01:00
parent 06406d968f
commit 39a5a8e291
4 changed files with 324 additions and 200 deletions

View File

@@ -44,6 +44,7 @@
</div>
<script src="loader.js?id=modify-features" type="text/javascript"></script>
<script src="../resources/example-behaviour.js" type="text/javascript"></script>
</body>
</html>