Preparing Data for Use with Military Symbology in Web AppBuilder

2074
1
07-02-2021 12:51 PM
megan_r
Esri Contributor
2 1 2,074

When configuring data symbolized using military symbology for use in a web application, there are a few things to consider:

  • The client application will the data will be consumed in, and 
  • Whether that data will be dynamic or involved in editing workflows.

Web applications built using the JavaScript API 3.x for ArcGIS include Web AppBuilder, ArcGIS Dashboards (Classic), and Map Viewer Classic. These apps require publishing both a map image service (so that the server can render the military symbols correctly) and a feature service to support dynamic data and editing. We break down that workflow below.

Getting Started 

Before preparing your data, it’s important to know that hosted feature layers are not supported for this workflow. Therefore, an enterprise geodatabase registered as a data store in ArcGIS Enterprise portal is required to store your data.

If you don’t have an enterprise geodatabase already, follow these steps to create one. Otherwise, connect to an existing enterprise geodatabase.

Preparing Your Data

You will need to create a schema in your Enterprise Geodatabase to store the data and then configure the data as layers in ArcGIS Pro using with the Dictionary Renderer. You can either do this by creating the schema from scratch (if the data will be imported or fed from another system such as GeoEvent Server) and adding layers to the map manually or by using the Military Overlay created with the Military Symbol Editor in ArcGIS Pro to create a Military Overlay (which will automatically create a schema and add layers to a map). 

Follow these steps if the data will be imported or fed from another system and will include a Symbol ID code:

  • Create a schema in the Enterprise Geodatabase that includes a field for the symbol ID code plus any additional fields needed to support text amplifiers or other symbol modifiers. Note that the symbol ID code should be a text field with 15 characters if using MIL-STD-2525B, MIL-STD-2525C or APP-6B, or text field with 20 characters If using MIL-STD-2525D or APP-6D.
  • Add the layers to a Map in ArcGIS Pro, and for each layer configure the Dictionary Renderer in the Symbology Pane:
    1. Choose the which symbol dictionary to use based on which the military specification you need.
    2. If there is a SIDC field, only that field needs to be mapped as a Symbol field. If there are additional fields in the data that can be used as text amplifiers in the symbol, you can map them as well. 
    3. Specify any Configuration Properties needed to fine-tune how symbols are rendered on the map.
    4. If you need to use a scale factor for the symbols, you can configure a scale factor one under the Advanced Symbology Options tab. You can either specify a constant value or an arcade expression.
      megan_r_0-1625254516050.png

Follow these steps to create a Military Overlay using the military symbology tools in ArcGIS Pro if you will be adding new features to the map using ArcGIS editing tools. This will create a series of layers in the enterprise geodatabase, including many feature templates for each layer (starter symbols to support editing workflows), and will add the layers to a map and configure them layers with the dictionary renderer.

  1. First, enable the Military Symbol Editor in ArcGIS Pro. 
  2. When prompted to choose the Military Overlay Database, select the enterprise geodatabase you created earlier.
  3. Select any the Military Symbology Standard you need to work with.
  4. The tool will add many Feature Templates to layers in the map. These are useful for creating features using the ArcGIS Pro editing tools, but might be too many for the web editing tools. Optionally you can use the Manage Features tool to remove any Feature Templates that won’t be needed by your app users for web editing.

    Note that at this time, the Military Overlay schema does not include a field for Symbol ID Code, but one can be added manually to the layers.

Finally,

  • Be sure to add Global IDs to your dataset in the Enterprise Geodatabase so it can be used for editing.
  • Ungroup any existing group layers in the map, as they are not supported in the Web Feature Layer.

Publish your data

Share the layers in your map as a web layer to your Enterprise Portal with the following configuration:

  • Choose Map Image and check Feature to enable feature access.
  • Under Configuration > Feature:
    • For Operations: Choose Enable Editing on the feature layer – Add, update, delete
    • For Properties: Check all boxes as appropriate for curves, z and m values
  • Analyze, fix any errors if needed, and then publish!

Configure your Web Map

The previous step publishes a map image service and a feature service that both must be added to a web map in Map Viewer Classic. Be sure to add the map service to the web map first followed by the feature service, so that the two services will appear as one layer in the map.

From there, you will be able to use the edit tools in the Map Viewer Classic and Web AppBuilder to add, modify, and delete features. Or, if data is being fed from GeoEvent Server, you should see the data update automatically and the correct military symbols in ArcGIS Dashboards Classic. Because the symbology of your layers is attribute-driven and configured with a dictionary renderer, as new features are added or updated, the symbols will update to reflect the attribute values for the fields that were mapped to the dictionary renderer during the Preparation step in ArcGIS Pro.

Check out this exercise that walks through this workflow using sample data!

1 Comment
GillesLavandier
New Contributor III

Hi megan_r,

I've developed a custom dictionary style in ArcGIS Pro for a fire brigade. In fact, the dictionary works as expected in Pro allowing tactical drawings of engines and their actions at complex interventions (fictional example below).

GillesLavandier_0-1642075748847.jpeg

My aim now is to apply these symbols to web maps in order to enable our Portal users to do their own tactical drawings. Concerning our ArcGIS infrastructure, we are on ArcGIS Enterprise Advanced 10.8.1. and the point, line and polygon feature classes supporting the drawings are in an enterprise geodatabase running on SQL Server.

If I understood correctly, military symbols rely on dictionary styles, which lead me to apply the workflow you described above. I first published the dictionary style as a web style, then applied it to the feature classes in order to finally publish the map as map image and feature.

The problem now is that, in contrast to what I expected from reading the post above, no feature gets drawn in Map Viewer Classic.

GillesLavandier_5-1642076203185.png

In Map Viewer Beta and Experience Builder, the feature layers are being drawn, while the map image layer is not rendered. Moreover, the final symbols don’t look as expected when compared to ArcGIS Pro. The wavy form of the red rectangle symbolizing the burning part of the building gets displayed as a straight line and all the text elements that are arranged around the main symbols by applying an OffsetY are collapsed to the point itself.

GillesLavandier_4-1642076150885.png

Do you have any idea on how to resolve these problems in order to prepare a web map that could be integrated in an app built with Web Appbuilder?

Any help would be highly appreciated, since using these symbols in web apps would be super valuable for us.

Best regards,

Gilles

Labels