Hi Hartwig,
I can’t reproduce your issue with your tiff data, as a sample:
private void LoadAGeoTiffImage_Load(object sender, EventArgs e)
{
winformsMap1.MapUnit = GeographyUnit.Meter;
winformsMap1.BackgroundOverlay.BackgroundBrush = new GeoSolidBrush(GeoColor.GeographicColors.ShallowOcean);
GeoTiffRasterLayer worldImageLayer = new GeoTiffRasterLayer(@"..\..\Data\gisME\Denklingen comp.tif");
LayerOverlay ImageOverlay = new LayerOverlay();
ImageOverlay.Layers.Add("WorldImageLayer", worldImageLayer);
winformsMap1.Overlays.Add(ImageOverlay);
winformsMap1.ZoomLevelSet = GetCustomZoomLevelSet(1000);
winformsMap1.CurrentExtent = new RectangleShape(405326.52244, 5641546.10818, 405333.537718, 5641537.417031);
InMemoryFeatureLayer imLayer = new InMemoryFeatureLayer();
Feature feature = new Feature("MULTIPOLYGON(((405328.198312019 5641542.1718303,405330.536737876 5641543.6918071,405333.537717725 5641539.01495539,405331.277239397 5641537.41703106,405328.198312019 5641542.1718303)))");
imLayer.InternalFeatures.Add(feature);
imLayer.ZoomLevelSet.ZoomLevel01.DefaultAreaStyle = new AreaStyle(new GeoPen(GeoColor.SimpleColors.Blue, 2.0f));
imLayer.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20;
ImageOverlay.Layers.Add(imLayer);
InMemoryFeatureLayer im = new InMemoryFeatureLayer();
im.InternalFeatures.Add(new Feature(winformsMap1.CurrentExtent.GetCenterPoint()));
im.ZoomLevelSet.ZoomLevel01.DefaultPointStyle = PointStyles.City1;
im.ZoomLevelSet.ZoomLevel01.ApplyUntilZoomLevel = ApplyUntilZoomLevel.Level20;
ImageOverlay.Layers.Add(im);
winformsMap1.Refresh();
}
private ZoomLevelSet GetCustomZoomLevelSet(double initialScale)
{
ZoomLevelSet zoomLevelSet = new ZoomLevelSet();
zoomLevelSet.CustomZoomLevels.Add(new ZoomLevel(initialScale));
zoomLevelSet.CustomZoomLevels.Add(new ZoomLevel(initialScale / 2));
zoomLevelSet.CustomZoomLevels.Add(new ZoomLevel(initialScale / 4));
zoomLevelSet.CustomZoomLevels.Add(new ZoomLevel(initialScale / 8));
zoomLevelSet.CustomZoomLevels.Add(new ZoomLevel(initialScale / 16));
zoomLevelSet.CustomZoomLevels.Add(new ZoomLevel(initialScale / 32));
zoomLevelSet.CustomZoomLevels.Add(new ZoomLevel(initialScale / 64));
zoomLevelSet.CustomZoomLevels.Add(new ZoomLevel(initialScale / 128));
zoomLevelSet.CustomZoomLevels.Add(new ZoomLevel(initialScale / 256));
zoomLevelSet.CustomZoomLevels.Add(new ZoomLevel(initialScale / 512));
return zoomLevelSet;
}
This is the initialized position:
When I pan the map to south:
I’m working on the map suite version 9.0.360.0, you can download it from https://ap.thinkgeo.com:5001/sharing/UBWxEECcc.
I guess it caused by a projection issue, can you send your sample to me?
Thanks,