Ticket #1455 (closed bug: worksforme)

Opened 5 years ago

Last modified 5 years ago

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

Changed 5 years ago by euzuro

  • milestone changed from 2.7 Release to 2.8 Release

Mass ticket move out of 2.7 in preparation for a release plan.

If you are actively working on this task, and think that you can help this ticket to get finished and closed by September 1, please move it back to 2.7.

Changed 5 years ago by bartvde

  • status changed from new to closed
  • resolution set to worksforme

I have verified that this has been fixed with OL 2.7. Closing.

Note: See TracTickets for help on using tickets.