comparison client/src/main.js @ 1237:74562dc29e10

refactored drawtool The map interactions (ol/interaction/Draw) were previously always removed and re-created. Now there are created and added to the map once and their active flag is used to toggle the tools. Results in cleaner code and easier separation of the buttons in the future.
author Markus Kottlaender <markus@intevation.de>
date Tue, 20 Nov 2018 13:03:24 +0100
parents fb5c83d4ea1d
children 24797f66f268
comparison
equal deleted inserted replaced
1236:ec4b06d3a3a8 1237:74562dc29e10