# IsVisible question

**URL:** <https://community.thinkgeo.com/t/isvisible-question/492>\
**Category:** WinForms\
**Created:** [June 22, 2009, 3:10pm UTC](https://community.thinkgeo.com/t/isvisible-question/492 "2009-06-22T15:10:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ted](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/t/db5fbb/32.png) [@Ted](https://community.thinkgeo.com/u/Ted)\
**Post date:** [June 22, 2009, 3:10pm UTC](https://community.thinkgeo.com/t/isvisible-question/492/1 "2009-06-22T15:10:05Z")

</div>

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

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

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

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

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

---

<div class="post-metadata">

**Author:** ![Ted](https://community.thinkgeo.com/letter_avatar_proxy/v4/letter/t/db5fbb/32.png) [@Ted](https://community.thinkgeo.com/u/Ted)\
**Post date:** [June 22, 2009, 3:28pm UTC](https://community.thinkgeo.com/t/isvisible-question/492/2 "2009-06-22T15:28:47Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![ThinkGeo](https://community.thinkgeo.com/user_avatar/community.thinkgeo.com/thinkgeo/32/25029_2.png) [@ThinkGeo](https://community.thinkgeo.com/u/ThinkGeo)\
**Post date:** [June 22, 2009, 7:53pm UTC](https://community.thinkgeo.com/t/isvisible-question/492/3 "2009-06-22T19:53:16Z")

</div>

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