Returns the default symbol for the given geometry.
The geometry type to highlight (as used in the esri API).
Optional
viewmode: ViewModeThe viewmode must be either "2D" (the default) or "3D". The function will fall back to 2D symbols if 3D symbols are requested but unavailable.
Highlights the given object. The returned object represents the new highlight on the map. Calling the Highlight.remove function on that object will manually remove the highlight.
The object to be highlighted. This can be either an esri Graphic
object,
a plain javascript Object
, or an Array
of such objects.
If plain objects are passed to this function, they will be used as templates to create a new Graphic object for each of them.
The object must have a valid geometry. All other properties are optional. A default symbol will be chosen if not specified.
Use the optional symbol3D
property to specify a 3D symbol. If the map widget is
in 3D mode at the time the highlight is created, the 3D symbol will be used to
render the highlight.
Optional
options: HighlightOptionsAdditional highlight options.
A new Highlight instance. Returns undefined
if the given graphics
are not of type object
.
The Highlighter class can be used to create highlights on a MapWidgetModel. You should use either the HighlightService or the HighlighterFactory to obtain an instance of this type: