chellymehdi / vopenlayers

Automatically exported from code.google.com/p/vopenlayers
0 stars 0 forks source link

Selection does not work after removing PointVector #37

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?

1. Launch the attached web application. (It is a modified version of 
vopenlayers' exampleapp with 3 PointVectors on the map.)
2. Click the leftmost PointVector to select it. As a result it turns blue and 
we get a VectorSelectedEvent.
3. Click the "Remove" button in the top left corner of the page. As a result, 
the selected PointVector disappears but we get neither VectorModifiedEvent nor 
VectorUnSelectedEvent.
4. Click one of the remaining 2 PointVectors to select it. As a result, it is 
NOT selected and we get no VectorSelectedEvent.

What is the expected output? What do you see instead?

As a result of step 3, I would expect an event about the modification (removel) 
and a VectorUnselectEvent, and further PointVector clicks should select the 
clicked vectors with appropriate events.

What version of the product are you using? On what operating system?

Vaadin 6.7.1; vopenlayers 0.9.1; Linux (Ubuntu)

Please provide any additional information below.

After step 4, the following steps bring back the selection:

5. Drag one of the 2 PointVectors to move it.
6. Click on the other PointVector. As a result, the vector is selected and we 
get several events as if they had been queued and sent at once when the 
selection eventually succeeded.

Original issue reported on code.google.com by rga...@gmail.com on 10 Nov 2011 at 12:39

Attachments:

GoogleCodeExporter commented 9 years ago
I have a solution to this issue and attached a patch (on top of vopenlayers 
0.9.1), which can hopefully be used by the project. The patch contains the 
following features:

1. A VectorLayer can be set immediate so that modifications within the layer 
can be communicated to the server as soon as one releases the vector and one 
does not have to click on another object for VectorModifiedEvents to be sent to 
the server.
2. A vector can be deleted and selections continue to work
3. The following additional commands can be initiated from server-side:
   * click
   * select/unselect
   * highlight/unhighlight
4. Some additional setXXXByAttribute methods are added to Style.

Please, review the patch and use it if you find it OK.

Original comment by rga...@gmail.com on 19 Nov 2011 at 8:21

Attachments:

GoogleCodeExporter commented 9 years ago
hi,
I have merged your patch and send it to Matti for approval.
I believe that it will be available on the next release.

cheers,
giancarlo

Original comment by giancarl...@gmail.com on 13 Dec 2011 at 10:20

GoogleCodeExporter commented 9 years ago
This issue was closed by revision r111.

Original comment by matti.ta...@gmail.com on 16 Dec 2011 at 4:34