ThinkGeo.com    |     Documentation    |     Premium Support

Sharing Layers/Overlays

Hi,


My app contains several WpfMap controls. These controls have some layers in common (Shape files and InMemory Layers).


Can 2 controls share the same layer? can they share the overlay containing the layers?


Thanks,


Ofer



Hi Ofer, 
  
 Yes, two controls can share the same layer, and also can share the same overlay. However, you should notice that exception could be raised if one control has closed one layer, and the other control tried to call the same layer’s function. I think you’d better keep the layer open until the application exits. 
  
 Any more questions please let me know. 
  
 Thanks, 
  
 sun 


1 Like