You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: display_information/dictionary-renderer-graphics-overlay/README.md
+9-5Lines changed: 9 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Dictionary renderer with graphics overlay
2
2
3
-
Create graphics using a local mil2525d style file and an XML file with key/value pairs for each graphic.
3
+
Create graphics from an XML file with key-value pairs for each graphic, and display the military symbols using a MIL-STD-2525D web style in 2D.
4
4
5
5

6
6
@@ -14,9 +14,9 @@ Run the sample and view the military symbols on the map.
14
14
15
15
## How it works
16
16
17
-
1. Create a new `SymbolDictionary(specificationType, dictionaryPath)`.
18
-
2. Create a new `DictionaryRenderer(symbolDictionary)`.
19
-
3. Create a new `GraphicsOverlay`
17
+
1. Create a new `DictionarySymbolStyle(portalItem)` with a portal item containing a MIL-STD-2525D dictionary web style.
18
+
2. Create a new `DictionaryRenderer` from the dictionary symbol style.
19
+
3. Create a new `GraphicsOverlay`.
20
20
4. Set the dictionary renderer to the graphics overlay.
21
21
5. Parse through the local XML file creating a map of key/value pairs for each block of attributes.
22
22
6. Create a `Graphic` for each attribute.
@@ -30,6 +30,10 @@ Run the sample and view the military symbols on the map.
30
30
* DictionarySymbolStyle
31
31
* GraphicsOverlay
32
32
33
+
## About the data
34
+
35
+
The dictionary symbol style in this sample is constructed from a portal item containing a [MIL-STD-2525D symbol dictionary web style](https://arcgis.com/home/item.html?id=d815f3bdf6e6452bb8fd153b654c94ca). This ArcGIS Web Style is used to build custom applications that incorporate the MIL-STD-2525D symbol dictionary. This style supports a configuration for modeling locations as ordered anchor points or full geometries.
Copy file name to clipboardExpand all lines: display_information/dictionary-renderer-graphics-overlay/README.metadata.json
+5-1Lines changed: 5 additions & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,11 +1,15 @@
1
1
{
2
2
"category": "Display information",
3
-
"description": "Create graphics using a local mil2525d style file and an XML file with key/value pairs for each graphic.",
3
+
"description": "Create graphics from an XML file with key-value pairs for each graphic, and display the military symbols using a MIL-STD-2525D web style in 2D.",
Copy file name to clipboardExpand all lines: display_information/dictionary-renderer-graphics-overlay/src/main/java/com/esri/samples/dictionary_renderer_graphics_overlay/DictionaryRendererGraphicsOverlaySample.java
+86-50Lines changed: 86 additions & 50 deletions
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,12 @@
1
1
/*
2
2
* Copyright 2017 Esri.
3
-
*
3
+
*
4
4
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
5
5
* use this file except in compliance with the License. You may obtain a copy of
6
6
* the License at
7
-
*
7
+
*
8
8
* http://www.apache.org/licenses/LICENSE-2.0
9
-
*
9
+
*
10
10
* Unless required by applicable law or agreed to in writing, software
11
11
* distributed under the License is distributed on an "AS IS" BASIS, WITHOUT
12
12
* WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the
Copy file name to clipboardExpand all lines: symbology/graphics-overlay-dictionary-renderer-3D/README.md
+6-6Lines changed: 6 additions & 6 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
# Graphics overlay dictionary renderer 3D
2
2
3
-
Display MIL-STD-2525. military symbology in 3D.
3
+
Create graphics from an XML file with key-value pairs for each graphic, and display the military symbols using a MIL-STD-2525D web style in 3D.
4
4
5
5

6
6
@@ -14,24 +14,24 @@ When launched, this sample displays a scene with a dictionary renderer. Pan and
14
14
15
15
## How it works
16
16
17
-
1. Create a `SymbolDictionary` from a dictionary (stylx) file.
18
-
2. Create a `DictionaryRenderer`with the symbol dictionary.
17
+
1. Create a new `DictionarySymbolStyle(portalItem)` with a portal item containing a MIL-STD-2525D dictionary web style.
18
+
2. Create a new `DictionaryRenderer`from the dictionary symbol style.
19
19
3. Set the renderer on a graphics overlay with `graphicsOverlay.setRenderer(dictionaryRenderer)`.
20
-
4. Parse an XML file conforming to the specification. It should have key-value pairs to use as attributes for each graphic:
20
+
4. Parse through the local XML file creating a map of key/value pairs for each block of attributes:
21
21
* Use the name of the XML node as the attribute key and the content of the node as the attribute value.
22
22
* Get the WKID and coordinates from the XML to create the graphic's geometry.
23
23
5. The other attributes such as "symbolentity" and "symbolset" will describe the symbology for the graphic.
24
24
6. Create the graphic with the geometry and attributes and add it to the graphics overlay.
25
25
26
26
## Relevant API
27
27
28
-
* GraphicsOverlay
29
28
* DictionaryRenderer
30
29
* DictionarySymbolStyle
30
+
* GraphicsOverlay
31
31
32
32
## Additional information
33
33
34
-
The dictionary renderer creates these graphics using a local mil2525d style file included in the SDK's resources/symbols directory plus an XML file with key-value attributes for each graphic.
34
+
The dictionary symbol style in this sample is constructed from a portal item containing a [MIL-STD-2525D symbol dictionary web style](https://arcgis.com/home/item.html?id=d815f3bdf6e6452bb8fd153b654c94ca). This ArcGIS Web Style is used to build custom applications that incorporate the MIL-STD-2525D symbol dictionary. This style supports a configuration for modeling locations as ordered anchor points or full geometries.
Copy file name to clipboardExpand all lines: symbology/graphics-overlay-dictionary-renderer-3D/README.metadata.json
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1,6 +1,6 @@
1
1
{
2
2
"category": "Symbology",
3
-
"description": "Display MIL-STD-2525. military symbology in 3D.",
3
+
"description": "Create graphics from an XML file with key-value pairs for each graphic, and display the military symbols using a MIL-STD-2525D web style in 3D.",
Copy file name to clipboardExpand all lines: symbology/graphics-overlay-dictionary-renderer-3D/build.gradle
+15Lines changed: 15 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -39,6 +39,17 @@ dependencies {
39
39
implementation 'org.jooq:joox:1.4.0'
40
40
}
41
41
42
+
task createGradlePropertiesAndWriteApiKey {
43
+
description ="Creates a new gradle.properties file with an empty API key variable in the user home ./gradle folder, if the file doesn't already exist."
0 commit comments