Good Day
I am having a slight problem with overlapping labels, when creating a tile cache on the fly all the labels display as expected, however when using the Tile Cache Generator i am getting a lot of labels that are overlapping.
Please see the comparisons below, 147 and 148 was created on the fly where 147a and 148a was created with the cache generator.
Here is an example of my label style.
TextStyle SM_7StyleText = new TextStyle();
SM_7StyleText = TextStyles.Capital1(“Name”);
SM_7StyleText.SuppressPartialLabels = true;
SM_7StyleText.Font = new GeoFont(“Verdana”, 7, DrawingFontStyles.Regular);
SM_7StyleText.TextSolidBrush.Color = new GeoColor(0, 0, 0);
SM_7StyleText.BestPlacement = true;
SM_7StyleText.OverlappingRule = LabelOverlappingRule.NoOverlapping;
Apologies if this is not in the correct section of the forum.
Regards
Meyer
147.png (29.9 KB)
147a.png (30.2 KB)
148.png (32.3 KB)
148b.png (32.4 KB)
Label Overlapping Error
Hi Meyer,
Thanks for your post and Welcome to Map Suite Forums! and your question is in the correct section of forums.
As for your question, I just guess if there is a possible that the layer’s style defined is not the same between your client application and the Tile Cache Generator(GetLayersToCache method in LayerProvider.cs)? or even the inserting order of the render layers? would you please check those part codes again?
Also, if you can provide us the two parts codes for us, that would be more easy for us to find out the reason.
Regards,
Troy
Hi Troy
The Styles are exactly the same, I took all the styles from the client application and copied them over to the cache builder so i am 100% they are the same. The order in which they are placed on the map is the same as well.
Regards
Meyer,
From your screenshots, I can see the label images are overlapped by labels. So, would you let me know what’s the labels images from and how all the layers style defined? otherwise it is hard for us to guess where is wrong.
Regards,
Troy
Hi Troy
I have been assigned to a different project for the last few months, however i have been rededicated to this project, I will look into this and get back to you.
Regards
Okay Meyer,
I will wait for your feedback.
Troy