03-29-2019 07:29 AM
I have created several vector services based on polygon features.
I have created styles in Vector Style Editor, but now I have a problem with labels.
Label is always placed on center of polygon and if I see part of polygon on nmap label is not visible
Is there any way to make label visible even in case that only part of polygon is visible on map?
04-09-2019 04:55 AM
In Vector Style Editor it works fine. Label is not fixed to center of polygon. If I move the map, and if I see only part of polygon, label is shown on the map.
But, after deploy services to directory, this doesn't work in Geospatial Portal or in other client.
Is it possible that Apollo doesn't have option to resolve this problem?
04-24-2019 05:23 AM
After a few days and after many attempts I did not find way to label legacy WMS in any advanced way.
There is very poor documentation for this issue.
How to display label if centroid of feature is not displayed on map or how to avoid overlap of labels?
04-24-2019 06:49 AM - edited 04-24-2019 06:51 AM
I find the documentation is quite complete about the Style Editor:
To avoid the overlapping, you have the "anti clashing" option. It is not perfect but it does the job with my test service.
anti clashing enabled:
anti clashing disabled:
in style editor:
04-25-2019 12:27 AM
I am using anti clashing option, but it is working only with single layer.
I have two services and each of them has two layers
Service Administrative_units has Municipalities and Cadastral_municipalities layers
Service cadastral_data has parcels and buildings.
My task is to create map view with this 4 layers.
If I check anti clashing in Style editor for single parcels, it means that labels for parcels layer will avoid overlaping, but it will overlap with labels for buildings.
Other issue is related to showing label if only part of polygon is on current map.
For example, when I zoom to parcel level, there is no inforamtion about current cadastral municipality or municipality.