Private
Readonly
_filenamePrivate
_graphicsReadonly
Private
_position$Private
Readonly
_stateThe filetypes that are accepted as uploads. By default, only .zip files are accepted.
This value is passed to the native HTMLInputElement
's accept
attribute.
If the UX doesn't sit well for your app, this can be overridden. However, as of this date, only .zip is supported for upload.
The shape types that the widget will allow the user to upload. By default, all Esri supported geometries are accepted. If the user attempts to upload an unsupported shape type, they'll receive an error message in the widget's UI.
Private
destroy$Readonly
filename$An observable stream of the user-submitted filename.
Private
formAn object of
GoToOptions2D
or GoToOptions3D
that will be passed to the MapView
or SceneView
goTo
method, as appropriate.
An input property that controls the text of the header element that is visible on the widget.
Private
inputAn input property to define the default
Symbol
for line geometries. Supports
auto-casting.
An input property to define the default
Symbol
for point geometries. Supports
auto-casting.
An input property to define the default
Symbol
for polygon geometries. Supports
auto-casting.
An input property containing the URL of the Portal that will be used to generate the graphics features.
This property is used to construct a REST API URL following this format:
${portalUrl}/sharing/rest/content/features/generate
Private
resetIf true, help text will be displayed on the widget.
Readonly
state$An observable stream of the widget state
Private
uploadReadonly
view$Private
viewReadonly
when$Used to indicate the map view is ready. Widget rendering depends on this observable emitting. This avoids an issue where the widget would flash on the page, aka premature rendering.
Private
widgetAn Angular event that emits the Expand widget instance or null
An Angular event that emits the native click event when the "Reset" button is clicked by the user.
An Angular event of an array of
Esri Graphic
s
that have been uploaded to via this widget.
An Input parameter that, if true
, configures this component to place the
widget behind an
Esri Expand
widget.
Get a reference to this widget's
Esri GraphicsLayer
.
An optional input parameter of an
Esri GraphicsLayer
that will be populated with the uploaded shapefiles. Otherwise, the component provides its own.
If passed null, this input does not operate.
The
Esri UIAddPosition
describing where in the Map's UI the widget should be placed.
Private
addPrivate
applyPrivate
ngPrivate
onPrivate
onGenerated using TypeDoc
When added to a VMC view tree as the
<vmc-upload-shapefile>
element, adds a custom widget to the map that accepts user-defined shapefiles, as a .zip archive, as input to the widget. The user shapes are added to the map via aGraphicsLayer
.Usage example: