ThinkGeo.com    |     Documentation    |     Premium Support

Version 3.3.16 CustomOverlays Exception

Just upgraded from version 3.1.0 to 3.1.16.  I now get an exception:


ArgumentException: If you use the CustomOverlays collection you may not at the same time use the following properties:  BackgroundOverlay, StaticOverlay, DynamicOverlay or MarkerOverlay.  CustomOverlays was designed to replace these so that you can implement as many overlays as you need in any order.  Trying to use CustomerOverlays and one of the properties above is not allowed as there is not a definitive logical order we could draw them in.  Please reference to the documentation of CustomOverlays property for more information.]

   ThinkGeo.MapSuite.WebEdition.x6d719af406ea4c2c.x96c23d4ba609dcf0(GeoKeyedCollection`1 x3dea192c7f76c767, Overlay x3de25dce5f2afe10, Overlay x43989140681b4ed6, Overlay x59c9af40fe40a058, MarkerOverlay x12602c8f059adbaf) +157

   ThinkGeo.MapSuite.WebEdition.Map.OnPreRender(EventArgs e) +497

   System.Web.UI.Control.PreRenderRecursiveInternal() +80

   System.Web.UI.Control.PreRenderRecursiveInternal() +171

   System.Web.UI.Control.PreRenderRecursiveInternal() +171

   System.Web.UI.Control.PreRenderRecursiveInternal() +171

   System.Web.UI.Control.PreRenderRecursiveInternal() +171

   System.Web.UI.Control.PreRenderRecursiveInternal() +171

   System.Web.UI.Page.ProcessRequestMain(Boolean includeStagesBeforeAsyncPoint, Boolean includeStagesAfterAsyncPoint) +842


As far as I know I am not using any of the mentioned...just customoverlays? 






 


Tony,


You mean you are using CustomOverlays only but still have this exception? That's strange, can you show me your code? You can also send to support@thinkgeo.com and ask to forward to Ben if you want.


Thanks,


Ben




I am only using CustomOverlays.  Have sent the code via e-mail.  Please let me know.  Thanks.



Tony, 
 I got your file and found you are using MarkerOverlay at line 2921, in method DisplayNewSiteImage(string siteName) 
 
 FindMap.MarkerOverlay.Features.Clear();
 
 Please remove that line. 
  
 Thanks, 
  
 Ben

Sorry about that.  This was left over from a previous version.  This now works. 


One thing to note, it seems with the 3.3.16 version that when I add a InMemoryMarkerOverlay Column (Columns.Add) and do not set the column value, upon display in an updatepanel, I get a JScript error.  In the previous version this was not the case.


Again, thanks for all your help.



I recreated that problem and we will solve it in the next version. Thanks for pointing that out, Tony. 
  
 Ben