ThinkGeo.com    |     Documentation    |     Premium Support

Refresh only one overlay when panning?

Hello,


I have 2 overlays : 1 GeoTiff overlay, and 1 inMemoryFeature overlay.


When I pan, both overlays are refreshed. That means that the inMemoryFeature overlay is empty, and is not displaid while the GeoTiff overlay is full loaded from server.


Is it possible to refresh only the GeoTiff layer when panning, so that there is not this "blinking effect" for the feature layer ?


(I hope my explanations were clear enough)


Thanks,


Guillaume.



Guillaume,


Thanks for your post and explainations . Could you try to set the inMemoryFeature Overlay to non-visable? 
 

inMemoryFeatureOverlay.IsVisible = false;

 
Any more questions just feel free to let me know.
 
Thanks.
 
Yale

Hello, 



Thank you for your quick answer.

As I thought, my explanations were really really bad. I must really improve my english one day :-) 

I'll try to explain it with an example : 



I have a map, with 2 overlays : the first contains a GeoTiff layer, and the second contains a InMemoryFeature layer. Both have to be displayed. This works good, no problem. 

I pan, in order to move the map a little to West for example. When I realease the mouse button, this happens : 

- The InMemoryLayer is not visible anymore. 

- The new background map is asked from server (this last about 1 second) 

- The new background is then drawn 

- Then the InMemotyLayer is drawn. 



The "problem" (it is not really a problem, but a visual effect), is that while the server call (for a new background), the InMemoryLayer is not visible any more. And when the background is already in client cache, it goes faster, but however the InMemoryLayer is refreshed, and so there is some "blinking effect".  

I would like to know if it is possible to refresh only the new features (for the area of the map that was not displayed before), so that the already drawn features are not refreshed, and there is no "blinking". 



I hope you undertand what I mean, 

Thanks, 

Guillaume.



Guillaume, 
  
 This is a issue for MultiThread mode, you have put it to our working item. Hope next release we can fix it. 
  
 If you want to implement your function, you can switch ThreadingMode to single, that can work. 
  
 Please let me know if you have more questions. 
  
 Thanks. 
  
 James

Thank you for your Answer, James. 
  
 I can’t switch to single threading mode, because I already use previewtiles cache (and multithreading is required so far I remember), and multithreading mode is really what I want, because the server data can be really huge, so I really want the server call to be asynchronous. 
  
 But that is not a problem for now, I can implement our realease without this functionality. 
 I hope your will include this feature in your next release, because that will really bring a prettier effect when you pan. 
  
 Thanks again, 
 Guillaume.

Guillaume, 
  
 We will let you know when next version release. 
  
 Thanks. 
  
 James