Esri / solutions-grg-widget

A GRG (Gridded Reference Graphic) is a grid overlay used for a common reference point in many situations - from cordon and search operations to security for presidential inaugurations.
Apache License 2.0
3 stars 3 forks source link

Set label placement #18

Open nfeuerstein opened 7 years ago

nfeuerstein commented 7 years ago

Set label placement:

Being able to set placement within the grid cell

Dbarnes1 commented 6 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

topowright-zz commented 6 years ago

To start working on this we will need more information about this workflow. @lfunkhouser

topowright-zz commented 6 years ago

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. label placement Here is a mock up of the options that should be avaiable for any type of GRG that is created.

topowright-zz commented 6 years ago

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

adgiles commented 6 years ago

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

untitled

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:

topowright-zz commented 6 years ago

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.