In ArcGIS, military symbology is supported using the Dictionary Renderer. When configuring data symbolized using military symbology for use in a web application, you need to consider which client application the data will be consumed in. Most ArcGIS web applications and app builders (such as Map Viewer, Dashboards, Instant Apps, and Experience Builder) are built using our more modern JavaScript API 4.x, which includes support for reading web maps which include layers configured with the Dictionary Renderer. This post will describe the steps you need to know in order to prepare data for use with military symbology in those applications.
A few important notes to understand before you get started:
Web AppBuilder, ArcGIS Dashboards (Classic), and Map Viewer (Classic) are all built using a different version of the JavaScript API (3.x). Because of that, you need to follow some specific steps when configuring the symbology in ArcGIS Pro before publishing. Check out Preparing Data for Use with Military Symbology in Web AppBuilder for that workflow.
Currently, the Map Viewer does not include the ability to configure a layer in a map with the Dictionary Renderer. For now, in order to configure layers with the Dictionary Renderer for use in web applications, you can either:
- Follow the steps below to use ArcGIS Pro to configure the Dictionary Renderer on layers prior to publishing as a web layer, or
- Use the JavaScript API 4.x in a custom app to easily configure the Dictionary Renderer directly on the layer. Check out this sample code for guidance.
Now back to our regularly scheduled programming.
The quest to leverage a military symbology in your web applications begins in ArcGIS Pro, where you will configure your layer(s) with a Dictionary Renderer. ArcGIS Pro uses desktop styles with Dictionary Renderer by default, so you’ll need to configure your layers to use a web style instead. If you are working in ArcGIS Online, the web styles are already shared there, but if you are working with ArcGIS Enterprise or using a custom style of your own, you will need to publish the web style to your organization first (we show you how to do this below).
Once you have your layers configured with the web style, you are ready to share it as a web map to your portal. Your web applications will use the web style to draw the features in your map with military symbols you configured in ArcGIS Pro.
Now let's break that down a bit.
To complete this workflow, you’ll need:
If you don’t have data at hand, you can download a project package with sample data here. The three layers in this package (Land Units, Control Measure – Lines, Control Measure – Areas) can be configured to use MIL-STD-2525Bc2.
Now let’s get started!
You now have a web map that will work in ArcGIS web applications such as Experience Builder, Instant Apps, Dashboards, and so on. If you need to make any further modifications to the Dictionary Renderer settings in the map, you will need to do this in ArcGIS Pro.
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.