Opened 15 years ago

Closed 15 years ago

Last modified 15 years ago

#1186 closed defect (fixed)

When the Measure clear and stopped but the layer still shows in the Layers box

Reported by: tenswell Owned by: chrisclaydon
Priority: low Milestone: 2.2
Component: AJAX Viewer Version: 2.0.2
Severity: trivial Keywords:
Cc: External ID: 1285119

Description (last modified by tomfukushima)

steps:

  1. open a studio
  2. connect to a Linux server
  3. open a basic web layout in Firefox
  4. click Task
  5. select Measure Distance
  6. point a start and a stop in the map.
  7. clear measure and stop

result: The measure layer still shows in the Layer box.

expected: The measure layer should disappear.

Attachments (2)

measure.PNG (156.0 KB ) - added by tenswell 15 years ago.
patch1186.patch (6.2 KB ) - added by liuar 15 years ago.

Download all attachments as: .zip

Change History (9)

by tenswell, 15 years ago

Attachment: measure.PNG added

comment:1 by liuar, 15 years ago

Component: GeneralAJAX Viewer

[Analysis]
The measure layer is not removed from layer collection of current map after clear.

[resolution]
Remove the measure layer while user click clear button.

[Affected Files]
mapviewerphp/measure.php
mapviewernet/measure.aspx
mapviewerjava/measure.jsp

comment:2 by liuar, 15 years ago

[Follow up] Create a new layer while user start a new measure

comment:3 by tomfukushima, 15 years ago

Owner: set to chrisclaydon

comment:4 by tomfukushima, 15 years ago

Description: modified (diff)

by liuar, 15 years ago

Attachment: patch1186.patch added

comment:5 by christinebao, 15 years ago

Arthur has tested in PHP, DotNET and JSP viewer.
The code looks good.

comment:6 by liuar, 15 years ago

Resolution: fixed
Status: newclosed

comment:7 by brucedechant, 15 years ago

Milestone: 2.2

Fixed in trunk. See submission r4460

Note: See TracTickets for help on using tickets.