ThinkGeo.com    |     Documentation    |     Premium Support

Map appears white until user clicks

I'm hoping you can help me with something. When I first load up the map, I load up several layers and a google layer and then have a map.Refresh() command. The map has started just loading up all white and it's not until the user clicks on something that the map actually appears. I've left it in the default threading mode and it used to be that as soon as you loaded the map, the google part would appear and then the database layers would show up a bit later. Now, it's just white.


Any pointers you can give me on making the map show up without the user having to click on it? Anyone else run into this?


Thanks,


Kimberly



Kimberly,


I made a demo in the attachment according to your description, which loads GoogleOverlay as the base, then on the top, I added 1 layer from SqlServer2008 as well as 2 InmemoryLayers, can you run this sample to see it can show the map after it loads the map(you probabbly need to change the sql server connection string).
 
This sample is build based on public release 3.0.362 RC.
 
Let me know if any more questions.
 
Thanks.
 
Yale

1053-Post6146.zip (10.9 KB)

I’m slow to respond on this, but yes, I can see that map w/o clicking anything. Anything else you can tell me? Certainly, my map is a whole lot more complicated that then one you showed. I’ve looked at the code and compared it to mine. I’ve looked through my code for a couple months now trying to figure this out and nothing is helping. I did add the code to have the background brush like you have in the sample. With that, the map still shows up white until I click. Then I get the background color and then after a bit the map shows. I’m not sure if knowing that would help, but maybe that will tell you something. I have extracted all the loading of overlays and their layers to another class.  
  
 Any chance you have an idea of something else for me to try?  
  
 Thank you, 
 Kimberly

Kimberly, 
  
 Thanks for letting us your status. 
  
 Which version of Desktop Edition are you trying to use now? It is 3.0.362 RC2 or last public release 3.0.426? 
  
 Did you implement the MapClick event in your application? 
  
 Can you try to remove all the overlays just keep the background color and load it to see the background will show before your click on the Map?  
  
 Your any more information would be appreciated. 
  
 Thanks. 
  
 Yale