ThinkGeo.com    |     Documentation    |     Premium Support

IsVisible question

I have just updated to RC1, and went directly to Version 3.14.    I had the same basic issues as others as regards the change to overlays, etc, but I got most of the app to work.    I'm doing all of my work with custom FeatureSources and custom FeatureLayers.


In the initial conversion, I got some base layers to draw, but could never get one special layer to draw.    I decided to update the IsVisible logic on the layers by using the new Override that you provided.   Now, with just that one change to my layer implementation (and yes, IsVisible is returning true), I no longer get any maps to draw.   I've put a breakpoint in the IsVisible_Get property, and it is being hit.  


You did not provide an IsVisibleCore override... just IsVisible.   Do I need to be calling base.IsVisible for any reason within my override?


I have also put a breakpoint in my custom FeatureSource.GetAllFeaturesCore, and I am correctly returning a Features collection with the right count for each of the layers that should be drawing.   


At this point, I don't have any idea how to proceed.



Never mind… looks like I have lots of issues with getting projections open in this version, now.

Ted, 
  
 Thanks for your post; this public release (3.0.307 RC) is a great change from last public release (3.0.256). 
  
 1. I want to make sure what version you are using by trying following statement and paste out the string. Because I still not very clear which version you are using now. 
  
    string versionString =  WinformsMap.GetVersion(); 
  
 2. I am wondering whether you are develping a Threading realated App or just using a single thread for your App? 
  
  
 For the first question, when you create your own Layer  and override the IsVisible property, basically you do not need to call the base. IsVisible. If you still have problem for your own created Layer, could you paste out your code or give us a simple demo to use it, we can help you to review it. 
  
 About the second problem, open the projection throwing exceptions. I suggest you trying not to use the same shard Projection class for many layers. There would be potential problem for this because we use another threading to draw, in which it will close the projection while some other layers may be trying to use it. 
  
 Any all, if you want, you can send us some code which we can recreate the problem, we can help you out, Sorry for the inconvenience. 
  
 Thanks. 
  
 Yale