ThinkGeo.com    |     Documentation    |     Premium Support

Shape labels position in MapPrinterLayer

when I work with MapPrinterLayer and Add TextStyle to ShapeFileFeatureLayer, I see text position is not correct and by zoom-in-out it changes, while MapView does not have any problem like this. I think it’s because of x-offset. if I set x-offset=0, everything is fine for me. Is it something that I have forgotten to configure?

Thanks Mahdi,
Could provide us a sample project for this one. This could be very helpful for us to look into more detail.

Thanks
Frank

As I said before when xOffset=0, everything works fine in MapPrinterLayer.

var textStyle = TextStyle.CreateSimpleTextStyle("TrapSite", "Verdana", 8, DrawingFontStyles.Bold,
                GeoColors.Black, GeoColors.White, 2, xOffset: 0, 2);
textStyle.Alignment = DrawingTextAlignment.Center;

image

but if xOffset != 0 the offset change by zoom level change

Level 8:
image

Level 12:
image

Level 15:
image

You can see the offset change during the zoom level change.

Hi Mahdi_Rastegari,
We are working on it and will keep you updated.
Thanks,
Jack

Hi Mahdi_Rastegari,
We have fixed the issue in ThinkGeo.Printers version 13.0.0-beta197, and the package will be available to download in NuGet tomorrow morning.
Thanks,
Jack