Hi,
We experience that every time MapSuite ask Google Maps for a map with a width more than 2048 wide, blank areas is showing on the left and right of the map:
Example:
Fail:
GET /maps/api/staticmap?center=56.203937,11.868734&zoom=11&size=2604x1543&maptype=hybrid&format=png32&sensor=false&client=
Returned from google: 2048x1543
Zoome once more using mouse wheel:
Valid:
GET /maps/api/staticmap?center=56.150452,11.816966&zoom=11&size=1562x926&maptype=hybrid&format=png32&sensor=false&client=
Returned from Google: 1562x926
Google can only return 2048 using our license and every time Mapsuite request a map bigger than 2048 in width, the problem is there.
Can this be resolved?
Kind regards
Jesper Friis
SEGES
Code used for example:
WindowState = FormWindowState.Maximized;
m_Map.MapUnit = GeographyUnit.Meter;
m_Map.BackgroundOverlay.BackgroundBrush = new GeoSolidBrush(GeoColor.StandardColors.Red);
GoogleMapsLayer worldLayer = new GoogleMapsLayer();
worldLayer.ClientId = SomeClientId
worldLayer.PrivateKey = SomePrivateKey
worldLayer.MapType = GoogleMapsMapType.Hybrid;
worldLayer.TileMode = GoogleMapsTileMode.SingleTile;
worldLayer.PictureFormat = GoogleMapsPictureFormat.Png32;
LayerOverlay worldOverlay = new LayerOverlay();
worldOverlay.Name = “WorldOverlay”;
worldOverlay.IsVisible = true;
worldOverlay.Layers.Add(“WorldLayer”, worldLayer);
GoogleMapsZoomLevelSet zoomLevelSet = new GoogleMapsZoomLevelSet();
zoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20;
m_Map.ZoomLevelSet = zoomLevelSet;
m_Map.Overlays.Insert(0, worldOverlay);
m_Map.ZoomLevelSnapping = ZoomLevelSnappingMode.None;
var m_GoogleMapProjection = new Proj4Projection();
m_GoogleMapProjection.InternalProjectionParametersString = Proj4Projection.GetEpsgParametersString(25832);
m_GoogleMapProjection.ExternalProjectionParametersString =
Proj4Projection.GetGoogleMapParametersString();
m_GoogleMapProjection.Open();
var m_MaxExtent = new RectangleShape(440000, 6406000, 895000, 6041000); // minX, maxY, maxX, minY - Denmark
m_Map.CurrentExtent = m_GoogleMapProjection.ConvertToExternalProjection(m_MaxExtent);
m_Map.Refresh();