chellymehdi / vopenlayers

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

RemoveAllComponents on MarkerLayer is not working #21

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Add some  markers to a marker layer
2. let it repaint
2. Remove all components later on and add new markers in the same step.

All the old markers remain on the screen. Clicking on a marker yields this 
message:
     [exec] 15:33:06,406 WARNING [com.vaadin.terminal.gwt.server.AbstractCommunicationManager.handleVariableBurst] Warning: Ignoring variable change for non-existent component, VAR_PID=PID527

Original issue reported on code.google.com by merke...@gmail.com on 26 May 2011 at 7:39

GoogleCodeExporter commented 9 years ago
I should mentioned that I just downloaded the latest version this morning; I 
think it's r51 or so.

Original comment by merke...@gmail.com on 26 May 2011 at 7:41

GoogleCodeExporter commented 9 years ago
Work around is to remove  the entire layer and then add a new one. 
Unfortunately replaceComponent doesn work, so you need to use addLayer, 
removeComponent.

Original comment by merke...@gmail.com on 26 May 2011 at 8:58

GoogleCodeExporter commented 9 years ago
Hi,

removing markers was not implemented at all. I quickly typed in an 
implementation in r54, but didn't test it.

Can you either provide a small test app or test that the implementation works 
in you application.

Let me know if you can't build a snapshot with "mvn install" from SVN. I'll 
build you a snapshot revision in this case.

BTW. We should make and start using Vector layers based "markers" instead of 
the original Marker layer. OpenLayers fellows have marked MarkerLayer as 
deprecated nowadays.

cheers,
matti

Original comment by matti.ta...@gmail.com on 11 Jul 2011 at 9:26