ThinkGeo.com    |     Documentation    |     Premium Support

Google Maps

I can’t load Google map as Base Overlay . (Map is blank) , with Bing Maps  I have no issue 



Here is my code:



void MainPage_Loaded(object sender, RoutedEventArgs e)
        {
            Map1.MapUnit = GeographyUnit.DecimalDegree;
            
           // baseOverlay = new BingMapsOverlay(“Bing”, “AvlJLW2R2HwUGZD6p6v_KjSt7hggZZwtkjlP5JFoX8I2aPKLW4nKiKTO9Tg7Gajs”, BingMapsStyle.Aerial);
           var baseOverlay = new GoogleOverlay
               {
                   ApiKey = “AIzaSyDUxusDqW2-n3-uF59rBM4DAaCNSECCW2g”,
                   Name = “gg”,
                   TileType = TileType.MultipleTile,
                   GoogleMapType = GoogleMapType.Satellite,                
               };


            Map1.Overlays.Add(baseOverlay);



           Map1.CurrentExtent = new RectangleShape(-134.7, 82.6, 112.5, -51);  
        }







Hi Yan, 
  
 Thanks for your post and Welcome to Map Suite forums! 
  
 I checked the codes and found there are some issues. Once we are using the Bing or Google layer, the map unit should be the meter rather than Decimal Degree and so does the current extent. So, would you please change the mapunit as Meter and then set the current extent as for example “new RectangleShape(-13939426.6371, 6701997.4056, -7812401.86, 2626987.386962);” 
  
 If there is any question, do not hesitate to let us know. 
 Thanks, 
 Johnny