En ArcGIS, <\/SPAN>la simbología militar es compatible utilizando<\/SPAN> el<\/SPAN> <\/SPAN>Dictionary Renderer<\/SPAN>. <\/SPAN><\/SPAN>C<\/SPAN><\/SPAN><\/SPAN>uando se configura <\/SPAN><\/SPAN>datos <\/SPAN>simbolizados usando simbología militar para su uso en una aplicación web<\/SPAN>, debe considerar <\/SPAN>qué <\/SPAN>aplicación cliente consumirá los datos. <\/SPAN>La mayoría de las aplicaciones web y creadores de aplicaciones de ArcGIS<\/SPAN> (<\/SPAN>como <\/SPAN>Map Viewer, Dashboards, Instant Apps y Experience Builder) están <\/SPAN>construidos usando nuestro más moderno ArcGIS Maps SDK para JavaScript<\/SPAN>, que incluye soporte <\/SPAN>para<\/SPAN> leer mapas web que incluyen capas<\/SPAN> configuradas con<\/SPAN> el Dictionary Renderer. <\/SPAN>Esta publicación describirá los pasos que necesita <\/SPAN>conocer para preparar datos para usar con <\/SPAN>simbología militar en esas aplicaciones. <\/SPAN><\/SPAN><\/P>Algunas notas importantes para entender antes de comenzar: <\/SPAN><\/SPAN> <\/SPAN><\/P>Web AppBuilder, ArcGIS Dashboards (Classic) y Map Viewer (Classic)<\/SPAN> están todos construidos usando una versión diferente de la API de JavaScript (3.x)<\/SPAN>.<\/SPAN> Debido a eso, debe seguir algunos pasos específicos al configurar la simbología en ArcGIS Pro antes de publicar.<\/SPAN> Consulte <\/SPAN><\/span>Preparar datos para usar con simbología militar en Web AppBuilder<\/span> para ese flujo de trabajo.<\/span> <\/EM>
Actualmente, el Map Viewer no incluye la capacidad de configurar una capa en un mapa con el Dictionary Renderer. Por ahora, para configurar capas con el Dictionary Renderer para uso en aplicaciones web, puede:
Seguir los pasos a continuación para usar ArcGIS Pro y configurar el Dictionary Renderer en capas antes de publicar como capa web, o Usar el ArcGIS Maps SDK para JavaScript en una aplicación personalizada para configurar fácilmente el Dictionary Renderer directamente en la capa. Consulte este código de ejemplo para orientación.
Ahora volvamos a nuestro programa habitual. <\/P>
La búsqueda para aprovechar la simbología militar en sus aplicaciones web comienza en ArcGIS Pro, donde configurará su(s) capa(s) con un Dictionary Renderer. ArcGIS Pro usa estilos de escritorio con Dictionary Renderer por defecto, por lo que deberá configurar sus capas para usar un estilo web en su lugar. Si trabaja en ArcGIS Online, los estilos web ya están compartidos allí, pero si trabaja con ArcGIS Enterprise o usa un estilo personalizado propio, primero deberá publicar el estilo web en su organización (le mostramos cómo hacerlo a continuación). <\/P>
Una vez que tenga sus capas configuradas con el estilo web, estará listo para compartirlo como un mapa web en su portal. Sus aplicaciones web usarán el estilo web para dibujar las entidades en su mapa con símbolos militares que configuró en ArcGIS Pro. <\/P>
Ahora desglosémoslo un poco. <\/STRONG>
Para completar este flujo de trabajo, necesitará: <\/P>
- Datos listos para ser configurados con un dictionary renderer, <\/LI>
- Un estilo web de diccionario militar (que puede necesitar publicar), y <\/LI>
- ArcGIS Pro. <\/LI>
Si no tiene datos a mano, puede descargar un paquete de proyecto con datos de muestra aquí. Las tres capas en este paquete (Land Units, Control Measure – Lines, Control Measure – Areas) pueden configurarse para usar MIL-STD-2525Bc2.<\/P>
¡Ahora comencemos! <\/P>
- Añada su capa a un mapa en ArcGIS Pro. Si está trabajando con el paquete de proyecto vinculado arriba, este paso ya está completo.<\/LI>
- En el panel Simbología para la capa, elija Dictionary como renderizador.<\/LI>
- Configure la capa con un estilo web en lugar de los estilos de escritorio que ArcGIS Pro proporciona por defecto. Para especificar un estilo web, navegue a Más > Agregar diccionario… y luego siga el conjunto apropiado de pasos a continuación:
<\/SPAN>Más <\/SPAN><\/SPAN>> <\/SPAN><\/SPAN>Agregar diccionario<\/SPAN><\/SPAN>026;<\/SPAN> <\/SPAN><\/STRONG>y buscar tu estilo de escritorio personalizado). Luego<\/SPAN><\/SPAN> haz clic<\/SPAN> <\/SPAN>ME1s<\/SPAN><\/SPAN> > <\/SPAN><\/SPAN>Agregar diccionario al proyecto<\/SPAN><\/SPAN><\/STRONG>.<\/SPAN><\/SPAN> El estilo ahora deberEDa aparecer en el panel CatE1logo.<\/SPAN><\/SPAN> <\/SPAN><\/SPAN><\/SPAN><\/SPAN><\/LI>Desde el panel <\/SPAN><\/SPAN>CatE1logo <\/SPAN><\/SPAN><\/STRONG>, expande<\/SPAN><\/SPAN> Estilos<\/SPAN><\/SPAN><\/STRONG>, haz clic derecho en el estilo military <\/SPAN>y<\/SPAN> selecciona<\/SPAN> <\/SPAN>Compartir como Web Style<\/SPAN><\/SPAN><\/STRONG>. <\/Span>Esto crearE1 un nuevo elemento de portal en Enterprise, que ahora deberEDas poder buscar y agregar en el panel SimbologEDa.<\/Span>
If you hover over the Dictionary you selected, you should now see a URL indicating you are in fact using a web style (if a desktop style is selected in the drop-down, just the name of the style is displayed when hovering):
Configure the Dictionary Renderer by mapping the Symbol and Text Fields that the dictionary is expecting to the fields in your data.
- 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.
- Set configuration properties.
- Set scale factor if needed.
Now that your layer is configured with a web style to use the correct symbology, navigate to the Share tab and select Web Map.
- Under Select a Configuration, be sure to uncheck Use symbol types compatible with all clients. This ensures the dictionary style symbols will be used, which are compatible with applications built using the JavaScript API 4.x.
Voila! Now you can view this web map in the Map Viewer, but WARNING: If you change the symbology properties of the layer in the Map Viewer you cannot go back to configuring the Dictionary Renderer. Other functionality will still work like editing, configuring popups, etc.
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.