ThinkGeo.com    |     Documentation    |     Premium Support

GoogleMapsLayer Static image not filling map area

We are attempting to upgrade from Map Suite MVC Edition version 8 to version 9 and having issues with using Google Static Maps for printing.  For printing purposes we are using the GoogleMapsLayer and adding it to the maps StaticOverlay.  We set the GoogleMapsLayer TileMode to SingleTile.  In this scenario we have a map with a width of 1500px and height of 767px and we set the GoogleMapsLayer Tile width and height to the same dimensions.  When looking at the Google Static Map request URL the dimension in most cases would not match the 1500x767 that was set which in Version 8 (see url generated below) was ok because it would "stretch" the Google tile to fit into the 1500x767 map and it would render correctly and align with other layers placed on the map.  However, in Version 9 this appears to have changed and no longer stretches the Google Tile and instead places the tile in the center of the map with the exact dimension of the Google Tile image requested and returned. 


We are using the 9.0.0.255 production build. 


Map Suite Version 8 behavior:


Google Static Image Request generated:  maps.googleapis.com/maps/api/staticmap?center=40.894881,-100.719623&zoom=13&size=1149x587&maptype=hybrid&format=jpg-baseline&sensor=false&client=gme-xxxxxxxx&signature=BodLKBONG3V1T35i7hsD121DJvg=


 The result of the Google Tile placed on the map can be seen in the attachment "MapSuite8_GoogleTileFillingCorrectly.PNG" which is correct and what we would expect.




Map Suite Version 9 behavior:


Google Static Image Request generated:  maps.googleapis.com/maps/api/staticmap?center=40.894881,-100.719623&zoom=13&size=1149x587&maptype=hybrid&format=jpg-baseline&sensor=false&client=gme-xxxxxxxx&signature=BodLKBONG3V1T35i7hsD121DJvg=


*note:  this genareated request is identical to the Version 8 request above


The result of the Google Tile placed on the map can be seen in the attachment "MapSuite9_GoogleTileNotFilling.PNG" which is not correct.






Thanks

Greg



Hi Greg, 
  
 Please see the ticket you created.  
  
 Thanks, 
 Peter