ThinkGeo.com    |     Documentation    |     Premium Support

Background Maps Broken

I've tried both Google and Yahoo background maps and both appear to be non-functional in the latest beta 3.0.2.0. This appears to be broken in the sample applications as well. If I open the thematic mapping example there is no background Yahoo map.


Bob Mc.



Bob, 
  
 Do you get any type of error?  Do the background maps work correctly under any of the Samples in the Layers section? 
  
 I wasn’t able to recreate it on my machine; any additional information to help us get the bottom of this would be appreciated. 
  
 Thanks! 
 

David, I appear to have solved the problem.


When I tested the new beta using my code and the Thematic Mapping sample the Google background didn't display, as I noted in my first message. I did not receive any error, just no Google map background.


When I tested using the Layers sample as per your suggestion, the Google maps appeared. Strange. So I added a layer switcher to my application and when I expanded it there were two layers, the Google Map layer and a static layer. The static layer is added from the AddLayersForSimpleRenderUSA method I copied from the Helper class in the Sample project. So it appears that the static layer was overlaying the Google Map layer, which did not happen in prior betas.


I'm not sure if this explains everything completely. Please let me know if you have further questions.


Bob Mc.



Thanks Bob,  
  
 When you add Static Layers this will be like another Map Set to switch between using the Layer Switcher, if you want to display shapes on top of Google you would need to add them to the DynamicLayers collection instead of the StaticLayers collection of the map.  One thing to be aware of is that the Google Map uses a different projection than geodectic, so unless you reproject your shapefile it most likely won’t line up when zoom way out. 
  
 Currently it seems that there are some issues with reprojecting the shapefile to the Google projection with the Beta, we are working to iron these out now so when you zoom out they line up correctly. 
  
 Thanks!