ThinkGeo.com    |     Documentation    |     Premium Support

Overlay Google and shape problem

I've made an application that displays shapes on Google background. It works ok on my development machine but when I it on the web server I do see the map for a second but then it covered with a solid, pink "panel". The problem is not in the Google Maps API Key (I replaced it for my domain) because when I display just the Google background itself - then it's all ok. Below I'm pasting a fragment of the code I use.


 
                LayerOverlay shapeOverlaySiatka = new LayerOverlay("Siatka", false, TileType.SingleTile);
               shapeOverlaySiatka.Layers.Add("PolaAtlasowe", shapePolaPL);
                shapeOverlaySiatka.Layers.Add("Punkty", shapePunktySQL);
                shapeOverlaySiatka.TransitionEffect = TransitionEffect.None;
 
                Map1.CustomOverlays.Add(shapeOverlaySiatka);
                Map1.CustomOverlays.Add(google);

 


Thanks,
Wiesiek

Wieslaw,  
  
 Are you using the latest Web Edition? Please check it with the static property “Map.Version” and the return value should be “MapSuiteCore:3.1.16;WebEdition:3.1.16”.  
  
 Also, can you add google to the customOverlays first and add the layerOverlay next? 
 
 Map1.CustomOverlays.Add(google);
 Map1.CustomOverlays.Add(shapeOverlaySiatka);
 
 If you still have the problem, please provide more codes or send you app to us. You can send to support@thinkgeo.com and ask to forward to Ben if you don’t want to post sensitive data here. 
  
 Thanks, 
  
 Ben