Ticket #1455 (closed bug: worksforme)
Measure Control does not clear geometry when zooming with mousewheel
| Reported by: | bartvde | Owned by: | tschaub |
|---|---|---|---|
| Priority: | minor | Milestone: | 2.8 Release |
| Component: | general | Version: | 2.5 |
| Keywords: | Cc: | ||
| State: |
Description
This is a follow-up to ticket:1241
We are using persist:true, so the Handler clears the measurent geometry on deactivate of the control AFAICT. So when you select a new tool, it will properly clear the geometry. It will not clear the geometry when zoom using the mousewheel, and the geometry won't scale (it will remain the same size it was).
To work around this I used a zoomend event listener, something like:
map.events.on({"zoomend": function(event) {
if (measure && measure.handler && measure.handler.layer) measure.handler.clear();
if (measure_area && measure_area.handler && measure_area.handler.layer) measure_area.handler.clear();
Ext.get('afstand-field').dom.value = '';
}});
Change History
Note: See
TracTickets for help on using
tickets.
