Hello,
I have noticed that sometimes ThinkGeo WPF view renders horizontal or vertical lines between map tiles, when using ThinkGeo Cloud maps or some other web maps (WMS or WMTS layers). This can be easily reproduced by making small adjustments to the tutorial at https://gitlab.com/thinkgeo/public/thinkgeo-desktop-maps.
I have made these customizations to the code:
-
Changed the window size in XAML (for some reason with these settings the problem is more evident than with some other window sizes):
Title="MainWindow" Height="1272" Width="875">
-
Modified the mapView_Loaded method like this:
private void mapView_Loaded(object sender, RoutedEventArgs e) { // Set the Map Unit. mapView.MapUnit = GeographyUnit.Meter; // Add a base map overlay. var cloudVectorBaseMapOverlay = new ThinkGeoCloudRasterMapsOverlay("USlbIyO5uIMja2y0qoM21RRM6NBXUad4hjK3NBD6pD0~", "f6OJsvCDDzmccnevX55nL7nXpPDXXKANe5cN6czVjCH0s8jhpCH-2A~~", ThinkGeoCloudRasterMapsMapType.Dark); mapView.Overlays.Add(cloudVectorBaseMapOverlay); var bb = cloudVectorBaseMapOverlay.GetBoundingBox(); if (bb != null) { bb.ScaleDown(90); mapView.CurrentExtent = bb; } mapView.Refresh(cloudVectorBaseMapOverlay); }
As a result, the map looks like this:
It looks like the white background color is showing between the tiles. Same problem is seen also with WMS and WMTS, but this is the easiest way to get it visible. Any ideas how to fix this?
Thanks, Rasmus