Open nfeuerstein opened 7 years ago
@kgonzago noted that feedback from users is that the need for mgrs labels in the margins as opposed to the center of the grid is key
To start working on this we will need more information about this workflow. @lfunkhouser
Based on conversations today this is actually two issues that we can tackled at two different times. This issue needs to address label placement for all GRG's within the GRG cell. Here is a mock up of the options that should be avaiable for any type of GRG that is created.
The new issue for margins has been created and will not be worked on until we can find out more information: https://github.com/Esri/solutions-grg-widget/issues/124 @dfoll and @ACueva
Currently there is a limitation within the JS API that only allows you to label a polygon by its center point the only option is 'always-horizontal' which is used when rotating the map:
https://developers.arcgis.com/javascript/3/jsapi/labelclass-amd.html#labelplacement
To create the labels in another position, I think would probably require creating a seperate point layer for labels then using the appropriate placement option required i.e. if you wanted to create labels for the lower left, create a point for the lower left vertex and label it above-right.
The issue I see with this approach is that you will end up with two layers for a GRG:
a polygon layer of the grid
a point layer for the labels (the point symbology would be transparent)
I personally don't think this would provide a great user experience when saving the GRG back to portal as the two layers would be reliant on each other.
The limitation is also on how we publish the feature service for one polygon layer representing the grg. Currently we cannot label a polygon feature service other than center. @dfoll @ACueva we need to talk to the js team and the core enterprise team and think about how this can be done. @lfunkhouser we need to figure out when we should do this.
Set label placement:
Being able to set placement within the grid cell