@vertigis/arcgis-extensions 38.0.5 → 38.2.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (748) hide show
  1. package/AccessDeniedError.js +1 -1
  2. package/AppConfig.schema.json +35 -39
  3. package/ArgumentMissingError.js +1 -1
  4. package/ArgumentOutOfRangeError.js +1 -1
  5. package/Entity.js +1 -1
  6. package/FailureMode.d.ts +1 -1
  7. package/Hyperlink.js +1 -1
  8. package/LanguageResources.d.ts +1 -3
  9. package/LanguageResources.js +1 -1
  10. package/NotFoundError.js +1 -1
  11. package/PortalUri.js +1 -1
  12. package/data/ArcGISServiceTableExtension.js +1 -1
  13. package/data/Attachment.js +1 -1
  14. package/data/Feature.js +1 -1
  15. package/data/FeatureList.d.ts +3 -3
  16. package/data/FeatureList.js +1 -1
  17. package/data/FeatureSaveError.js +1 -1
  18. package/data/FeatureSet.js +1 -1
  19. package/data/FeatureSettings.js +1 -1
  20. package/data/FeatureSourceBase.js +1 -1
  21. package/data/FeatureStream.js +1 -1
  22. package/data/FieldExtension.js +1 -1
  23. package/data/PopupContentExtension.js +1 -1
  24. package/data/Relationship.js +1 -1
  25. package/data/RelationshipBase.js +1 -1
  26. package/data/Schema.js +1 -1
  27. package/data/Table.js +1 -1
  28. package/data/TableExtension.js +1 -1
  29. package/data/TaskSettings.js +1 -1
  30. package/data/_Relationship.d.ts +3 -3
  31. package/data/_Relationship.js +1 -1
  32. package/data/_TableExtension.js +1 -1
  33. package/data/convert.js +1 -1
  34. package/data/support/DefaultRelationshipFactory.js +1 -1
  35. package/data/support/DefaultTableExtensionFactory.js +1 -1
  36. package/data/support/attachments.js +1 -1
  37. package/docs/html/assets/main.js +56 -52
  38. package/docs/html/assets/search.js +1 -1
  39. package/docs/html/assets/style.css +23 -0
  40. package/docs/html/classes/data_FeatureSet.FeatureSet.html +2 -2
  41. package/docs/html/classes/data_FeatureStream.FeatureStream.html +1 -1
  42. package/docs/html/classes/utilities_ObservableMap.ObservableMap.html +2 -2
  43. package/docs/html/classes/utilities_ObservableSet.ObservableSet.html +2 -2
  44. package/docs/html/classes/utilities_ObservableWeakSet.ObservableWeakSet.html +1 -1
  45. package/docs/html/classes/utilities_asyncIterable.AsyncQueue.html +1 -1
  46. package/docs/html/classes/utilities_date.DateFormatter.html +1 -1
  47. package/docs/html/classes/utilities_string.StringFormatter.html +6 -24
  48. package/docs/html/functions/utilities_string.format.html +2 -18
  49. package/docs/html/interfaces/LanguageResources.LanguageResourcesProperties.html +2 -7
  50. package/docs/html/interfaces/data_support_attachments.AttachmentEnabledLayer.html +4 -6
  51. package/docs/html/interfaces/mapping_BuildingSceneLayerExtension.BuildingSceneLayerProperties.html +1 -1
  52. package/docs/html/interfaces/mapping_FeatureLayerExtension.FeatureLayerProperties.html +1 -1
  53. package/docs/html/interfaces/mapping_FeatureLayerExtensionBase.FeatureLayerBaseProperties.html +1 -1
  54. package/docs/html/interfaces/mapping_PointCloudLayerExtension.PointCloudLayerProperties.html +1 -1
  55. package/docs/html/interfaces/portal_ApplicationProperties.ApplicationProperties.html +15 -12
  56. package/docs/html/interfaces/portal_Background.ColorBackground.html +3 -2
  57. package/docs/html/interfaces/portal_BaseMap.BaseMap-1.html +2 -1
  58. package/docs/html/interfaces/portal_BaseMapLayer.BaseMapLayerBase.html +2 -1
  59. package/docs/html/interfaces/portal_BingLayer.BingLayer.html +2 -1
  60. package/docs/html/interfaces/portal_Bookmark.Bookmark.html +2 -1
  61. package/docs/html/interfaces/portal_BuildingSceneLayer.BuildingSceneLayer-1.html +1 -1
  62. package/docs/html/interfaces/portal_CIMSymbol.CIMSymbol.html +2 -1
  63. package/docs/html/interfaces/portal_CSVLayer.CSVLayer-1.html +3 -2
  64. package/docs/html/interfaces/portal_Camera.Camera-1.html +2 -1
  65. package/docs/html/interfaces/portal_ClassBreaksRenderer.ClassBreakInfo.html +2 -1
  66. package/docs/html/interfaces/portal_ClassBreaksRenderer.ClassBreaksRenderer.html +2 -1
  67. package/docs/html/interfaces/portal_CodedValueDomain.CodedValue.html +1 -1
  68. package/docs/html/interfaces/portal_CodedValueDomain.CodedValueDomain-1.html +1 -1
  69. package/docs/html/interfaces/portal_ColorClassBreakInfo.ColorClassBreakInfo.html +2 -1
  70. package/docs/html/interfaces/portal_ColorUniqueValueInfos.ColorUniqueValueInfos.html +2 -1
  71. package/docs/html/interfaces/portal_DataSource.DataSourceBase.html +2 -2
  72. package/docs/html/interfaces/portal_DefinitionEditor.DefinitionEditor.html +2 -1
  73. package/docs/html/interfaces/portal_DefinitionEditor.Input.html +1 -1
  74. package/docs/html/interfaces/portal_DefinitionEditor.Parameter.html +1 -1
  75. package/docs/html/interfaces/portal_DrawingInfo.DrawingInfo-1.html +2 -1
  76. package/docs/html/interfaces/portal_DynamicDataLayer.DynamicDataLayer.html +2 -2
  77. package/docs/html/interfaces/portal_DynamicMapLayer.DynamicMapLayer.html +1 -1
  78. package/docs/html/interfaces/portal_ElevationInfo.ElevationInfo-1.html +1 -1
  79. package/docs/html/interfaces/portal_ElevationLayer.ElevationLayer-1.html +3 -2
  80. package/docs/html/interfaces/portal_Environment.Environment-1.html +2 -1
  81. package/docs/html/interfaces/portal_Extent.Extent.html +1 -1
  82. package/docs/html/interfaces/portal_ExtrudeSymbol3DLayer.ExtrudeSymbol3DLayer.html +2 -1
  83. package/docs/html/interfaces/portal_Feature.Feature-1.html +2 -1
  84. package/docs/html/interfaces/portal_FeatureCollection.FeatureCollection.html +2 -1
  85. package/docs/html/interfaces/portal_FeatureLayer.FeatureLayer-1.html +3 -2
  86. package/docs/html/interfaces/portal_FeatureSet.FeatureSet.html +2 -1
  87. package/docs/html/interfaces/portal_Field.Field-1.html +1 -1
  88. package/docs/html/interfaces/portal_FieldInfo.FieldInfo.html +2 -1
  89. package/docs/html/interfaces/portal_FillSymbol3DLayer.FillSymbol3DLayer.html +2 -1
  90. package/docs/html/interfaces/portal_FormInfo.FormAttachmentElement.html +1 -1
  91. package/docs/html/interfaces/portal_FormInfo.FormBarcodeScannerInput.html +1 -1
  92. package/docs/html/interfaces/portal_FormInfo.FormComboBoxInput.html +1 -1
  93. package/docs/html/interfaces/portal_FormInfo.FormDateTimePickerInput.html +1 -1
  94. package/docs/html/interfaces/portal_FormInfo.FormExpressionInfo.html +1 -1
  95. package/docs/html/interfaces/portal_FormInfo.FormFieldElement.html +1 -1
  96. package/docs/html/interfaces/portal_FormInfo.FormGroupElement.html +1 -1
  97. package/docs/html/interfaces/portal_FormInfo.FormInfo-1.html +1 -1
  98. package/docs/html/interfaces/portal_FormInfo.FormRadioButtonsInput.html +1 -1
  99. package/docs/html/interfaces/portal_FormInfo.FormRelationshipElement.html +1 -1
  100. package/docs/html/interfaces/portal_FormInfo.FormSwitchInput.html +1 -1
  101. package/docs/html/interfaces/portal_FormInfo.FormTextAreaInput.html +1 -1
  102. package/docs/html/interfaces/portal_FormInfo.FormTextBoxInput.html +1 -1
  103. package/docs/html/interfaces/portal_Format.Format.html +2 -1
  104. package/docs/html/interfaces/portal_GeoRSSLayer.GeoRSSLayer-1.html +3 -2
  105. package/docs/html/interfaces/portal_GroupLayer.GroupLayer-1.html +3 -2
  106. package/docs/html/interfaces/portal_HeatmapRenderer.ColorStop.html +2 -1
  107. package/docs/html/interfaces/portal_HeatmapRenderer.HeatmapRenderer.html +2 -1
  108. package/docs/html/interfaces/portal_IconSymbol3DLayer.IconSymbol3DLayer.html +2 -1
  109. package/docs/html/interfaces/portal_ImageServiceLayer.ImageServiceLayer-1.html +3 -2
  110. package/docs/html/interfaces/portal_ImageServiceVectorLayer.ImageServiceVectorLayer.html +3 -2
  111. package/docs/html/interfaces/portal_InheritedDomain.InheritedDomain-1.html +1 -1
  112. package/docs/html/interfaces/portal_InitialState.InitialState-1.html +2 -1
  113. package/docs/html/interfaces/portal_IntegratedMeshLayer.IntegratedMeshLayer-1.html +3 -2
  114. package/docs/html/interfaces/portal_Item.Item-1.html +3 -2
  115. package/docs/html/interfaces/portal_JoinTableDataSource.JoinTableDataSource.html +2 -2
  116. package/docs/html/interfaces/portal_KMLLayer.KMLLayer-1.html +3 -2
  117. package/docs/html/interfaces/portal_LabelSymbol3D.LabelSymbol3D.html +2 -1
  118. package/docs/html/interfaces/portal_LabelingInfo.LabelingInfo-1.html +3 -2
  119. package/docs/html/interfaces/portal_Layer.Layer-1.html +1 -1
  120. package/docs/html/interfaces/portal_LayerDefinition.FieldOverride.html +1 -1
  121. package/docs/html/interfaces/portal_LayerDefinition.LayerDefinition-1.html +4 -3
  122. package/docs/html/interfaces/portal_LayerDefinition.LayerTimeInfo.html +2 -2
  123. package/docs/html/interfaces/portal_Lighting.SunLighting.html +2 -1
  124. package/docs/html/interfaces/portal_Lighting.VirtualLighting.html +2 -1
  125. package/docs/html/interfaces/portal_LineSymbol3D.LineSymbol3D.html +2 -1
  126. package/docs/html/interfaces/portal_LineSymbol3DLayer.LineSymbol3DLayer.html +2 -1
  127. package/docs/html/interfaces/portal_LocationInfo.LocationInfo.html +2 -1
  128. package/docs/html/interfaces/portal_MapFloorInfo.FacilityLayerInfo.html +1 -1
  129. package/docs/html/interfaces/portal_MapFloorInfo.LevelLayerInfo.html +1 -1
  130. package/docs/html/interfaces/portal_MapFloorInfo.MapFloorInfo-1.html +1 -1
  131. package/docs/html/interfaces/portal_MapFloorInfo.SiteLayerInfo.html +1 -1
  132. package/docs/html/interfaces/portal_MapRangeInfo.MapRangeInfo.html +2 -1
  133. package/docs/html/interfaces/portal_MapServiceLayer.MapServiceLayer-1.html +3 -2
  134. package/docs/html/interfaces/portal_MeshSymbol3D.MeshSymbol3D.html +2 -1
  135. package/docs/html/interfaces/portal_MosaicRule.MosaicRule-1.html +2 -1
  136. package/docs/html/interfaces/portal_Multipoint.Multipoint.html +1 -1
  137. package/docs/html/interfaces/portal_ObjectSymbol3DLayer.ObjectSymbol3DLayer.html +2 -1
  138. package/docs/html/interfaces/portal_OpenStreetMapLayer.OpenStreetMapLayer-1.html +2 -1
  139. package/docs/html/interfaces/portal_OperationalLayer.OperationalLayerBase.html +1 -1
  140. package/docs/html/interfaces/portal_PathSymbol3DLayer.PathSymbol3DLayer.html +2 -1
  141. package/docs/html/interfaces/portal_PictureFillSymbol.PictureFillSymbol.html +2 -1
  142. package/docs/html/interfaces/portal_PictureMarkerSymbol.PictureMarkerSymbol.html +2 -1
  143. package/docs/html/interfaces/portal_Point.Point.html +2 -1
  144. package/docs/html/interfaces/portal_PointCloudBitfieldFilter.PointCloudBitfieldFilter.html +2 -1
  145. package/docs/html/interfaces/portal_PointCloudClassBreaksRenderer.PointCloudClassBreaksRenderer.html +4 -2
  146. package/docs/html/interfaces/portal_PointCloudFixedSizeAlgorithm.PointCloudFixedSizeAlgorithm.html +2 -1
  147. package/docs/html/interfaces/portal_PointCloudLayer.PointCloudLayer-1.html +3 -2
  148. package/docs/html/interfaces/portal_PointCloudRGBRenderer.PointCloudRGBRenderer.html +4 -2
  149. package/docs/html/interfaces/portal_PointCloudRenderer.PointCloudRendererBase.html +4 -2
  150. package/docs/html/interfaces/portal_PointCloudReturnFilter.PointCloudReturnFilter.html +2 -1
  151. package/docs/html/interfaces/portal_PointCloudSplatAlgorithm.PointCloudSplatAlgorithm.html +2 -1
  152. package/docs/html/interfaces/portal_PointCloudStretchRenderer.PointCloudStretchRenderer.html +4 -2
  153. package/docs/html/interfaces/portal_PointCloudUniqueValueRenderer.PointCloudUniqueValueRenderer.html +4 -2
  154. package/docs/html/interfaces/portal_PointCloudValueFilter.PointCloudValueFilter.html +2 -1
  155. package/docs/html/interfaces/portal_PointSymbol3D.PointSymbol3D.html +3 -2
  156. package/docs/html/interfaces/portal_Polygon.Polygon.html +1 -1
  157. package/docs/html/interfaces/portal_PolygonSymbol3D.PolygonSymbol3D.html +2 -1
  158. package/docs/html/interfaces/portal_Polyline.Polyline.html +1 -1
  159. package/docs/html/interfaces/portal_PopupExpressionInfo.PopupExpressionInfo.html +2 -1
  160. package/docs/html/interfaces/portal_PopupInfo.OrderByFields.html +2 -1
  161. package/docs/html/interfaces/portal_PopupInfo.RelatedRecordsInfo.html +2 -1
  162. package/docs/html/interfaces/portal_PredominanceRenderer.PredominanceRenderer.html +2 -1
  163. package/docs/html/interfaces/portal_Presentation.Presentation-1.html +2 -1
  164. package/docs/html/interfaces/portal_QueryTableDataSource.QueryTableDataSource.html +2 -2
  165. package/docs/html/interfaces/portal_RangeDomain.RangeDomain-1.html +1 -1
  166. package/docs/html/interfaces/portal_RangeInfo.RangeInfo.html +2 -1
  167. package/docs/html/interfaces/portal_RasterDataSource.RasterDataSource.html +2 -2
  168. package/docs/html/interfaces/portal_Renderer.AuthoringInfo.html +2 -1
  169. package/docs/html/interfaces/portal_Renderer.ColorRamp.html +1 -1
  170. package/docs/html/interfaces/portal_Renderer.RendererBase.html +2 -1
  171. package/docs/html/interfaces/portal_RenderingRule.RenderingRule-1.html +3 -2
  172. package/docs/html/interfaces/portal_SceneLayer.SceneLayer-1.html +3 -2
  173. package/docs/html/interfaces/portal_SimpleFillSymbol.SimpleFillSymbol.html +2 -1
  174. package/docs/html/interfaces/portal_SimpleLineSymbol.SimpleLineSymbol.html +2 -1
  175. package/docs/html/interfaces/portal_SimpleMarkerSymbol.SimpleMarkerSymbol.html +2 -1
  176. package/docs/html/interfaces/portal_SimpleRenderer.SimpleRenderer.html +2 -1
  177. package/docs/html/interfaces/portal_Slide.Slide-1.html +4 -4
  178. package/docs/html/interfaces/portal_SpatialReference.SpatialReference-1.html +2 -1
  179. package/docs/html/interfaces/portal_StreamLayer.StreamLayer-1.html +2 -2
  180. package/docs/html/interfaces/portal_StyleSymbolReference.StyleSymbolReference.html +2 -1
  181. package/docs/html/interfaces/portal_SubtypeGroupLayer.SubtypeGroupLayer-1.html +3 -2
  182. package/docs/html/interfaces/portal_SubtypeGroupLayer.SubtypeSubtypeGroupLayer.html +2 -2
  183. package/docs/html/interfaces/portal_SubtypeSublayer.SubtypeSublayer-1.html +3 -2
  184. package/docs/html/interfaces/portal_Symbol.Font.html +1 -1
  185. package/docs/html/interfaces/portal_Symbol3D.Material.html +2 -1
  186. package/docs/html/interfaces/portal_Symbol3D.Outline.html +2 -1
  187. package/docs/html/interfaces/portal_Symbol3D.ResourceIconSymbol.html +2 -1
  188. package/docs/html/interfaces/portal_Symbol3D.ResourceObjectSymbol.html +2 -1
  189. package/docs/html/interfaces/portal_Table.Table.html +1 -1
  190. package/docs/html/interfaces/portal_TableDataSource.TableDataSource.html +2 -2
  191. package/docs/html/interfaces/portal_Template.Template-1.html +2 -1
  192. package/docs/html/interfaces/portal_TemporalRenderer.TemporalRenderer.html +2 -1
  193. package/docs/html/interfaces/portal_TextSymbol.TextSymbol.html +2 -1
  194. package/docs/html/interfaces/portal_TextSymbol3DLayer.TextSymbol3DLayer.html +2 -1
  195. package/docs/html/interfaces/portal_TileInfo.TileInfo-1.html +3 -2
  196. package/docs/html/interfaces/portal_TiledImageServiceLayer.TiledImageServiceLayer-1.html +3 -2
  197. package/docs/html/interfaces/portal_TiledMapServiceLayer.TiledMapServiceLayer-1.html +4 -3
  198. package/docs/html/interfaces/portal_Type.Type-1.html +3 -8
  199. package/docs/html/interfaces/portal_UniqueValueFromStyle.UniqueValueFromStyle.html +2 -1
  200. package/docs/html/interfaces/portal_UniqueValueRenderer.UniqueValueInfo.html +2 -1
  201. package/docs/html/interfaces/portal_UniqueValueRenderer.UniqueValueRenderer.html +2 -1
  202. package/docs/html/interfaces/portal_UtilityNetwork.TraceConfiguration.html +1 -1
  203. package/docs/html/interfaces/portal_UtilityNetwork.UtilityNetwork-1.html +1 -1
  204. package/docs/html/interfaces/portal_Value.Value.html +1 -1
  205. package/docs/html/interfaces/portal_VectorTileLayer.VectorTileLayer-1.html +3 -2
  206. package/docs/html/interfaces/portal_VerticalOffset.VerticalOffset.html +1 -1
  207. package/docs/html/interfaces/portal_Viewpoint.Viewpoint-1.html +2 -1
  208. package/docs/html/interfaces/portal_VisualVariable.ColorInfo.html +3 -2
  209. package/docs/html/interfaces/portal_VisualVariable.RotationInfo.html +3 -2
  210. package/docs/html/interfaces/portal_VisualVariable.Size.html +2 -1
  211. package/docs/html/interfaces/portal_VisualVariable.SizeInfo.html +3 -2
  212. package/docs/html/interfaces/portal_VisualVariable.TransparencyInfo.html +2 -1
  213. package/docs/html/interfaces/portal_VisualVariable.VisualVariableBase.html +1 -1
  214. package/docs/html/interfaces/portal_WMSLayer.WMSLayer-1.html +3 -2
  215. package/docs/html/interfaces/portal_WMSSublayer.WMSSublayer-1.html +2 -1
  216. package/docs/html/interfaces/portal_WMTSInfo.WMTSInfo-1.html +1 -1
  217. package/docs/html/interfaces/portal_Weather.CloudyWeather.html +2 -1
  218. package/docs/html/interfaces/portal_Weather.FoggyWeather.html +2 -1
  219. package/docs/html/interfaces/portal_Weather.RainyWeather.html +2 -1
  220. package/docs/html/interfaces/portal_Weather.SnowyWeather.html +2 -1
  221. package/docs/html/interfaces/portal_Weather.SunnyWeather.html +2 -1
  222. package/docs/html/interfaces/portal_WebMap.WebMap-1.html +3 -3
  223. package/docs/html/interfaces/portal_WebScene.WebScene-1.html +5 -3
  224. package/docs/html/interfaces/portal_WebSceneBaseMap.WebSceneBaseMap-1.html +2 -1
  225. package/docs/html/interfaces/portal_WebTileLayer.WebTileLayer-1.html +3 -2
  226. package/docs/html/interfaces/portal_Widgets.FloorFilter.html +1 -1
  227. package/docs/html/interfaces/portal_Widgets.Range.html +1 -1
  228. package/docs/html/interfaces/portal_Widgets.TimeSlider.html +3 -2
  229. package/docs/html/interfaces/portal_Widgets.Widgets.html +2 -1
  230. package/docs/html/interfaces/support_Serializable.PropertyDef.html +2 -2
  231. package/docs/html/interfaces/tasks_identify_IdentifyOptions.IdentifyOptions-1.html +2 -2
  232. package/docs/html/interfaces/tasks_search_SearchOptions.SearchOptions-1.html +2 -2
  233. package/docs/html/interfaces/utilities_array.CompareOptions.html +8 -8
  234. package/docs/html/interfaces/utilities_geometry.GeographicTransformationJson.html +1 -1
  235. package/docs/html/types/portal_DataSource.DataSource.html +1 -0
  236. package/docs/html/types/portal_Domain.Domain-1.html +2 -1
  237. package/docs/html/types/portal_Geometry.Geometry.html +1 -1
  238. package/docs/html/types/portal_PointCloudFilter.PointCloudFilter.html +2 -1
  239. package/docs/html/types/portal_Symbol.Color.html +1 -1
  240. package/docs/html/types/portal_Symbol.Symbol.html +1 -1
  241. package/docs/html/types/portal_Symbol3D.Symbol3D.html +2 -1
  242. package/docs/html/types/portal_VisualVariable.VisualVariable.html +2 -1
  243. package/docs/html/variables/mapping_BasemapExtension.defaultBasemapExtensionFactory.html +2 -2
  244. package/docs/html/variables/version.version.html +1 -1
  245. package/forked-libs/dbf/src/fields.js +1 -1
  246. package/forked-libs/dbf/src/structure.js +1 -1
  247. package/forked-libs/shp-write/src/download.js +1 -1
  248. package/forked-libs/shp-write/src/fields.js +1 -1
  249. package/forked-libs/shp-write/src/geojson.js +1 -1
  250. package/forked-libs/shp-write/src/multipoint.js +1 -1
  251. package/forked-libs/shp-write/src/points.js +1 -1
  252. package/forked-libs/shp-write/src/poly.js +1 -1
  253. package/forked-libs/shp-write/src/write.js +1 -1
  254. package/forked-libs/shp-write/src/zip.js +1 -1
  255. package/layer-preset/LayerPreset.d.ts +1 -1
  256. package/layer-preset/LayerPreset.js +1 -1
  257. package/layer-preset/LayerPresetSettings.d.ts +1 -1
  258. package/layer-preset/LayerPresetSettings.js +1 -1
  259. package/locale/_registry.js +1 -1
  260. package/locale/af.js +1 -1
  261. package/locale/ar-MA.js +1 -1
  262. package/locale/ar-SA.js +1 -1
  263. package/locale/ar-TN.js +1 -1
  264. package/locale/ar.js +1 -1
  265. package/locale/az.js +1 -1
  266. package/locale/be.js +1 -1
  267. package/locale/bg.js +1 -1
  268. package/locale/bn.js +1 -1
  269. package/locale/bs.js +1 -1
  270. package/locale/ca.js +1 -1
  271. package/locale/cs.js +1 -1
  272. package/locale/cv.js +1 -1
  273. package/locale/cy.js +1 -1
  274. package/locale/da.js +1 -1
  275. package/locale/de-AT.js +1 -1
  276. package/locale/de.js +1 -1
  277. package/locale/el.js +1 -1
  278. package/locale/en-AU.js +1 -1
  279. package/locale/en-CA.js +1 -1
  280. package/locale/en-GB.js +1 -1
  281. package/locale/en.js +1 -1
  282. package/locale/es.js +1 -1
  283. package/locale/et.js +1 -1
  284. package/locale/eu.js +1 -1
  285. package/locale/fa.js +1 -1
  286. package/locale/fi.js +1 -1
  287. package/locale/fo.js +1 -1
  288. package/locale/fr-CA.js +1 -1
  289. package/locale/fr.js +1 -1
  290. package/locale/gl.js +1 -1
  291. package/locale/he.js +1 -1
  292. package/locale/hi.js +1 -1
  293. package/locale/hr.js +1 -1
  294. package/locale/hu.js +1 -1
  295. package/locale/hy.js +1 -1
  296. package/locale/id.js +1 -1
  297. package/locale/inv.js +1 -1
  298. package/locale/is.js +1 -1
  299. package/locale/it.js +1 -1
  300. package/locale/ja.js +1 -1
  301. package/locale/ka.js +1 -1
  302. package/locale/km.js +1 -1
  303. package/locale/ko.js +1 -1
  304. package/locale/language.js +1 -1
  305. package/locale/lt.js +1 -1
  306. package/locale/lv.js +1 -1
  307. package/locale/mk.js +1 -1
  308. package/locale/ml.js +1 -1
  309. package/locale/mr.js +1 -1
  310. package/locale/ms-MY.js +1 -1
  311. package/locale/ms.js +1 -1
  312. package/locale/my.js +1 -1
  313. package/locale/nb.js +1 -1
  314. package/locale/ne.js +1 -1
  315. package/locale/nl.js +1 -1
  316. package/locale/nn.js +1 -1
  317. package/locale/no.js +1 -1
  318. package/locale/pl.js +1 -1
  319. package/locale/pt-BR.js +1 -1
  320. package/locale/pt.js +1 -1
  321. package/locale/ro.js +1 -1
  322. package/locale/ru.js +1 -1
  323. package/locale/si.js +1 -1
  324. package/locale/sk.js +1 -1
  325. package/locale/sl.js +1 -1
  326. package/locale/sq.js +1 -1
  327. package/locale/sr-Cyrl.js +1 -1
  328. package/locale/sr-ME.js +1 -1
  329. package/locale/sr.js +1 -1
  330. package/locale/sv.js +1 -1
  331. package/locale/ta.js +1 -1
  332. package/locale/th.js +1 -1
  333. package/locale/tl.js +1 -1
  334. package/locale/tr.js +1 -1
  335. package/locale/tzm-Latn.js +1 -1
  336. package/locale/tzm.js +1 -1
  337. package/locale/uk.js +1 -1
  338. package/locale/uz.js +1 -1
  339. package/locale/vi.js +1 -1
  340. package/locale/zh-TW.js +1 -1
  341. package/locale/zh.js +1 -1
  342. package/locale.js +1 -1
  343. package/mapping/ArcGISSublayerExtension.js +1 -1
  344. package/mapping/BasemapExtension.js +1 -1
  345. package/mapping/Bookmark.d.ts +1 -1
  346. package/mapping/Bookmark.js +1 -1
  347. package/mapping/BuildingComponentSublayerExtension.js +1 -1
  348. package/mapping/BuildingGroupSublayerExtension.js +1 -1
  349. package/mapping/BuildingSceneLayerExtension.js +1 -1
  350. package/mapping/BuildingSublayerExtension.js +1 -1
  351. package/mapping/CSVLayerExtension.js +1 -1
  352. package/mapping/ElevationLayerExtension.js +1 -1
  353. package/mapping/FeatureCollectionLayerExtension.js +1 -1
  354. package/mapping/FeatureLayerExtension.js +1 -1
  355. package/mapping/FeatureLayerExtensionBase.js +1 -1
  356. package/mapping/GeoRSSLayerExtension.js +1 -1
  357. package/mapping/GraphicsLayerExtension.js +1 -1
  358. package/mapping/GroundExtension.d.ts +1 -1
  359. package/mapping/GroundExtension.js +1 -1
  360. package/mapping/GroupLayerExtension.js +1 -1
  361. package/mapping/ImageryLayerExtension.js +1 -1
  362. package/mapping/ImageryTileLayerExtension.js +1 -1
  363. package/mapping/IntegratedMeshLayerExtension.js +1 -1
  364. package/mapping/KMLLayerExtension.js +1 -1
  365. package/mapping/KMLSublayerExtension.js +1 -1
  366. package/mapping/LayerExtension.js +1 -1
  367. package/mapping/MapConstraints.js +1 -1
  368. package/mapping/MapExtension.d.ts +5 -5
  369. package/mapping/MapExtension.js +1 -1
  370. package/mapping/MapImageLayerExtension.d.ts +1 -1
  371. package/mapping/MapImageLayerExtension.js +1 -1
  372. package/mapping/MapImageSublayerExtension.js +1 -1
  373. package/mapping/OpenStreetMapLayerExtension.js +1 -1
  374. package/mapping/PointCloudLayerExtension.js +1 -1
  375. package/mapping/SceneLayerExtension.js +1 -1
  376. package/mapping/StreamLayerExtension.js +1 -1
  377. package/mapping/SublayerExtension.js +1 -1
  378. package/mapping/SubtypeGroupLayerExtension.js +1 -1
  379. package/mapping/SubtypeSublayerExtension.js +1 -1
  380. package/mapping/TileLayerExtension.js +1 -1
  381. package/mapping/TileSublayerExtension.js +1 -1
  382. package/mapping/UnsupportedLayerExtension.js +1 -1
  383. package/mapping/VectorTileLayerExtension.js +1 -1
  384. package/mapping/WMSLayerExtension.js +1 -1
  385. package/mapping/WMSSublayerExtension.js +1 -1
  386. package/mapping/WMTSLayerExtension.js +1 -1
  387. package/mapping/WMTSSublayerExtension.js +1 -1
  388. package/mapping/WebTileLayerExtension.js +1 -1
  389. package/mapping/_LayerExtension.d.ts +1 -1
  390. package/mapping/_LayerExtension.js +1 -1
  391. package/mapping/_SublayerExtension.d.ts +1 -1
  392. package/mapping/_SublayerExtension.js +1 -1
  393. package/mapping/convert.js +1 -1
  394. package/mapping/support/ArrayWrappedCollection.js +1 -1
  395. package/mapping/support/DefaultLayerExtensionFactory.js +1 -1
  396. package/mapping/support/DefaultSublayerExtensionFactory.js +1 -1
  397. package/mapping/support/LayerListSettings.js +1 -1
  398. package/mapping/support/PopupTemplateFeatureSettings.js +1 -1
  399. package/mapping/support/WfsCapabilities.js +1 -1
  400. package/mapping/support/WfsFeatureType.js +1 -1
  401. package/mapping/support/_LayerExtensionCollection.js +1 -1
  402. package/mapping/support/_SublayerExtensionCollection.js +1 -1
  403. package/mapping/support/_kml.js +1 -1
  404. package/mapping/support/ogc.js +1 -1
  405. package/menus/Menu.js +1 -1
  406. package/menus/MenuItem.js +1 -1
  407. package/package.json +36 -35
  408. package/portal/ApplicationProperties.d.ts +16 -13
  409. package/portal/Background.d.ts +3 -2
  410. package/portal/Background.js +1 -1
  411. package/portal/BaseMap.d.ts +1 -0
  412. package/portal/BaseMap.js +1 -1
  413. package/portal/BaseMapLayer.d.ts +3 -2
  414. package/portal/BingLayer.d.ts +1 -0
  415. package/portal/Bookmark.d.ts +1 -0
  416. package/portal/BuildingSceneLayer.d.ts +1 -1
  417. package/portal/BuildingSceneLayer.js +1 -1
  418. package/portal/BuildingSceneSublayer.js +1 -1
  419. package/portal/CIMSymbol.d.ts +1 -0
  420. package/portal/CSVLayer.d.ts +1 -0
  421. package/portal/CSVLayer.js +1 -1
  422. package/portal/Camera.d.ts +1 -0
  423. package/portal/Camera.js +1 -1
  424. package/portal/ClassBreaksRenderer.d.ts +4 -2
  425. package/portal/CodedValueDomain.d.ts +2 -2
  426. package/portal/CodedValueDomain.js +1 -1
  427. package/portal/ColorClassBreakInfo.d.ts +1 -0
  428. package/portal/ColorUniqueValueInfos.d.ts +1 -0
  429. package/portal/DataSource.d.ts +5 -4
  430. package/portal/DefinitionEditor.d.ts +3 -2
  431. package/portal/Domain.d.ts +3 -2
  432. package/portal/Domain.js +1 -1
  433. package/portal/DrawingInfo.d.ts +1 -0
  434. package/portal/DrawingInfo.js +1 -1
  435. package/portal/DynamicDataLayer.d.ts +2 -2
  436. package/portal/DynamicMapLayer.d.ts +1 -1
  437. package/portal/Edges.d.ts +1 -1
  438. package/portal/Edges.js +1 -1
  439. package/portal/Effect.d.ts +2 -2
  440. package/portal/ElevationInfo.d.ts +2 -2
  441. package/portal/ElevationInfo.js +1 -1
  442. package/portal/ElevationLayer.d.ts +1 -0
  443. package/portal/ElevationLayer.js +1 -1
  444. package/portal/Environment.d.ts +1 -0
  445. package/portal/Environment.js +1 -1
  446. package/portal/Extent.d.ts +1 -1
  447. package/portal/ExtrudeSymbol3DLayer.d.ts +1 -0
  448. package/portal/Feature.d.ts +1 -0
  449. package/portal/Feature.js +1 -1
  450. package/portal/FeatureCollection.d.ts +1 -0
  451. package/portal/FeatureLayer.d.ts +2 -1
  452. package/portal/FeatureLayer.js +1 -1
  453. package/portal/FeatureReduction.d.ts +1 -1
  454. package/portal/FeatureReduction.js +1 -1
  455. package/portal/FeatureSet.d.ts +1 -0
  456. package/portal/Field.d.ts +2 -2
  457. package/portal/Field.js +1 -1
  458. package/portal/FieldInfo.d.ts +2 -1
  459. package/portal/FillSymbol3DLayer.d.ts +1 -0
  460. package/portal/FormInfo.d.ts +13 -13
  461. package/portal/FormInfo.js +1 -1
  462. package/portal/Format.d.ts +2 -1
  463. package/portal/GeoRSSLayer.d.ts +1 -0
  464. package/portal/GeoRSSLayer.js +1 -1
  465. package/portal/Geometry.d.ts +3 -3
  466. package/portal/Geometry.js +1 -1
  467. package/portal/Ground.d.ts +1 -1
  468. package/portal/Ground.js +1 -1
  469. package/portal/GroupLayer.d.ts +2 -1
  470. package/portal/GroupLayer.js +1 -1
  471. package/portal/HeatmapRenderer.d.ts +2 -0
  472. package/portal/IconSymbol3DLayer.d.ts +1 -0
  473. package/portal/ImageServiceLayer.d.ts +1 -0
  474. package/portal/ImageServiceLayer.js +1 -1
  475. package/portal/ImageServiceVectorLayer.d.ts +1 -0
  476. package/portal/InheritedDomain.d.ts +1 -1
  477. package/portal/InheritedDomain.js +1 -1
  478. package/portal/InitialState.d.ts +1 -0
  479. package/portal/InitialState.js +1 -1
  480. package/portal/IntegratedMeshLayer.d.ts +1 -0
  481. package/portal/IntegratedMeshLayer.js +1 -1
  482. package/portal/Item.d.ts +2 -1
  483. package/portal/Item.js +1 -1
  484. package/portal/JoinTableDataSource.d.ts +2 -2
  485. package/portal/KMLLayer.d.ts +1 -0
  486. package/portal/KMLLayer.js +1 -1
  487. package/portal/LabelSymbol3D.d.ts +1 -0
  488. package/portal/LabelingInfo.d.ts +3 -2
  489. package/portal/LabelingInfo.js +1 -1
  490. package/portal/Layer.d.ts +1 -1
  491. package/portal/Layer.js +1 -1
  492. package/portal/LayerBase.js +1 -1
  493. package/portal/LayerDefinition.d.ts +8 -7
  494. package/portal/LayerDefinition.js +1 -1
  495. package/portal/Lighting.d.ts +3 -1
  496. package/portal/Lighting.js +1 -1
  497. package/portal/LineSymbol3D.d.ts +1 -0
  498. package/portal/LineSymbol3DLayer.d.ts +1 -0
  499. package/portal/LocationInfo.d.ts +1 -0
  500. package/portal/MapFloorInfo.d.ts +4 -4
  501. package/portal/MapFloorInfo.js +1 -1
  502. package/portal/MapRangeInfo.d.ts +1 -0
  503. package/portal/MapServiceLayer.d.ts +1 -0
  504. package/portal/MapServiceLayer.js +1 -1
  505. package/portal/MediaInfo.d.ts +1 -1
  506. package/portal/MediaInfo.js +1 -1
  507. package/portal/MeshSymbol3D.d.ts +1 -0
  508. package/portal/MosaicRule.d.ts +3 -2
  509. package/portal/MosaicRule.js +1 -1
  510. package/portal/Multipoint.d.ts +1 -1
  511. package/portal/ObjectSymbol3DLayer.d.ts +1 -0
  512. package/portal/OpenStreetMapLayer.d.ts +1 -0
  513. package/portal/OpenStreetMapLayer.js +1 -1
  514. package/portal/OperationalLayer.d.ts +3 -3
  515. package/portal/PathSymbol3DLayer.d.ts +1 -0
  516. package/portal/PictureFillSymbol.d.ts +1 -0
  517. package/portal/PictureMarkerSymbol.d.ts +1 -0
  518. package/portal/Point.d.ts +2 -1
  519. package/portal/PointCloudBitfieldFilter.d.ts +1 -0
  520. package/portal/PointCloudClassBreaksRenderer.d.ts +1 -0
  521. package/portal/PointCloudFilter.d.ts +2 -1
  522. package/portal/PointCloudFixedSizeAlgorithm.d.ts +1 -0
  523. package/portal/PointCloudLayer.d.ts +1 -0
  524. package/portal/PointCloudLayer.js +1 -1
  525. package/portal/PointCloudRGBRenderer.d.ts +1 -0
  526. package/portal/PointCloudRenderer.d.ts +3 -1
  527. package/portal/PointCloudRenderer.js +1 -1
  528. package/portal/PointCloudReturnFilter.d.ts +1 -0
  529. package/portal/PointCloudSplatAlgorithm.d.ts +1 -0
  530. package/portal/PointCloudStretchRenderer.d.ts +1 -0
  531. package/portal/PointCloudUniqueValueRenderer.d.ts +1 -0
  532. package/portal/PointCloudValueFilter.d.ts +1 -0
  533. package/portal/PointSymbol3D.d.ts +2 -1
  534. package/portal/Polygon.d.ts +1 -1
  535. package/portal/PolygonSymbol3D.d.ts +1 -0
  536. package/portal/Polyline.d.ts +1 -1
  537. package/portal/PopupExpressionInfo.d.ts +2 -1
  538. package/portal/PopupInfo.d.ts +3 -1
  539. package/portal/PopupInfo.js +1 -1
  540. package/portal/PredominanceRenderer.d.ts +1 -0
  541. package/portal/Presentation.d.ts +1 -0
  542. package/portal/Presentation.js +1 -1
  543. package/portal/QueryTableDataSource.d.ts +1 -1
  544. package/portal/RangeDomain.d.ts +1 -1
  545. package/portal/RangeDomain.js +1 -1
  546. package/portal/RangeInfo.d.ts +1 -0
  547. package/portal/RasterDataSource.d.ts +1 -1
  548. package/portal/Renderer.d.ts +8 -6
  549. package/portal/Renderer.js +1 -1
  550. package/portal/RenderingRule.d.ts +3 -2
  551. package/portal/RenderingRule.js +1 -1
  552. package/portal/SceneLayer.d.ts +1 -0
  553. package/portal/SceneLayer.js +1 -1
  554. package/portal/SimpleFillSymbol.d.ts +2 -1
  555. package/portal/SimpleLineSymbol.d.ts +2 -1
  556. package/portal/SimpleMarkerSymbol.d.ts +2 -1
  557. package/portal/SimpleRenderer.d.ts +1 -0
  558. package/portal/Slide.d.ts +4 -4
  559. package/portal/Slide.js +1 -1
  560. package/portal/SpatialReference.d.ts +1 -0
  561. package/portal/SpatialReference.js +1 -1
  562. package/portal/StreamLayer.d.ts +1 -1
  563. package/portal/StreamLayer.js +1 -1
  564. package/portal/StyleSymbolReference.d.ts +1 -0
  565. package/portal/SubtypeGroupLayer.d.ts +3 -2
  566. package/portal/SubtypeGroupLayer.js +1 -1
  567. package/portal/SubtypeSublayer.d.ts +1 -0
  568. package/portal/SubtypeSublayer.js +1 -1
  569. package/portal/Symbol.d.ts +11 -11
  570. package/portal/Symbol.js +1 -1
  571. package/portal/Symbol3D.d.ts +7 -2
  572. package/portal/Table.d.ts +3 -3
  573. package/portal/Table.js +1 -1
  574. package/portal/TableDataSource.d.ts +1 -1
  575. package/portal/Template.d.ts +2 -1
  576. package/portal/Template.js +1 -1
  577. package/portal/TemporalRenderer.d.ts +1 -0
  578. package/portal/TextSymbol.d.ts +1 -0
  579. package/portal/TextSymbol3DLayer.d.ts +1 -0
  580. package/portal/TileInfo.d.ts +2 -1
  581. package/portal/TileInfo.js +1 -1
  582. package/portal/TiledImageServiceLayer.d.ts +1 -0
  583. package/portal/TiledImageServiceLayer.js +1 -1
  584. package/portal/TiledMapServiceLayer.d.ts +2 -1
  585. package/portal/TiledMapServiceLayer.js +1 -1
  586. package/portal/Type.d.ts +2 -4
  587. package/portal/Type.js +1 -1
  588. package/portal/UniqueValueFromStyle.d.ts +1 -0
  589. package/portal/UniqueValueRenderer.d.ts +2 -0
  590. package/portal/UtilityNetwork.d.ts +2 -2
  591. package/portal/UtilityNetwork.js +1 -1
  592. package/portal/Value.d.ts +1 -1
  593. package/portal/VectorFieldRenderer.d.ts +1 -1
  594. package/portal/VectorTileLayer.d.ts +1 -0
  595. package/portal/VectorTileLayer.js +1 -1
  596. package/portal/VerticalOffset.d.ts +1 -1
  597. package/portal/Viewpoint.d.ts +1 -0
  598. package/portal/Viewpoint.js +1 -1
  599. package/portal/VisualVariable.d.ts +10 -4
  600. package/portal/WMSLayer.d.ts +1 -0
  601. package/portal/WMSLayer.js +1 -1
  602. package/portal/WMSSublayer.d.ts +1 -0
  603. package/portal/WMSSublayer.js +1 -1
  604. package/portal/WMTSInfo.d.ts +1 -1
  605. package/portal/WMTSInfo.js +1 -1
  606. package/portal/Weather.d.ts +6 -1
  607. package/portal/Weather.js +1 -1
  608. package/portal/WebMap.d.ts +3 -3
  609. package/portal/WebMap.js +1 -1
  610. package/portal/WebScene.d.ts +3 -1
  611. package/portal/WebScene.js +1 -1
  612. package/portal/WebSceneBaseMap.d.ts +1 -0
  613. package/portal/WebSceneBaseMap.js +1 -1
  614. package/portal/WebTileLayer.d.ts +1 -0
  615. package/portal/WebTileLayer.js +1 -1
  616. package/portal/Widgets.d.ts +6 -4
  617. package/portal/Widgets.js +1 -1
  618. package/portal/_LayerBase.d.ts +2 -2
  619. package/portal/_layerHelper.js +1 -1
  620. package/portal/_utils.js +1 -1
  621. package/support/Action.d.ts +4 -4
  622. package/support/ArcGISRequestHelper.js +1 -1
  623. package/support/Cancellable.d.ts +1 -1
  624. package/support/Cancellable.js +1 -1
  625. package/support/FormatSettings.js +1 -1
  626. package/support/InitializableBase.d.ts +1 -1
  627. package/support/InitializableBase.js +1 -1
  628. package/support/InitializableCollectionProxy.js +1 -1
  629. package/support/InitializeError.js +1 -1
  630. package/support/Observable.js +1 -1
  631. package/support/ReadOnlyInitializableCollection.js +1 -1
  632. package/support/Serializable.d.ts +4 -4
  633. package/support/Serializable.js +1 -1
  634. package/support/Settings.js +1 -1
  635. package/support/_ArcGISRelationshipCollection.js +1 -1
  636. package/support/_esriInternal.js +1 -1
  637. package/support/_graphicsQuery.js +1 -1
  638. package/support/_query.js +1 -1
  639. package/support/_requestCache.js +1 -1
  640. package/support/_restApiJson.d.ts +1 -1
  641. package/support/esri.d.ts +76 -76
  642. package/support/esri.js +1 -1
  643. package/tasks/geocoding/ArcGISGeocoder.js +1 -1
  644. package/tasks/geocoding/Geocoder.d.ts +1 -1
  645. package/tasks/geocoding/Geocoder.js +1 -1
  646. package/tasks/geocoding/utilities.js +1 -1
  647. package/tasks/identify/ArcGISSublayerQueryIdentifyProvider.js +1 -1
  648. package/tasks/identify/BuildingComponentSublayerClientSideIdentifyProvider.js +1 -1
  649. package/tasks/identify/BuildingComponentSublayerHitTestIdentifyProvider.js +1 -1
  650. package/tasks/identify/CSVLayer3DHitTestIdentifyProvider.js +1 -1
  651. package/tasks/identify/CSVLayerClientSideQueryIdentifyProvider.js +1 -1
  652. package/tasks/identify/ClientSideIdentifyProvider.d.ts +2 -2
  653. package/tasks/identify/ClientSideIdentifyProvider.js +1 -1
  654. package/tasks/identify/FeatureLayer3DHitTestIdentifyProvider.js +1 -1
  655. package/tasks/identify/FeatureLayerClientSideIdentifyProvider.js +1 -1
  656. package/tasks/identify/FeatureLayerQueryIdentifyProvider.js +1 -1
  657. package/tasks/identify/GeoRSSLayerIdentifyProvider.js +1 -1
  658. package/tasks/identify/GraphicsLayerQueryIdentifyProvider.js +1 -1
  659. package/tasks/identify/HitTestIdentifyProvider.d.ts +2 -2
  660. package/tasks/identify/HitTestIdentifyProvider.js +1 -1
  661. package/tasks/identify/IdentifyError.js +1 -1
  662. package/tasks/identify/IdentifyProviderBase.js +1 -1
  663. package/tasks/identify/IdentifyService.js +1 -1
  664. package/tasks/identify/ImageryLayerIdentifyProvider.js +1 -1
  665. package/tasks/identify/KMLLayerQueryIdentifyProvider.js +1 -1
  666. package/tasks/identify/PointCloudLayerHitTestIdentifyProvider.js +1 -1
  667. package/tasks/identify/SceneLayerClientSideIdentifyProvider.js +1 -1
  668. package/tasks/identify/SceneLayerHitTestIdentifyProvider.js +1 -1
  669. package/tasks/identify/SceneLayerQueryIdentifyProvider.js +1 -1
  670. package/tasks/identify/StreamLayerClientSideQueryIdentifyProvider.js +1 -1
  671. package/tasks/identify/StreamLayerQueryIdentifyProvider.js +1 -1
  672. package/tasks/identify/SubtypeSublayerClientSideIdentifyProvider.js +1 -1
  673. package/tasks/identify/SubtypeSublayerQueryIdentifyProvider.js +1 -1
  674. package/tasks/identify/WMSSublayerIdentifyProvider.js +1 -1
  675. package/tasks/query/ArcGISRelationship.js +1 -1
  676. package/tasks/query/ArcGISServiceTableQueryProvider.js +1 -1
  677. package/tasks/query/ArcGISSublayerQueryProvider.js +1 -1
  678. package/tasks/query/BuildingComponentSublayerClientSideQueryProvider.js +1 -1
  679. package/tasks/query/CSVLayerClientSideQueryProvider.js +1 -1
  680. package/tasks/query/CSVLayerQueryProvider.js +1 -1
  681. package/tasks/query/ClientSideQueryProvider.d.ts +2 -2
  682. package/tasks/query/ClientSideQueryProvider.js +1 -1
  683. package/tasks/query/FeatureLayerQueryProvider.js +1 -1
  684. package/tasks/query/GeoRSSLayerQueryProvider.js +1 -1
  685. package/tasks/query/GraphicsLayerQueryProvider.js +1 -1
  686. package/tasks/query/ImageryLayerQueryProvider.js +1 -1
  687. package/tasks/query/KMLLayerQueryProvider.js +1 -1
  688. package/tasks/query/QueryBasedRelationship.js +1 -1
  689. package/tasks/query/QueryError.js +1 -1
  690. package/tasks/query/QueryProviderBase.js +1 -1
  691. package/tasks/query/QueryService.js +1 -1
  692. package/tasks/query/SceneLayerClientSideQueryProvider.js +1 -1
  693. package/tasks/query/SceneLayerQueryProvider.js +1 -1
  694. package/tasks/query/StreamLayerClientSideQueryProvider.js +1 -1
  695. package/tasks/query/StreamLayerQueryProvider.js +1 -1
  696. package/tasks/query/SubtypeSublayerQueryProvider.js +1 -1
  697. package/tasks/search/ArcGISGeocoderSearchProvider.js +1 -1
  698. package/tasks/search/GeocoderSearchProvider.js +1 -1
  699. package/tasks/search/QuerySearchProvider.js +1 -1
  700. package/tasks/search/SearchError.js +1 -1
  701. package/tasks/search/SearchProviderBase.js +1 -1
  702. package/tasks/search/SearchService.js +1 -1
  703. package/tasks/search/_utilities.js +1 -1
  704. package/utilities/CollectionProxy.js +1 -1
  705. package/utilities/CopyOnWriteCollection.js +1 -1
  706. package/utilities/GeometryServiceError.js +1 -1
  707. package/utilities/MapTransformCollection.js +1 -1
  708. package/utilities/ObservableMap.js +1 -1
  709. package/utilities/ObservableSet.js +1 -1
  710. package/utilities/ObservableWeakSet.js +1 -1
  711. package/utilities/ReadOnlyCollection.js +1 -1
  712. package/utilities/ReadOnlyMap.js +1 -1
  713. package/utilities/_layers.js +1 -1
  714. package/utilities/_ogc.js +1 -1
  715. package/utilities/arcade.js +1 -1
  716. package/utilities/array.js +1 -1
  717. package/utilities/asyncIterable.d.ts +1 -1
  718. package/utilities/asyncIterable.js +1 -1
  719. package/utilities/basemaps.js +1 -1
  720. package/utilities/checkArg.js +1 -1
  721. package/utilities/collection.js +1 -1
  722. package/utilities/date.js +1 -1
  723. package/utilities/esri.js +1 -1
  724. package/utilities/extensions.js +1 -1
  725. package/utilities/geometry.d.ts +2 -2
  726. package/utilities/geometry.js +1 -1
  727. package/utilities/iterable.js +1 -1
  728. package/utilities/log.d.ts +1 -1
  729. package/utilities/log.js +1 -1
  730. package/utilities/mapping.js +1 -1
  731. package/utilities/math.js +1 -1
  732. package/utilities/number.js +1 -1
  733. package/utilities/object.js +1 -1
  734. package/utilities/portal.d.ts +3 -3
  735. package/utilities/portal.js +1 -1
  736. package/utilities/promise.d.ts +1 -1
  737. package/utilities/promise.js +1 -1
  738. package/utilities/query.js +1 -1
  739. package/utilities/relationships.js +1 -1
  740. package/utilities/scaleRanges.d.ts +1 -1
  741. package/utilities/set.js +1 -1
  742. package/utilities/string.d.ts +6 -21
  743. package/utilities/string.js +1 -1
  744. package/utilities/symbol.js +1 -1
  745. package/utilities/uri.js +1 -1
  746. package/utilities/watch.js +1 -1
  747. package/version.d.ts +1 -1
  748. package/version.js +1 -1
package/support/esri.d.ts CHANGED
@@ -7,52 +7,52 @@ import type ColumnChartMediaInfo from "@arcgis/core/popup/content/ColumnChartMed
7
7
  import type LineCharMediaInfo from "@arcgis/core/popup/content/LineChartMediaInfo";
8
8
  import type PieChartMediaInfo from "@arcgis/core/popup/content/PieChartMediaInfo";
9
9
  export { Collection, Evented };
10
- export declare type EsriError = __esri.Error;
11
- export declare type EsriErrorDetails = __esri.EsriErrorDetails;
12
- export declare type EventHandler = __esri.EventHandler;
13
- export declare type GraphicHit = __esri.GraphicHit;
14
- export declare type SceneViewGraphicHit = __esri.SceneViewGraphicHit;
15
- export declare type PortalItemProperties = __esri.PortalItemProperties;
16
- export declare type WebMapProperties = __esri.WebMapProperties;
17
- export declare type WebSceneProperties = __esri.WebSceneProperties;
18
- export declare type RequestOptions = __esri.RequestOptions;
19
- export declare type FeatureLayerProperties = __esri.FeatureLayerProperties;
20
- export declare type TileLayerProperties = __esri.TileLayerProperties;
21
- export declare type PointCloudLayerProperties = __esri.PointCloudLayerProperties;
22
- export declare type IntegratedMeshLayerProperties = __esri.IntegratedMeshLayerProperties;
23
- export declare type ImageryLayerProperties = __esri.ImageryLayerProperties;
24
- export declare type WebTileLayerProperties = __esri.WebTileLayerProperties;
25
- export declare type OpenStreetMapLayerProperties = __esri.OpenStreetMapLayerProperties;
26
- export declare type RasterFunctionProperties = __esri.RasterFunctionProperties;
27
- export declare type MapImageLayerProperties = __esri.MapImageLayerProperties;
28
- export declare type ElevationLayerProperties = __esri.ElevationLayerProperties;
29
- export declare type PresentationProperties = __esri.PresentationProperties;
30
- export declare type SceneLayerProperties = __esri.SceneLayerProperties;
31
- export declare type StreamLayerProperties = __esri.StreamLayerProperties;
32
- export declare type VectorTileLayerProperties = __esri.VectorTileLayerProperties;
33
- export declare type PopupTemplateProperties = __esri.PopupTemplateProperties;
34
- export declare type CSVLayerCapabilities = __esri.CSVLayerCapabilities;
35
- export declare type FieldProperties = __esri.FieldProperties;
36
- export declare type FeatureLayerElevationInfo = __esri.FeatureLayerBaseElevationInfo;
37
- export declare type FeatureLayerApplyEdits = __esri.FeatureLayerApplyEditsEdits;
38
- export declare type FeatureLayerCapabilities = __esri.FeatureLayerCapabilities;
39
- export declare type FeatureEditResult = __esri.FeatureEditResult;
40
- export declare type LayerViewCreateEvent = __esri.ViewLayerviewCreateEvent;
41
- export declare type LayerViewDestroyEvent = __esri.ViewLayerviewDestroyEvent;
42
- export declare type SceneViewHitTestResult = __esri.SceneViewHitTestResult;
43
- export declare type SlideVisibleLayers = __esri.SlideVisibleLayers;
44
- export declare type RasterInfo = __esri.RasterInfo;
45
- export declare type BuildingComponentSublayerCapabilities = __esri.BuildingComponentSublayerCapabilities;
46
- export declare type BuildingComponentSublayerCapabilitiesData = __esri.BuildingComponentSublayerCapabilitiesData;
47
- export declare type RelationshipQueryProperties = __esri.RelationshipQueryProperties;
48
- export declare type locatorAddressToLocationsParams = __esri.locatorAddressToLocationsParams;
49
- export declare type locatorAddressesToLocationsParams = __esri.locatorAddressesToLocationsParams;
50
- export declare type locatorSuggestLocationsParams = __esri.locatorSuggestLocationsParams;
51
- export declare type TimeIntervalUnits = __esri.TimeIntervalProperties["unit"];
52
- export declare type WebMapTimeSliderObject = __esri.WebMapTimeSlider;
53
- export declare type WebMapWidgetsObject = __esri.Widgets;
54
- export declare type EditsResult = __esri.EditsResult;
55
- export declare type Domain = __esri.CodedValueDomain | __esri.InheritedDomain | __esri.RangeDomain;
10
+ export type EsriError = __esri.Error;
11
+ export type EsriErrorDetails = __esri.EsriErrorDetails;
12
+ export type EventHandler = __esri.EventHandler;
13
+ export type GraphicHit = __esri.GraphicHit;
14
+ export type SceneViewGraphicHit = __esri.SceneViewGraphicHit;
15
+ export type PortalItemProperties = __esri.PortalItemProperties;
16
+ export type WebMapProperties = __esri.WebMapProperties;
17
+ export type WebSceneProperties = __esri.WebSceneProperties;
18
+ export type RequestOptions = __esri.RequestOptions;
19
+ export type FeatureLayerProperties = __esri.FeatureLayerProperties;
20
+ export type TileLayerProperties = __esri.TileLayerProperties;
21
+ export type PointCloudLayerProperties = __esri.PointCloudLayerProperties;
22
+ export type IntegratedMeshLayerProperties = __esri.IntegratedMeshLayerProperties;
23
+ export type ImageryLayerProperties = __esri.ImageryLayerProperties;
24
+ export type WebTileLayerProperties = __esri.WebTileLayerProperties;
25
+ export type OpenStreetMapLayerProperties = __esri.OpenStreetMapLayerProperties;
26
+ export type RasterFunctionProperties = __esri.RasterFunctionProperties;
27
+ export type MapImageLayerProperties = __esri.MapImageLayerProperties;
28
+ export type ElevationLayerProperties = __esri.ElevationLayerProperties;
29
+ export type PresentationProperties = __esri.PresentationProperties;
30
+ export type SceneLayerProperties = __esri.SceneLayerProperties;
31
+ export type StreamLayerProperties = __esri.StreamLayerProperties;
32
+ export type VectorTileLayerProperties = __esri.VectorTileLayerProperties;
33
+ export type PopupTemplateProperties = __esri.PopupTemplateProperties;
34
+ export type CSVLayerCapabilities = __esri.CSVLayerCapabilities;
35
+ export type FieldProperties = __esri.FieldProperties;
36
+ export type FeatureLayerElevationInfo = __esri.FeatureLayerBaseElevationInfo;
37
+ export type FeatureLayerApplyEdits = __esri.FeatureLayerApplyEditsEdits;
38
+ export type FeatureLayerCapabilities = __esri.FeatureLayerCapabilities;
39
+ export type FeatureEditResult = __esri.FeatureEditResult;
40
+ export type LayerViewCreateEvent = __esri.ViewLayerviewCreateEvent;
41
+ export type LayerViewDestroyEvent = __esri.ViewLayerviewDestroyEvent;
42
+ export type SceneViewHitTestResult = __esri.SceneViewHitTestResult;
43
+ export type SlideVisibleLayers = __esri.SlideVisibleLayers;
44
+ export type RasterInfo = __esri.RasterInfo;
45
+ export type BuildingComponentSublayerCapabilities = __esri.BuildingComponentSublayerCapabilities;
46
+ export type BuildingComponentSublayerCapabilitiesData = __esri.BuildingComponentSublayerCapabilitiesData;
47
+ export type RelationshipQueryProperties = __esri.RelationshipQueryProperties;
48
+ export type locatorAddressToLocationsParams = __esri.locatorAddressToLocationsParams;
49
+ export type locatorAddressesToLocationsParams = __esri.locatorAddressesToLocationsParams;
50
+ export type locatorSuggestLocationsParams = __esri.locatorSuggestLocationsParams;
51
+ export type TimeIntervalUnits = __esri.TimeIntervalProperties["unit"];
52
+ export type WebMapTimeSliderObject = __esri.WebMapTimeSlider;
53
+ export type WebMapWidgetsObject = __esri.Widgets;
54
+ export type EditsResult = __esri.EditsResult;
55
+ export type Domain = __esri.CodedValueDomain | __esri.InheritedDomain | __esri.RangeDomain;
56
56
  export interface PointCloudLayerCachedStatistics {
57
57
  attribute: string;
58
58
  labels: PointCloudLayerCachedStatisticsLabels;
@@ -85,32 +85,32 @@ export interface PointCloudLayerCachedStatisticsHistogram {
85
85
  maximum: number;
86
86
  minimum: number;
87
87
  }
88
- export declare type ChartMediaInfo = BarChartMediaInfo | ColumnChartMediaInfo | LineCharMediaInfo | PieChartMediaInfo;
89
- export declare type EventCallback<T = unknown> = (event: T) => void;
90
- export declare type GeometryType = __esri.Geometry["type"];
91
- export declare type FieldType = __esri.Field["type"];
92
- export declare type SymbolType = __esri.Symbol["type"];
93
- export declare type SimpleFillSymbolStyle = __esri.SimpleFillSymbol["style"];
94
- export declare type ElevationMode = "on-the-ground" | "relative-to-ground" | "relative-to-scene" | "absolute-height";
95
- export declare type DomainType = __esri.Domain["type"];
96
- export declare type MosaicMethodType = __esri.MosaicRule["method"];
97
- export declare type MosaicOperationType = __esri.MosaicRule["operation"];
98
- export declare type OutputPixelType = __esri.RasterFunction["outputPixelType"];
99
- export declare type LabelPlacement = __esri.LabelClass["labelPlacement"];
100
- export declare type DateFormat = __esri.FieldInfoFormat["dateFormat"];
101
- export declare type LoadStatus = "not-loaded" | "loading" | "failed" | "loaded";
102
- export declare type MediaType = "image" | "bar-chart" | "column-chart" | "line-chart" | "pie-chart";
103
- export declare type NavigationConstraintType = __esri.GroundNavigationConstraint["type"];
104
- export declare type RelationshipRole = "esriRelRoleOrigin" | "esriRelRoleDestination";
105
- export declare type VisibilityMode = __esri.GroupLayer["visibilityMode"];
106
- export declare type ListMode = __esri.Layer["listMode"];
107
- export declare type DrawingTool = __esri.FeatureTemplate["drawingTool"];
108
- export declare type PortalItemType = "Web Map" | "Web Scene" | "Feature Service" | "Map Service" | "Image Service" | "KML" | "Feature Collection" | "Vector Tile Service" | "Scene Service" | "Stream Service" | "WMTS" | "WMS";
88
+ export type ChartMediaInfo = BarChartMediaInfo | ColumnChartMediaInfo | LineCharMediaInfo | PieChartMediaInfo;
89
+ export type EventCallback<T = unknown> = (event: T) => void;
90
+ export type GeometryType = __esri.Geometry["type"];
91
+ export type FieldType = __esri.Field["type"];
92
+ export type SymbolType = __esri.Symbol["type"];
93
+ export type SimpleFillSymbolStyle = __esri.SimpleFillSymbol["style"];
94
+ export type ElevationMode = "on-the-ground" | "relative-to-ground" | "relative-to-scene" | "absolute-height";
95
+ export type DomainType = __esri.Domain["type"];
96
+ export type MosaicMethodType = __esri.MosaicRule["method"];
97
+ export type MosaicOperationType = __esri.MosaicRule["operation"];
98
+ export type OutputPixelType = __esri.RasterFunction["outputPixelType"];
99
+ export type LabelPlacement = __esri.LabelClass["labelPlacement"];
100
+ export type DateFormat = __esri.FieldInfoFormat["dateFormat"];
101
+ export type LoadStatus = "not-loaded" | "loading" | "failed" | "loaded";
102
+ export type MediaType = "image" | "bar-chart" | "column-chart" | "line-chart" | "pie-chart";
103
+ export type NavigationConstraintType = __esri.GroundNavigationConstraint["type"];
104
+ export type RelationshipRole = "esriRelRoleOrigin" | "esriRelRoleDestination";
105
+ export type VisibilityMode = __esri.GroupLayer["visibilityMode"];
106
+ export type ListMode = __esri.Layer["listMode"];
107
+ export type DrawingTool = __esri.FeatureTemplate["drawingTool"];
108
+ export type PortalItemType = "Web Map" | "Web Scene" | "Feature Service" | "Map Service" | "Image Service" | "KML" | "Feature Collection" | "Vector Tile Service" | "Scene Service" | "Stream Service" | "WMTS" | "WMS";
109
109
  /**
110
110
  * A callback that gets invoked by {@link AccessorLike.watch} to notify observers
111
111
  * about property changes.
112
112
  */
113
- export declare type WatchCallback<T = any, U = any> = (newValue?: T, oldValue?: T, propertyName?: string, target?: U) => void;
113
+ export type WatchCallback<T = any, U = any> = (newValue?: T, oldValue?: T, propertyName?: string, target?: U) => void;
114
114
  /**
115
115
  * An object that supports Accessor-style observability.
116
116
  */
@@ -180,27 +180,27 @@ export interface ChangeEvent<T> {
180
180
  /**
181
181
  * A callback that is invoked.
182
182
  */
183
- export declare type ChangeEventCallback<T> = (event: ChangeEvent<T>) => void;
183
+ export type ChangeEventCallback<T> = (event: ChangeEvent<T>) => void;
184
184
  /**
185
185
  * A callback that is invoked for an item..
186
186
  */
187
- export declare type ItemCallback<T> = (item: T, index: number) => void;
187
+ export type ItemCallback<T> = (item: T, index: number) => void;
188
188
  /**
189
189
  * A callback that is invoked when testing an item for a condition.
190
190
  */
191
- export declare type ItemTestCallback<T> = (item: T, index: number) => boolean;
191
+ export type ItemTestCallback<T> = (item: T, index: number) => boolean;
192
192
  /**
193
193
  * A callback that is invoked when mapping an item to another item.
194
194
  */
195
- export declare type ItemMapCallback<T, U> = (item: T, index: number) => U;
195
+ export type ItemMapCallback<T, U> = (item: T, index: number) => U;
196
196
  /**
197
197
  * A callback that is invoked for each item when reducing a collection.
198
198
  */
199
- export declare type ItemReduceCallback<T, U> = (previousValue: U, currentValue: T, index: number) => U;
199
+ export type ItemReduceCallback<T, U> = (previousValue: U, currentValue: T, index: number) => U;
200
200
  /**
201
201
  * A callback that is invoked when comparing two items.
202
202
  */
203
- export declare type ItemCompareCallback<T> = (firstItem: T, secondItem: T) => number;
203
+ export type ItemCompareCallback<T> = (firstItem: T, secondItem: T) => number;
204
204
  /**
205
205
  * Base interface for Esri sublayer classes.
206
206
  */
@@ -287,8 +287,8 @@ export declare const wellKnownBasemapTitles: Record<WellKnownBasemap, string>;
287
287
  * The ESRI units for distance. See
288
288
  * {@link https://developers.arcgis.com/javascript/latest/api-reference/esri-tasks-support-BufferParameters.html#unit}.
289
289
  */
290
- export declare type DistanceUnit = __esri.DistanceParameters["distanceUnit"];
290
+ export type DistanceUnit = __esri.DistanceParameters["distanceUnit"];
291
291
  /**
292
292
  * Esri JS API sublayer types.
293
293
  */
294
- export declare type BuildingSceneSublayerType = __esri.BuildingGroupSublayer["type"] | __esri.BuildingComponentSublayer["type"];
294
+ export type BuildingSceneSublayerType = __esri.BuildingGroupSublayer["type"] | __esri.BuildingComponentSublayer["type"];
package/support/esri.js CHANGED
@@ -1 +1 @@
1
- import Collection from"@arcgis/core/core/Collection";import Evented from"@arcgis/core/core/Evented";export{Collection,Evented};export var WellKnownBasemap;!function(e){e.SATELLITE="satellite",e.HYBRID="hybrid",e.HYBRID_VECTOR="hybrid-vector",e.STREETS="streets",e.STREETS_VECTOR="streets-vector",e.TOPO="topo",e.TOPO_VECTOR="topo-vector",e.STREETS_NAVIGATION_VECTOR="streets-navigation-vector",e.STREETS_NIGHT_VECTOR="streets-night-vector",e.TERRAIN="terrain",e.TERRAIN_VECTOR="terrain-vector",e.DARK_GRAY="dark-gray",e.DARK_GRAY_VECTOR="dark-gray-vector",e.GRAY="gray",e.GRAY_VECTOR="gray-vector",e.NATIONAL_GEOGRAPHIC="national-geographic",e.OCEANS="oceans",e.OCEANS_VECTOR="oceans-vector",e.OPEN_STREET_MAP="osm",e.OPEN_STREET_MAP_VECTOR="osm-vector",e.STREETS_RELIEF_VECTOR="streets-relief-vector"}(WellKnownBasemap||(WellKnownBasemap={}));export const wellKnownBasemapTitles={[WellKnownBasemap.SATELLITE]:"Imagery",[WellKnownBasemap.HYBRID]:"Imagery with Labels",[WellKnownBasemap.HYBRID_VECTOR]:"Imagery with Labels",[WellKnownBasemap.STREETS]:"Streets",[WellKnownBasemap.STREETS_VECTOR]:"Streets",[WellKnownBasemap.TOPO]:"Topographic",[WellKnownBasemap.TOPO_VECTOR]:"Topographic",[WellKnownBasemap.STREETS_NAVIGATION_VECTOR]:"World Navigation Map",[WellKnownBasemap.STREETS_NIGHT_VECTOR]:"World Street Map (Night)",[WellKnownBasemap.TERRAIN]:"Terrain with Labels",[WellKnownBasemap.TERRAIN_VECTOR]:"Terrain with Labels",[WellKnownBasemap.DARK_GRAY]:"Dark Gray Canvas",[WellKnownBasemap.DARK_GRAY_VECTOR]:"Dark Gray Canvas",[WellKnownBasemap.GRAY]:"Light Gray Canvas",[WellKnownBasemap.GRAY_VECTOR]:"Light Gray Canvas",[WellKnownBasemap.NATIONAL_GEOGRAPHIC]:"National Geographic",[WellKnownBasemap.OCEANS]:"Oceans",[WellKnownBasemap.OCEANS_VECTOR]:"Oceans",[WellKnownBasemap.OPEN_STREET_MAP]:"OpenStreetMap",[WellKnownBasemap.OPEN_STREET_MAP_VECTOR]:"OpenStreetMap",[WellKnownBasemap.STREETS_RELIEF_VECTOR]:"World Street Map (with Relief)"};
1
+ import e from"@arcgis/core/core/Collection";import a from"@arcgis/core/core/Evented";export{e as Collection,a as Evented};export var WellKnownBasemap;!function(e){e.SATELLITE="satellite",e.HYBRID="hybrid",e.HYBRID_VECTOR="hybrid-vector",e.STREETS="streets",e.STREETS_VECTOR="streets-vector",e.TOPO="topo",e.TOPO_VECTOR="topo-vector",e.STREETS_NAVIGATION_VECTOR="streets-navigation-vector",e.STREETS_NIGHT_VECTOR="streets-night-vector",e.TERRAIN="terrain",e.TERRAIN_VECTOR="terrain-vector",e.DARK_GRAY="dark-gray",e.DARK_GRAY_VECTOR="dark-gray-vector",e.GRAY="gray",e.GRAY_VECTOR="gray-vector",e.NATIONAL_GEOGRAPHIC="national-geographic",e.OCEANS="oceans",e.OCEANS_VECTOR="oceans-vector",e.OPEN_STREET_MAP="osm",e.OPEN_STREET_MAP_VECTOR="osm-vector",e.STREETS_RELIEF_VECTOR="streets-relief-vector"}(WellKnownBasemap||(WellKnownBasemap={}));export const wellKnownBasemapTitles={[WellKnownBasemap.SATELLITE]:"Imagery",[WellKnownBasemap.HYBRID]:"Imagery with Labels",[WellKnownBasemap.HYBRID_VECTOR]:"Imagery with Labels",[WellKnownBasemap.STREETS]:"Streets",[WellKnownBasemap.STREETS_VECTOR]:"Streets",[WellKnownBasemap.TOPO]:"Topographic",[WellKnownBasemap.TOPO_VECTOR]:"Topographic",[WellKnownBasemap.STREETS_NAVIGATION_VECTOR]:"World Navigation Map",[WellKnownBasemap.STREETS_NIGHT_VECTOR]:"World Street Map (Night)",[WellKnownBasemap.TERRAIN]:"Terrain with Labels",[WellKnownBasemap.TERRAIN_VECTOR]:"Terrain with Labels",[WellKnownBasemap.DARK_GRAY]:"Dark Gray Canvas",[WellKnownBasemap.DARK_GRAY_VECTOR]:"Dark Gray Canvas",[WellKnownBasemap.GRAY]:"Light Gray Canvas",[WellKnownBasemap.GRAY_VECTOR]:"Light Gray Canvas",[WellKnownBasemap.NATIONAL_GEOGRAPHIC]:"National Geographic",[WellKnownBasemap.OCEANS]:"Oceans",[WellKnownBasemap.OCEANS_VECTOR]:"Oceans",[WellKnownBasemap.OPEN_STREET_MAP]:"OpenStreetMap",[WellKnownBasemap.OPEN_STREET_MAP_VECTOR]:"OpenStreetMap",[WellKnownBasemap.STREETS_RELIEF_VECTOR]:"World Street Map (with Relief)"};
@@ -1 +1 @@
1
- var ArcGISGeocoder_1;import{__decorate}from"tslib";import{addressToLocations,addressesToLocations,locationToAddress,suggestLocations}from"@arcgis/core/rest/locator";import{InvalidOperationError}from"../../InvalidOperationError.js";import{isFeature}from"../../ItemType.js";import{Feature,SCORE_FIELD,SCORE_FIELD_ORIGINAL,toGraphic}from"../../data/Feature.js";import{Schema}from"../../data/Schema.js";import{Field as FieldJson}from"../../portal/Field.js";import{SpatialReference as SpatialReferenceJson}from"../../portal/SpatialReference.js";import{DefaultArcGISRequestHelper}from"../../support/ArcGISRequestHelper.js";import{cancelify}from"../../support/Cancellable.js";import{serializable}from"../../support/Serializable.js";import{ReadOnlyCollection}from"../../utilities/ReadOnlyCollection.js";import{checkArg}from"../../utilities/checkArg.js";import{Collection}from"../../utilities/collection.js";import{load}from"../../utilities/esri.js";import{toPortalItem}from"../../utilities/portal.js";import{ADDRESS_FIELD,GeocodeOptions,Geocoder}from"./Geocoder.js";export{ADDRESS_FIELD,SCORE_FIELD};const ERR_SCHEMA_READ_ONLY="This schema property is read-only.",MATCHING_ADDRESS_FIELD="Match_addr";let ArcGISGeocoder=ArcGISGeocoder_1=class extends Geocoder{constructor(){super(...arguments),this._magicKeyAddressMap=new Map}get requestHelper(){return this._requestHelper||(this._requestHelper=new DefaultArcGISRequestHelper),this._requestHelper}set requestHelper(e){this._requestHelper=e}get categories(){return this._categories||(this._categories=new Collection),this._categories}get url(){return this._url}set url(e){this.updateUrl(e)}static async fromPortalItem(e,t){checkArg("portalItem",e).isNotMissing();const i=toPortalItem(e);await load(i);const s={...t};return void 0!==s.title&&null!==s.title||(s.title=i.title),s.url=i.url,new ArcGISGeocoder_1(s)}updateUrl(e){return this._url===e?Promise.resolve():(this._url=e,this.isInitialized?(async()=>{const e=await this._getGeocodeService(this.url);this._updateGeocodeProperties(e)})():Promise.resolve())}async*geocode(e,t){checkArg("address",e).isNotMissing(),await this.initialize();const i={...GeocodeOptions.DEFAULTS,...GeocodeOptions.fromFeatureSource(this),...t},s="string"==typeof e?this._magicKeyAddressMap?.get(e):void 0,{outFields:r,outSpatialReference:o,maxResults:a,searchArea:c}=i,n={address:this._addressToAttributes(e),categories:this.categories.toArray(),countryCode:this.countryCode,outFields:r,outSpatialReference:o,maxLocations:a,searchExtent:c?.extent,forStorage:void 0,magicKey:s,location:t?.searchPoint},l=addressToLocations(this.url,n),d=await cancelify(l,t?.cancelToken);yield*d.map((e=>this._candidateToFeature(e,i)))}async count(e,t){checkArg("address",e).isNotMissing(),await this.initialize();const i={...GeocodeOptions.DEFAULTS,...GeocodeOptions.fromFeatureSource(this),...t},{outFields:s,outSpatialReference:r,maxResults:o,searchArea:a}=i,c={address:this._addressToAttributes(e),categories:this.categories.toArray(),countryCode:this.countryCode,outFields:s,outSpatialReference:r,maxLocations:o,searchExtent:a?a.extent:void 0,forStorage:void 0,magicKey:void 0,location:t?.searchPoint},n=addressToLocations(this.url,c);return{source:this,count:(await cancelify(n,t?.cancelToken)).length}}async*batchGeocode(e,t){checkArg("addresses",e).isNotMissing(),await this.initialize();const i={...GeocodeOptions.DEFAULTS,...GeocodeOptions.fromFeatureSource(this),...t};if(!this.capabilities.supportsBatch)throw new InvalidOperationError("Batch geocoding is not supported.");if(this._maxBatchSize&&e.length>this._maxBatchSize)throw new InvalidOperationError(`Batch geocoding is limited to ${this._maxBatchSize} addresses at a time.`);let s=0;const r={addresses:e.map((e=>this._addressToAttributes(e,s++))),categories:this.categories.toArray(),countryCode:this.countryCode,outSpatialReference:i.outSpatialReference},o=addressesToLocations(this.url,r),a=(await cancelify(o,t?.cancelToken)).map((e=>this._candidateToFeature(e,i)));for(const t of a){const i=t.attributes.get("ResultID");void 0!==i&&i>=0&&t.attributes.set(ADDRESS_FIELD,e[i]),t.attributes.delete("ResultID")}yield*a}async suggest(e,t){if(checkArg("searchText",e).isNotMissing(),await this.initialize(),!this.capabilities.supportsSuggest)throw new InvalidOperationError("Suggestions are not supported.");const i={text:e,categories:this.categories.toArray(),searchExtent:t?.searchArea?.extent,maxSuggestions:t?.maxResults,countryCode:this.countryCode,location:t?.searchPoint},s=suggestLocations(this.url,i),r=await cancelify(s,t?.cancelToken);return r.forEach((e=>this._magicKeyAddressMap.set(e.text,e.magicKey))),r.map((e=>e.text))}async reverseGeocode(e,t){checkArg("location",e).isNotMissing(),await this.initialize();const i={...GeocodeOptions.DEFAULTS,...GeocodeOptions.fromFeatureSource(this),...t};if(!this.capabilities.supportsReverse)throw new InvalidOperationError("Reverse geocoding is not supported.");let s;try{const r=locationToAddress(this.url,{location:e,outSpatialReference:i.outSpatialReference});s=await cancelify(r,t?.cancelToken)}catch(e){if(400===e.details?.httpStatus)return;throw e}const r=this._candidateToFeature(s,i);return r.settings.parent=this.featureSettings,r.schema.parent=this.addressSchema,r}_getSerializableProperties(){return{...super._getSerializableProperties(),url:"initial",categories:{serializeModes:["initial"],deserialize:e=>{this.categories.removeAll(),this.categories.addMany(e)}},countryCode:"initial",requestHelper:{serialize:!1}}}_createSchema(){return new ArcGISGeocoderSchema}_createAddressSchema(){return new ArcGISGeocoderSchema}async _onInitialize(){if(await super._onInitialize(),!this.url)throw new Error("ArcGISGeocoder must be created with a url.");const e=await this._getGeocodeService(this.url);this._updateGeocodeProperties(e),this.assignProperties({});const t=SpatialReferenceJson.toEsriApiSpatialReference(e.spatialReference);this.schema.initialize({fields:e.candidateFields,spatialReference:t}),this.addressSchema.initialize({fields:e.addressFields,spatialReference:t})}async _getGeocodeService(e){const{data:t}=await this.requestHelper.request(e,{query:{f:"json"}});if(!t)throw new Error(`Response to request for url ${e} was invalid.`);return t}_updateGeocodeProperties(e){if(e.singleLineAddressField&&(this._singleLineAddressField=e.singleLineAddressField.name),e.locatorProperties&&(this._maxBatchSize=e.locatorProperties.MaxBatchSize),e.capabilities){const t=e.capabilities.split(",").map((e=>e.trim()));this._capabilitiesInternal=Object.freeze({supportsAdd:!1,supportsUpdate:!1,supportsDelete:!1,supportsEditing:!1,supportsBatch:t.includes("Geocode"),supportsReverse:t.includes("ReverseGeocode"),supportsSuggest:t.includes("Suggest"),maxResults:void 0,supportsAttachmentEditing:!1})}else this._capabilitiesInternal=Object.freeze({supportsAdd:!1,supportsUpdate:!1,supportsDelete:!1,supportsEditing:!1,supportsBatch:e.currentVersion>=10.1,supportsReverse:!0,supportsSuggest:!1,maxResults:void 0,supportsAttachmentEditing:!1})}_addressToAttributes(e,t){const i={};if("string"==typeof e)if(this._singleLineAddressField)i[this._singleLineAddressField]=e,[...this.defaultAddressValues.entries()].forEach((([e,t])=>{i[e]=t}));else{const t=this.addressSchema.fields.map((e=>e.name)).filter((e=>!this.defaultAddressValues.has(e))).toArray();if(1!==t.length)throw new InvalidOperationError("Single line geocoding is not supported.");i[t[0]]=e}else{const t=isFeature(e)?toGraphic(e).attributes:e;for(const e of this.addressSchema.fields.map((e=>e.name)).toArray())e in t?i[e]=t[e]:this.defaultAddressValues.has(e)&&(i[e]=this.defaultAddressValues.get(e));if(0===Object.keys(i).length)throw new InvalidOperationError("At least one valid address field is required.")}return void 0!==t&&(i.OBJECTID=t),i}_candidateToFeature(e,t){const i=new Feature({source:this});if(e.attributes)for(const t of Object.keys(e.attributes))i.attributes.set(t,e.attributes[t]);const{address:s}=e;if("string"!=typeof s||i.attributes.has("Match_addr")&&i.attributes.get("Match_addr")){if("object"==typeof s&&s)for(const e of Object.keys(s))i.attributes.set(e,s[e])}else s?i.attributes.set("Match_addr",s):i.attributes.set("Match_addr",Object.values(e.attributes).join(", "));return e.score&&(i.attributes.set(SCORE_FIELD,e.score),i.attributes.set(SCORE_FIELD_ORIGINAL,e.score)),i.geometry=e.location,t.outSpatialReference&&(i.schema.spatialReference=t.outSpatialReference),i}};ArcGISGeocoder=ArcGISGeocoder_1=__decorate([serializable],ArcGISGeocoder);export{ArcGISGeocoder};let ArcGISGeocoderSchema=class extends Schema{constructor(){super(),this._fieldBackingCollection=new Collection,this._fieldCollection=new ReadOnlyCollection(this._fieldBackingCollection)}get _fields(){return this._fieldCollection}get spatialReference(){return this._spatialReference}set spatialReference(e){throw new InvalidOperationError(ERR_SCHEMA_READ_ONLY)}get geometryType(){return"esriGeometryPoint"}set geometryType(e){throw new InvalidOperationError(ERR_SCHEMA_READ_ONLY)}initialize(e){if(e.fields&&(this._fieldBackingCollection.removeAll(),this._fieldBackingCollection.addMany(e.fields.map((e=>FieldJson.toEsriApiField(e))))),e.spatialReference&&(this._spatialReference=e.spatialReference,this.notifyChange("spatialReference")),!this.isModified("displayField")){let e=this.fields.find((e=>"match_addr"===e.name.toLowerCase()));e||(e=this.fields.find((e=>"address"===e.name.toLowerCase()))),e&&(this.displayField=e.name,this.notifyChange("displayField"))}}};ArcGISGeocoderSchema=__decorate([serializable],ArcGISGeocoderSchema);
1
+ var e;import{__decorate as t}from"tslib";import{addressToLocations as s,addressesToLocations as i,locationToAddress as r,suggestLocations as a}from"@arcgis/core/rest/locator";import{InvalidOperationError as o}from"../../InvalidOperationError.js";import{isFeature as n}from"../../ItemType.js";import{Feature as c,SCORE_FIELD as l,SCORE_FIELD_ORIGINAL as d,toGraphic as u}from"../../data/Feature.js";import{Schema as p}from"../../data/Schema.js";import{Field as h}from"../../portal/Field.js";import{SpatialReference as f}from"../../portal/SpatialReference.js";import{DefaultArcGISRequestHelper as m}from"../../support/ArcGISRequestHelper.js";import{cancelify as g}from"../../support/Cancellable.js";import{serializable as y}from"../../support/Serializable.js";import{ReadOnlyCollection as _}from"../../utilities/ReadOnlyCollection.js";import{checkArg as S}from"../../utilities/checkArg.js";import{Collection as w}from"../../utilities/collection.js";import{load as A}from"../../utilities/esri.js";import{toPortalItem as b}from"../../utilities/portal.js";import{ADDRESS_FIELD as R,GeocodeOptions as F,Geocoder as v}from"./Geocoder.js";export{R as ADDRESS_FIELD,l as SCORE_FIELD};const x="This schema property is read-only.",j="Match_addr";let z=e=class extends v{constructor(){super(...arguments),this._magicKeyAddressMap=new Map}get requestHelper(){return this._requestHelper||(this._requestHelper=new m),this._requestHelper}set requestHelper(e){this._requestHelper=e}get categories(){return this._categories||(this._categories=new w),this._categories}get url(){return this._url}set url(e){this.updateUrl(e)}static async fromPortalItem(t,s){S("portalItem",t).isNotMissing();const i=b(t);await A(i);const r={...s};return void 0!==r.title&&null!==r.title||(r.title=i.title),r.url=i.url,new e(r)}updateUrl(e){return this._url===e?Promise.resolve():(this._url=e,this.isInitialized?(async()=>{const e=await this._getGeocodeService(this.url);this._updateGeocodeProperties(e)})():Promise.resolve())}async*geocode(e,t){S("address",e).isNotMissing(),await this.initialize();const i={...F.DEFAULTS,...F.fromFeatureSource(this),...t},r="string"==typeof e?this._magicKeyAddressMap?.get(e):void 0,{outFields:a,outSpatialReference:o,maxResults:n,searchArea:c}=i,l={address:this._addressToAttributes(e),categories:this.categories.toArray(),countryCode:this.countryCode,outFields:a,outSpatialReference:o,maxLocations:n,searchExtent:c?.extent,forStorage:void 0,magicKey:r,location:t?.searchPoint},d=s(this.url,l),u=await g(d,t?.cancelToken);yield*u.map((e=>this._candidateToFeature(e,i)))}async count(e,t){S("address",e).isNotMissing(),await this.initialize();const i={...F.DEFAULTS,...F.fromFeatureSource(this),...t},{outFields:r,outSpatialReference:a,maxResults:o,searchArea:n}=i,c={address:this._addressToAttributes(e),categories:this.categories.toArray(),countryCode:this.countryCode,outFields:r,outSpatialReference:a,maxLocations:o,searchExtent:n?n.extent:void 0,forStorage:void 0,magicKey:void 0,location:t?.searchPoint},l=s(this.url,c);return{source:this,count:(await g(l,t?.cancelToken)).length}}async*batchGeocode(e,t){S("addresses",e).isNotMissing(),await this.initialize();const s={...F.DEFAULTS,...F.fromFeatureSource(this),...t};if(!this.capabilities.supportsBatch)throw new o("Batch geocoding is not supported.");if(this._maxBatchSize&&e.length>this._maxBatchSize)throw new o(`Batch geocoding is limited to ${this._maxBatchSize} addresses at a time.`);let r=0;const a={addresses:e.map((e=>this._addressToAttributes(e,r++))),categories:this.categories.toArray(),countryCode:this.countryCode,outSpatialReference:s.outSpatialReference},n=i(this.url,a),c=(await g(n,t?.cancelToken)).map((e=>this._candidateToFeature(e,s)));for(const t of c){const s=t.attributes.get("ResultID");void 0!==s&&s>=0&&t.attributes.set(R,e[s]),t.attributes.delete("ResultID")}yield*c}async suggest(e,t){if(S("searchText",e).isNotMissing(),await this.initialize(),!this.capabilities.supportsSuggest)throw new o("Suggestions are not supported.");const s={text:e,categories:this.categories.toArray(),searchExtent:t?.searchArea?.extent,maxSuggestions:t?.maxResults,countryCode:this.countryCode,location:t?.searchPoint},i=a(this.url,s),r=await g(i,t?.cancelToken);return r.forEach((e=>this._magicKeyAddressMap.set(e.text,e.magicKey))),r.map((e=>e.text))}async reverseGeocode(e,t){S("location",e).isNotMissing(),await this.initialize();const s={...F.DEFAULTS,...F.fromFeatureSource(this),...t};if(!this.capabilities.supportsReverse)throw new o("Reverse geocoding is not supported.");let i;try{const a=r(this.url,{location:e,outSpatialReference:s.outSpatialReference});i=await g(a,t?.cancelToken)}catch(e){if(400===e.details?.httpStatus)return;throw e}const a=this._candidateToFeature(i,s);return a.settings.parent=this.featureSettings,a.schema.parent=this.addressSchema,a}_getSerializableProperties(){return{...super._getSerializableProperties(),url:"initial",categories:{serializeModes:["initial"],deserialize:e=>{this.categories.removeAll(),this.categories.addMany(e)}},countryCode:"initial",requestHelper:{serialize:!1}}}_createSchema(){return new T}_createAddressSchema(){return new T}async _onInitialize(){if(await super._onInitialize(),!this.url)throw new Error("ArcGISGeocoder must be created with a url.");const e=await this._getGeocodeService(this.url);this._updateGeocodeProperties(e),this.assignProperties({});const t=f.toEsriApiSpatialReference(e.spatialReference);this.schema.initialize({fields:e.candidateFields,spatialReference:t}),this.addressSchema.initialize({fields:e.addressFields,spatialReference:t})}async _getGeocodeService(e){const{data:t}=await this.requestHelper.request(e,{query:{f:"json"}});if(!t)throw new Error(`Response to request for url ${e} was invalid.`);return t}_updateGeocodeProperties(e){if(e.singleLineAddressField&&(this._singleLineAddressField=e.singleLineAddressField.name),e.locatorProperties&&(this._maxBatchSize=e.locatorProperties.MaxBatchSize),e.capabilities){const t=e.capabilities.split(",").map((e=>e.trim()));this._capabilitiesInternal=Object.freeze({supportsAdd:!1,supportsUpdate:!1,supportsDelete:!1,supportsEditing:!1,supportsBatch:t.includes("Geocode"),supportsReverse:t.includes("ReverseGeocode"),supportsSuggest:t.includes("Suggest"),maxResults:void 0,supportsAttachmentEditing:!1})}else this._capabilitiesInternal=Object.freeze({supportsAdd:!1,supportsUpdate:!1,supportsDelete:!1,supportsEditing:!1,supportsBatch:e.currentVersion>=10.1,supportsReverse:!0,supportsSuggest:!1,maxResults:void 0,supportsAttachmentEditing:!1})}_addressToAttributes(e,t){const s={};if("string"==typeof e)if(this._singleLineAddressField)s[this._singleLineAddressField]=e,[...this.defaultAddressValues.entries()].forEach((([e,t])=>{s[e]=t}));else{const t=this.addressSchema.fields.map((e=>e.name)).filter((e=>!this.defaultAddressValues.has(e))).toArray();if(1!==t.length)throw new o("Single line geocoding is not supported.");s[t[0]]=e}else{const t=n(e)?u(e).attributes:e;for(const e of this.addressSchema.fields.map((e=>e.name)).toArray())e in t?s[e]=t[e]:this.defaultAddressValues.has(e)&&(s[e]=this.defaultAddressValues.get(e));if(0===Object.keys(s).length)throw new o("At least one valid address field is required.")}return void 0!==t&&(s.OBJECTID=t),s}_candidateToFeature(e,t){const s=new c({source:this});if(e.attributes)for(const t of Object.keys(e.attributes))s.attributes.set(t,e.attributes[t]);const{address:i}=e;if("string"!=typeof i||s.attributes.has(j)&&s.attributes.get(j)){if("object"==typeof i&&i)for(const e of Object.keys(i))s.attributes.set(e,i[e])}else i?s.attributes.set(j,i):s.attributes.set(j,Object.values(e.attributes).join(", "));return e.score&&(s.attributes.set(l,e.score),s.attributes.set(d,e.score)),s.geometry=e.location,t.outSpatialReference&&(s.schema.spatialReference=t.outSpatialReference),s}};z=e=t([y],z);export{z as ArcGISGeocoder};let T=class extends p{constructor(){super(),this._fieldBackingCollection=new w,this._fieldCollection=new _(this._fieldBackingCollection)}get _fields(){return this._fieldCollection}get spatialReference(){return this._spatialReference}set spatialReference(e){throw new o(x)}get geometryType(){return"esriGeometryPoint"}set geometryType(e){throw new o(x)}initialize(e){if(e.fields&&(this._fieldBackingCollection.removeAll(),this._fieldBackingCollection.addMany(e.fields.map((e=>h.toEsriApiField(e))))),e.spatialReference&&(this._spatialReference=e.spatialReference,this.notifyChange("spatialReference")),!this.isModified("displayField")){let e=this.fields.find((e=>"match_addr"===e.name.toLowerCase()));e||(e=this.fields.find((e=>"address"===e.name.toLowerCase()))),e&&(this.displayField=e.name,this.notifyChange("displayField"))}}};T=t([y],T);
@@ -18,7 +18,7 @@ export declare const ADDRESS_FIELD = "_address";
18
18
  /**
19
19
  * A type that can be a string, feature or JSON object representing an address.
20
20
  */
21
- export declare type AddressLike = string | Feature | Record<string, unknown>;
21
+ export type AddressLike = string | Feature | Record<string, unknown>;
22
22
  /**
23
23
  * Properties that can be passed into the constructor for
24
24
  * {@link tasks/geocoding/Geocoder!Geocoder}.
@@ -1 +1 @@
1
- import{InvalidOperationError}from"../../InvalidOperationError.js";import{ItemType}from"../../ItemType.js";import{FeatureSourceBase}from"../../data/FeatureSourceBase.js";import{Schema}from"../../data/Schema.js";const ERR_GET_FEATURES_NOT_SUPPORTED="This class does not support retrieving features by ID.",ERR_EDIT_FEATURES_NOT_SUPPORTED="This class does not support editing features.";export const ADDRESS_FIELD="_address";export class Geocoder extends FeatureSourceBase{constructor(e){super(e),this._itemType=ItemType.GEOCODER,this._capabilitiesInternal=Object.freeze({supportsAdd:!1,supportsUpdate:!1,supportsDelete:!1,supportsEditing:!1,supportsBatch:!1,supportsReverse:!1,supportsSuggest:!1,maxResults:void 0,supportsAttachmentEditing:!1}),this.addressSchema=this._createAddressSchema(),this.defaultAddressValues=new Map}get capabilities(){return this._capabilities()}getFeature(e,t){throw new InvalidOperationError(ERR_GET_FEATURES_NOT_SUPPORTED)}getFeatures(e,t){throw new InvalidOperationError(ERR_GET_FEATURES_NOT_SUPPORTED)}addFeature(e,t){throw new InvalidOperationError(ERR_EDIT_FEATURES_NOT_SUPPORTED)}addFeatures(e,t){throw new InvalidOperationError(ERR_EDIT_FEATURES_NOT_SUPPORTED)}updateFeature(e,t){throw new InvalidOperationError(ERR_EDIT_FEATURES_NOT_SUPPORTED)}updateFeatures(e,t){throw new InvalidOperationError(ERR_EDIT_FEATURES_NOT_SUPPORTED)}deleteFeature(e,t){throw new InvalidOperationError(ERR_EDIT_FEATURES_NOT_SUPPORTED)}deleteFeatures(e,t){throw new InvalidOperationError(ERR_EDIT_FEATURES_NOT_SUPPORTED)}_getSerializableProperties(){return{...super._getSerializableProperties(),title:"initial",addressSchema:"initial",defaultAddressValues:{serializeModes:["initial"],serialize:()=>{const e={};if(this.defaultAddressValues.size)for(const[t,r]of this.defaultAddressValues)e[t]=r;return e},deserialize:e=>{for(const t of Object.keys(e))this.defaultAddressValues.set(t,e[t])}}}}_createAddressSchema(){return new Schema}_capabilities(){return this._capabilitiesInternal}}export var GeocodeOptions;!function(e){e.DEFAULTS={outFields:["*"]},e.fromFeatureSource=function(e){return{outFields:e.featureSettings.outFields}}}(GeocodeOptions||(GeocodeOptions={}));
1
+ import{InvalidOperationError as e}from"../../InvalidOperationError.js";import{ItemType as t}from"../../ItemType.js";import{FeatureSourceBase as s}from"../../data/FeatureSourceBase.js";import{Schema as r}from"../../data/Schema.js";const i="This class does not support retrieving features by ID.",a="This class does not support editing features.";export const ADDRESS_FIELD="_address";export class Geocoder extends s{get capabilities(){return this._capabilities()}constructor(e){super(e),this._itemType=t.GEOCODER,this._capabilitiesInternal=Object.freeze({supportsAdd:!1,supportsUpdate:!1,supportsDelete:!1,supportsEditing:!1,supportsBatch:!1,supportsReverse:!1,supportsSuggest:!1,maxResults:void 0,supportsAttachmentEditing:!1}),this.addressSchema=this._createAddressSchema(),this.defaultAddressValues=new Map}getFeature(t,s){throw new e(i)}getFeatures(t,s){throw new e(i)}addFeature(t,s){throw new e(a)}addFeatures(t,s){throw new e(a)}updateFeature(t,s){throw new e(a)}updateFeatures(t,s){throw new e(a)}deleteFeature(t,s){throw new e(a)}deleteFeatures(t,s){throw new e(a)}_getSerializableProperties(){return{...super._getSerializableProperties(),title:"initial",addressSchema:"initial",defaultAddressValues:{serializeModes:["initial"],serialize:()=>{const e={};if(this.defaultAddressValues.size)for(const[t,s]of this.defaultAddressValues)e[t]=s;return e},deserialize:e=>{for(const t of Object.keys(e))this.defaultAddressValues.set(t,e[t])}}}}_createAddressSchema(){return new r}_capabilities(){return this._capabilitiesInternal}}export var GeocodeOptions;!function(e){e.DEFAULTS={outFields:["*"]},e.fromFeatureSource=function(e){return{outFields:e.featureSettings.outFields}}}(GeocodeOptions||(GeocodeOptions={}));
@@ -1 +1 @@
1
- import{ItemType}from"../../ItemType.js";import{Collection}from"../../utilities/collection.js";export function isArcGISGeocoder(e){return e?.itemType===ItemType.GEOCODER&&Collection.isCollection(e.categories)}
1
+ import{ItemType as e}from"../../ItemType.js";import{Collection as o}from"../../utilities/collection.js";export function isArcGISGeocoder(i){return i?.itemType===e.GEOCODER&&o.isCollection(i.categories)}
@@ -1 +1 @@
1
- import{executeQuery,executeCountByQuery}from"../../support/_query.js";import{empty}from"../../utilities/asyncIterable.js";import{isMapImageSublayer}from"../../utilities/layers.js";import{IdentifyProviderBase}from"./IdentifyProviderBase.js";export class ArcGISSublayerQueryIdentifyProvider extends IdentifyProviderBase{isSupported(e,r,t){return isMapImageSublayer(e.sublayer)&&e.capabilities.supportsQuery}_identify(e,r,t){const u=e,s=u.sublayer.createQuery();return u.capabilities.supportsQuery?(s.geometry=r,s.outFields=e.featureSettings.outFields,s.returnGeometry=t.returnGeometry,s.outSpatialReference=t.outSpatialReference,s.maxAllowableOffset=t.maxAllowableOffset,e.supportsPagination&&(s.num=t.maxResults),executeQuery(s,u,u.sublayer,t.cancelToken)):empty()}async _count(e,r,t){const u=e;if(!u.capabilities.supportsQuery)return{source:e,count:0};const s=u.sublayer.createQuery();return s.geometry=r,s.num=t.maxResults,s.returnGeometry=t.returnGeometry,s.outFields=e.featureSettings.outFields,executeCountByQuery(s,u,u.sublayer,t.cancelToken)}}
1
+ import{executeQuery as e,executeCountByQuery as r}from"../../support/_query.js";import{empty as t}from"../../utilities/asyncIterable.js";import{isMapImageSublayer as s}from"../../utilities/layers.js";import{IdentifyProviderBase as u}from"./IdentifyProviderBase.js";export class ArcGISSublayerQueryIdentifyProvider extends u{isSupported(e,r,t){return s(e.sublayer)&&e.capabilities.supportsQuery}_identify(r,s,u){const o=r,i=o.sublayer.createQuery();return o.capabilities.supportsQuery?(i.geometry=s,i.outFields=r.featureSettings.outFields,i.returnGeometry=u.returnGeometry,i.outSpatialReference=u.outSpatialReference,i.maxAllowableOffset=u.maxAllowableOffset,r.supportsPagination&&(i.num=u.maxResults),e(i,o,o.sublayer,u.cancelToken)):t()}async _count(e,t,s){const u=e;if(!u.capabilities.supportsQuery)return{source:e,count:0};const o=u.sublayer.createQuery();return o.geometry=t,o.num=s.maxResults,o.returnGeometry=s.returnGeometry,o.outFields=e.featureSettings.outFields,r(o,u,u.sublayer,s.cancelToken)}}
@@ -1 +1 @@
1
- import{empty}from"../../utilities/asyncIterable.js";import{isPoint}from"../../utilities/geometry.js";import{isBuildingComponentSublayer}from"../../utilities/layers.js";import{isWebScene}from"../../utilities/mapping.js";import{ClientSideIdentifyProvider}from"./ClientSideIdentifyProvider.js";export class BuildingComponentSublayerClientSideIdentifyProvider extends ClientSideIdentifyProvider{isSupported(e,i,t){const r=isWebScene(e?.layerExtension?.mapExtension?.map);return isBuildingComponentSublayer(e.sublayer)&&r}_identify(e,i,t,r){return this._canIdentify(e,i)?super._identify(e,i,t,r):empty()}async _count(e,i,t,r){return this._canIdentify(e,i)?super._count(e,i,t,r):{source:e,count:0}}_createQuery(e,i,t){const r=super._createQuery(e,i,t);return"mesh"===e.sublayer.geometryType&&(r.returnGeometry=!1),r}_canIdentify(e,i){return i&&e._layerView?.view?.extent?.intersects(isPoint(i)?i:i.extent)}}
1
+ import{empty as e}from"../../utilities/asyncIterable.js";import{isPoint as t}from"../../utilities/geometry.js";import{isBuildingComponentSublayer as r}from"../../utilities/layers.js";import{isWebScene as i}from"../../utilities/mapping.js";import{ClientSideIdentifyProvider as n}from"./ClientSideIdentifyProvider.js";export class BuildingComponentSublayerClientSideIdentifyProvider extends n{isSupported(e,t,n){const s=i(e?.layerExtension?.mapExtension?.map);return r(e.sublayer)&&s}_identify(t,r,i,n){return this._canIdentify(t,r)?super._identify(t,r,i,n):e()}async _count(e,t,r,i){return this._canIdentify(e,t)?super._count(e,t,r,i):{source:e,count:0}}_createQuery(e,t,r){const i=super._createQuery(e,t,r);return"mesh"===e.sublayer.geometryType&&(i.returnGeometry=!1),i}_canIdentify(e,r){return r&&e._layerView?.view?.extent?.intersects(t(r)?r:r.extent)}}
@@ -1 +1 @@
1
- import{isBuildingComponentSublayer}from"../../utilities/layers.js";import{isWebScene}from"../../utilities/mapping.js";import{HitTestIdentifyProvider}from"./HitTestIdentifyProvider.js";export class BuildingComponentSublayerHitTestIdentifyProvider extends HitTestIdentifyProvider{isSupported(e,i,t){const r=!!e._layerView&&isWebScene(e?.layerExtension?.mapExtension?.map);return super.isSupported(e,i,t)&&isBuildingComponentSublayer(e.sublayer)&&"point"===i?.type&&r&&!!e._layerView.view?.extent?.intersects(i)}_supportsQuery(e){return!1}}
1
+ import{isBuildingComponentSublayer as e}from"../../utilities/layers.js";import{isWebScene as t}from"../../utilities/mapping.js";import{HitTestIdentifyProvider as i}from"./HitTestIdentifyProvider.js";export class BuildingComponentSublayerHitTestIdentifyProvider extends i{isSupported(i,r,s){const o=!!i._layerView&&t(i?.layerExtension?.mapExtension?.map);return super.isSupported(i,r,s)&&e(i.sublayer)&&"point"===r?.type&&o&&!!i._layerView.view?.extent?.intersects(r)}_supportsQuery(e){return!1}}
@@ -1 +1 @@
1
- import{isCSVLayerExtension}from"../../utilities/extensions.js";import{isVolumetric}from"../../utilities/symbol.js";import{HitTestIdentifyProvider}from"./HitTestIdentifyProvider.js";export class CSVLayer3DHitTestIdentifyProvider extends HitTestIdentifyProvider{isSupported(e,r,i){return super.isSupported(e,r,i)&&isCSVLayerExtension(e)&&"scene"===e.mapExtension.viewMode&&!!e._layerView?.view&&(e.layer.capabilities?.data?.supportsZ||isSimpleRenderer3D(e.layer.renderer)||isClassBreaksRenderer3D(e.renderer)||isUniqueValueRenderer3D(e.layer.renderer))}_supportsQuery(){return!1}}function isSimpleRenderer3D(e){return"simple"===e.type&&isVolumetric(e.symbol)}function isClassBreaksRenderer3D(e){return"class-breaks"===e.type&&e.classBreakInfos.map((e=>e.symbol)).some(isVolumetric)}function isUniqueValueRenderer3D(e){return"unique-value"===e.type&&e.uniqueValueInfos.map((e=>e.symbol)).some(isVolumetric)}
1
+ import{isCSVLayerExtension as e}from"../../utilities/extensions.js";import{isVolumetric as r}from"../../utilities/symbol.js";import{HitTestIdentifyProvider as s}from"./HitTestIdentifyProvider.js";export class CSVLayer3DHitTestIdentifyProvider extends s{isSupported(s,t,i){return super.isSupported(s,t,i)&&e(s)&&"scene"===s.mapExtension.viewMode&&!!s._layerView?.view&&(s.layer.capabilities?.data?.supportsZ||"simple"===(o=s.layer.renderer).type&&r(o.symbol)||function(e){return"class-breaks"===e.type&&e.classBreakInfos.map((e=>e.symbol)).some(r)}(s.renderer)||function(e){return"unique-value"===e.type&&e.uniqueValueInfos.map((e=>e.symbol)).some(r)}(s.layer.renderer));var o}_supportsQuery(){return!1}}
@@ -1 +1 @@
1
- import{toFeature}from"../../data/Feature.js";import{cancelifyWithAbortSignal}from"../../support/Cancellable.js";import{executeQuery,executeCount}from"../../support/_query.js";import{isCSVLayerExtension,isFeatureCollectionLayerExtension}from"../../utilities/extensions.js";import{removeZValues}from"../../utilities/geometry.js";import{IdentifyProviderBase}from"./IdentifyProviderBase.js";import{hitTestForClusterFeatures}from"./_utilities.js";async function _getFeaturesInCluster(e,t,r,a){const i=await hitTestForClusterFeatures(e,t);if(0===i.length)return[];a.aggregateIds=i.map((e=>e.getObjectId()));return(await cancelifyWithAbortSignal((t=>e._layerView.queryFeatures(a,{signal:t})),r.cancelToken))?.features}export class CSVLayerClientSideQueryIdentifyProvider extends IdentifyProviderBase{isSupported(e,t,r){return(isCSVLayerExtension(e)||isFeatureCollectionLayerExtension(e))&&!!e.layer}_identify(e,t,r,a){return async function*(){const i=e,o=i.layer.createQuery();if(o.outFields=e.featureSettings.outFields,o.returnGeometry=r.returnGeometry,o.outSpatialReference=r.outSpatialReference,o.maxAllowableOffset=r.maxAllowableOffset,o.num=r.maxResults,o.returnZ="scene"===i.mapExtension?.viewMode,"cluster"===i?.layer?.featureReduction?.type&&"point"===a){const a=await _getFeaturesInCluster(i,t,r,o);if(a?.length>0)return void(yield*a.map((t=>toFeature(t,{source:e}))))}let n=t;n&&!i.layer.capabilities?.data?.supportsZ&&(n=removeZValues(n.clone())),o.geometry=n,yield*executeQuery(o,i,i.layer,r.cancelToken)}()}async _count(e,t,r,a){const i=e,o=i.layer.createQuery();if(o.num=r.maxResults,o.returnGeometry=r.returnGeometry,o.outFields=e.featureSettings.outFields,"cluster"===i?.layer?.featureReduction?.type&&"point"===a){const e=await _getFeaturesInCluster(i,t,r,o);if(e?.length>0)return{source:i,count:e.length}}if(!o.aggregateIds){let e=t;e&&!i.layer.capabilities?.data?.supportsZ&&(e=removeZValues(e.clone())),o.geometry=e}return executeCount(o,i,i.layer,r.cancelToken)}}
1
+ import{toFeature as e}from"../../data/Feature.js";import{cancelifyWithAbortSignal as t}from"../../support/Cancellable.js";import{executeQuery as r,executeCount as a}from"../../support/_query.js";import{isCSVLayerExtension as i,isFeatureCollectionLayerExtension as o}from"../../utilities/extensions.js";import{removeZValues as n}from"../../utilities/geometry.js";import{IdentifyProviderBase as s}from"./IdentifyProviderBase.js";import{hitTestForClusterFeatures as u}from"./_utilities.js";async function l(e,r,a,i){const o=await u(e,r);if(0===o.length)return[];i.aggregateIds=o.map((e=>e.getObjectId()));return(await t((t=>e._layerView.queryFeatures(i,{signal:t})),a.cancelToken))?.features}export class CSVLayerClientSideQueryIdentifyProvider extends s{isSupported(e,t,r){return(i(e)||o(e))&&!!e.layer}_identify(t,a,i,o){return async function*(){const s=t,u=s.layer.createQuery();if(u.outFields=t.featureSettings.outFields,u.returnGeometry=i.returnGeometry,u.outSpatialReference=i.outSpatialReference,u.maxAllowableOffset=i.maxAllowableOffset,u.num=i.maxResults,u.returnZ="scene"===s.mapExtension?.viewMode,"cluster"===s?.layer?.featureReduction?.type&&"point"===o){const r=await l(s,a,i,u);if(r?.length>0)return void(yield*r.map((r=>e(r,{source:t}))))}let c=a;c&&!s.layer.capabilities?.data?.supportsZ&&(c=n(c.clone())),u.geometry=c,yield*r(u,s,s.layer,i.cancelToken)}()}async _count(e,t,r,i){const o=e,s=o.layer.createQuery();if(s.num=r.maxResults,s.returnGeometry=r.returnGeometry,s.outFields=e.featureSettings.outFields,"cluster"===o?.layer?.featureReduction?.type&&"point"===i){const e=await l(o,t,r,s);if(e?.length>0)return{source:o,count:e.length}}if(!s.aggregateIds){let e=t;e&&!o.layer.capabilities?.data?.supportsZ&&(e=n(e.clone())),s.geometry=e}return a(s,o,o.layer,r.cancelToken)}}
@@ -17,11 +17,11 @@ import { IdentifyProviderBase } from "./IdentifyProviderBase.js";
17
17
  /**
18
18
  * LayerExtensions that support client-side identify.
19
19
  */
20
- export declare type ClientSideIdentifiableLayerExtension = CSVLayerExtension | FeatureLayerExtension | FeatureCollectionLayerExtension | SceneLayerExtension | StreamLayerExtension | SubtypeGroupLayerExtension;
20
+ export type ClientSideIdentifiableLayerExtension = CSVLayerExtension | FeatureLayerExtension | FeatureCollectionLayerExtension | SceneLayerExtension | StreamLayerExtension | SubtypeGroupLayerExtension;
21
21
  /**
22
22
  * SublayerExtensions that support client-side identify.
23
23
  */
24
- export declare type ClientSideIdentifiableSublayerExtension = BuildingComponentSublayerExtension | SubtypeSublayerExtension;
24
+ export type ClientSideIdentifiableSublayerExtension = BuildingComponentSublayerExtension | SubtypeSublayerExtension;
25
25
  /**
26
26
  * An identify provider that works with graphics rendered on the map.
27
27
  */
@@ -1 +1 @@
1
- import{toFeature}from"../../data/Feature.js";import{cancelifyWithAbortSignal}from"../../support/Cancellable.js";import*as asyncIterable from"../../utilities/asyncIterable.js";import{isSubtypeSublayerExtension}from"../../utilities/extensions.js";import{isBuildingComponentSublayer}from"../../utilities/layers.js";import{IdentifyProviderBase}from"./IdentifyProviderBase.js";export class ClientSideIdentifyProvider extends IdentifyProviderBase{_identify(e,t,r,i){const n=this;return async function*(){const a=await n._getClientSideLayerGraphics(e,t,r,i);a&&a.length?yield*a.map((t=>toFeature(t,{source:e}))):yield*asyncIterable.empty()}()}async _count(e,t,r,i){const n=await this._getClientSideLayerGraphics(e,t,r,i);return{source:e,count:n?n.length:0}}_createQuery(e,t,r,i){const n=isSubtypeSublayerExtension(e)?e.layerExtension:e,{_layerView:a,featureSettings:s}=n,o=isBuildingComponentSublayer(n.sublayer)?e.layerExtension?.mapExtension:e.mapExtension,l=a.createQuery();return l.geometry=t,l.outFields=s.outFields,l.returnGeometry=r.returnGeometry,l.outSpatialReference=r.outSpatialReference,l.maxAllowableOffset=r.maxAllowableOffset,l.num=r.maxResults,l.returnZ="scene"===o?.viewMode,l.aggregateIds=i,l}async _getClientSideLayerGraphics(e,t,r,i){const n=isSubtypeSublayerExtension(e)?e.layerExtension:e,{_layerView:a}=n;if(!a)return;return(await cancelifyWithAbortSignal((async i=>a.queryFeatures(this._createQuery(e,t,r),{signal:i})),r.cancelToken))?.features}}
1
+ import{toFeature as e}from"../../data/Feature.js";import{cancelifyWithAbortSignal as t}from"../../support/Cancellable.js";import*as r from"../../utilities/asyncIterable.js";import{isSubtypeSublayerExtension as i}from"../../utilities/extensions.js";import{isBuildingComponentSublayer as a}from"../../utilities/layers.js";import{IdentifyProviderBase as s}from"./IdentifyProviderBase.js";export class ClientSideIdentifyProvider extends s{_identify(t,i,a,s){const n=this;return async function*(){const o=await n._getClientSideLayerGraphics(t,i,a,s);o?.length?yield*o.map((r=>e(r,{source:t}))):yield*r.empty()}()}async _count(e,t,r,i){const a=await this._getClientSideLayerGraphics(e,t,r,i);return{source:e,count:a?a.length:0}}_createQuery(e,t,r,s){const n=i(e)?e.layerExtension:e,{_layerView:o,featureSettings:l}=n,u=a(n.sublayer)?e.layerExtension?.mapExtension:e.mapExtension,c=o.createQuery();return c.geometry=t,c.outFields=l.outFields,c.returnGeometry=r.returnGeometry,c.outSpatialReference=r.outSpatialReference,c.maxAllowableOffset=r.maxAllowableOffset,c.num=r.maxResults,c.returnZ="scene"===u?.viewMode,c.aggregateIds=s,c}async _getClientSideLayerGraphics(e,r,a,s){const n=i(e)?e.layerExtension:e,{_layerView:o}=n;if(!o)return;return(await t((async t=>o.queryFeatures(this._createQuery(e,r,a),{signal:t})),a.cancelToken))?.features}}
@@ -1 +1 @@
1
- import{isFeatureLayerExtension}from"../../utilities/extensions.js";import{isPoint}from"../../utilities/geometry.js";import{isVolumetric}from"../../utilities/symbol.js";import{FeatureLayerQueryProvider}from"../query/FeatureLayerQueryProvider.js";import{HitTestIdentifyProvider}from"./HitTestIdentifyProvider.js";export class FeatureLayer3DHitTestIdentifyProvider extends HitTestIdentifyProvider{constructor(){super(...arguments),this.queryProvider=new FeatureLayerQueryProvider}isSupported(e,r,i){return super.isSupported(e,r,i)&&isFeatureLayerExtension(e)&&"scene"===e.mapExtension.viewMode&&(e.layer.hasZ||isSimpleRenderer3D(e.layer.renderer)||isClassBreaksRenderer3D(e.renderer)||isUniqueValueRenderer3D(e.layer.renderer))&&r&&!!e._layerView?.view?.extent?.intersects(isPoint(r)?r:r.extent)}}function isSimpleRenderer3D(e){return"simple"===e?.type&&isVolumetric(e.symbol)}function isClassBreaksRenderer3D(e){return"class-breaks"===e?.type&&e.classBreakInfos.map((e=>e.symbol)).some(isVolumetric)}function isUniqueValueRenderer3D(e){return"unique-value"===e?.type&&e.uniqueValueInfos.map((e=>e.symbol)).some(isVolumetric)}
1
+ import{isFeatureLayerExtension as e}from"../../utilities/extensions.js";import{isPoint as r}from"../../utilities/geometry.js";import{isVolumetric as t}from"../../utilities/symbol.js";import{FeatureLayerQueryProvider as s}from"../query/FeatureLayerQueryProvider.js";import{HitTestIdentifyProvider as i}from"./HitTestIdentifyProvider.js";export class FeatureLayer3DHitTestIdentifyProvider extends i{constructor(){super(...arguments),this.queryProvider=new s}isSupported(s,i,o){return super.isSupported(s,i,o)&&e(s)&&"scene"===s.mapExtension.viewMode&&(s.layer.hasZ||"simple"===(n=s.layer.renderer)?.type&&t(n.symbol)||function(e){return"class-breaks"===e?.type&&e.classBreakInfos.map((e=>e.symbol)).some(t)}(s.renderer)||function(e){return"unique-value"===e?.type&&e.uniqueValueInfos.map((e=>e.symbol)).some(t)}(s.layer.renderer))&&i&&!!s._layerView?.view?.extent?.intersects(r(i)?i:i.extent);var n}}
@@ -1 +1 @@
1
- import{cancelifyWithAbortSignal}from"../../support/Cancellable.js";import{isPoint}from"../../utilities/geometry.js";import{isFeatureLayer}from"../../utilities/layers.js";import{ClientSideIdentifyProvider}from"./ClientSideIdentifyProvider.js";import{hitTestForClusterFeatures}from"./_utilities.js";export class FeatureLayerClientSideIdentifyProvider extends ClientSideIdentifyProvider{isSupported(e,t,i){return isFeatureLayer(e.layer)&&e.enableClientSideData&&t&&!!e._layerView?.view?.extent?.intersects(isPoint(t)?t:t.extent)}async _getClientSideLayerGraphics(e,t,i,r){let a=[];if("cluster"===e.layer?.featureReduction?.type&&"point"===r&&(a=await hitTestForClusterFeatures(e,t)),a.length>0){const{_layerView:t}=e,r=await cancelifyWithAbortSignal((async r=>t.queryFeatures(super._createQuery(e,void 0,i,a.map((e=>e.getObjectId()))))),i.cancelToken);if(r?.features.length>0)return r.features}return super._getClientSideLayerGraphics(e,t,i)}}
1
+ import{cancelifyWithAbortSignal as e}from"../../support/Cancellable.js";import{isPoint as t}from"../../utilities/geometry.js";import{isFeatureLayer as r}from"../../utilities/layers.js";import{ClientSideIdentifyProvider as i}from"./ClientSideIdentifyProvider.js";import{hitTestForClusterFeatures as a}from"./_utilities.js";export class FeatureLayerClientSideIdentifyProvider extends i{isSupported(e,i,a){return r(e.layer)&&e.enableClientSideData&&i&&!!e._layerView?.view?.extent?.intersects(t(i)?i:i.extent)}async _getClientSideLayerGraphics(t,r,i,s){let n=[];if("cluster"===t.layer?.featureReduction?.type&&"point"===s&&(n=await a(t,r)),n.length>0){const{_layerView:r}=t,a=await e((async e=>r.queryFeatures(super._createQuery(t,void 0,i,n.map((e=>e.getObjectId()))))),i.cancelToken);if(a?.features.length>0)return a.features}return super._getClientSideLayerGraphics(t,r,i)}}
@@ -1 +1 @@
1
- import{executeQuery,executeCount}from"../../support/_query.js";import{isFeatureCollectionLayerExtension,isFeatureLayerExtension}from"../../utilities/extensions.js";import{removeZValues}from"../../utilities/geometry.js";import{isFeatureLayer}from"../../utilities/layers.js";import{IdentifyProviderBase}from"./IdentifyProviderBase.js";export class FeatureLayerQueryIdentifyProvider extends IdentifyProviderBase{isSupported(e,t,r){return(isFeatureLayerExtension(e)||isFeatureCollectionLayerExtension(e))&&isFeatureLayer(e.layer)}_identify(e,t,r){const a=e,i=a.layer.createQuery();let o=t;return!o||a.layer.hasZ&&a.layer.capabilities?.data?.supportsZ||(o=removeZValues(o.clone())),i.geometry=o,i.outFields=e.featureSettings.outFields,i.returnGeometry=r.returnGeometry,i.outSpatialReference=r.outSpatialReference,i.maxAllowableOffset=r.maxAllowableOffset,a.layer.capabilities.query.supportsPagination&&(i.num=r.maxResults),i.returnZ="scene"===e.mapExtension?.viewMode,executeQuery(i,a,a.layer,r.cancelToken)}_count(e,t,r){const a=e,i=a.layer.createQuery();let o=t;return!o||a.layer.hasZ&&a.layer.capabilities?.data?.supportsZ||(o=removeZValues(o.clone())),i.geometry=o,i.num=r.maxResults,i.returnGeometry=r.returnGeometry,i.outFields=e.featureSettings.outFields,executeCount(i,a,a.layer,r.cancelToken)}}
1
+ import{executeQuery as e,executeCount as t}from"../../support/_query.js";import{isFeatureCollectionLayerExtension as r,isFeatureLayerExtension as a}from"../../utilities/extensions.js";import{removeZValues as o}from"../../utilities/geometry.js";import{isFeatureLayer as s}from"../../utilities/layers.js";import{IdentifyProviderBase as i}from"./IdentifyProviderBase.js";export class FeatureLayerQueryIdentifyProvider extends i{isSupported(e,t,o){return(a(e)||r(e))&&s(e.layer)}_identify(t,r,a){const s=t,i=s.layer.createQuery();let l=r;return!l||s.layer.hasZ&&s.layer.capabilities?.data?.supportsZ||(l=o(l.clone())),i.geometry=l,i.outFields=t.featureSettings.outFields,i.returnGeometry=a.returnGeometry,i.outSpatialReference=a.outSpatialReference,i.maxAllowableOffset=a.maxAllowableOffset,s.layer.capabilities.query.supportsPagination&&(i.num=a.maxResults),i.returnZ="scene"===t.mapExtension?.viewMode,e(i,s,s.layer,a.cancelToken)}_count(e,r,a){const s=e,i=s.layer.createQuery();let l=r;return!l||s.layer.hasZ&&s.layer.capabilities?.data?.supportsZ||(l=o(l.clone())),i.geometry=l,i.num=a.maxResults,i.returnGeometry=a.returnGeometry,i.outFields=e.featureSettings.outFields,t(i,s,s.layer,a.cancelToken)}}
@@ -1 +1 @@
1
- import{isGeoRssLayerExtension}from"../../utilities/extensions.js";import{GeoRSSLayerQueryProvider}from"../query/GeoRSSLayerQueryProvider.js";import{IdentifyProviderBase}from"./IdentifyProviderBase.js";export class GeoRSSLayerIdentifyProvider extends IdentifyProviderBase{constructor(){super(...arguments),this._provider=new GeoRSSLayerQueryProvider}isSupported(e,r,t){return isGeoRssLayerExtension(e)}_identify(e,r,t){const o=e,s={cancelToken:t.cancelToken,outFields:e.featureSettings.outFields,returnGeometry:t.returnGeometry,spatialFilter:r,maxResults:t.maxResults};return this._provider.query(o,"1=1",s)}_count(e,r,t){const o=e,s={cancelToken:t.cancelToken,spatialFilter:r,maxResults:t.maxResults,returnGeometry:t.returnGeometry,outFields:e.featureSettings.outFields};return this._provider.count(o,"1=1",s)}}
1
+ import{isGeoRssLayerExtension as e}from"../../utilities/extensions.js";import{GeoRSSLayerQueryProvider as r}from"../query/GeoRSSLayerQueryProvider.js";import{IdentifyProviderBase as t}from"./IdentifyProviderBase.js";export class GeoRSSLayerIdentifyProvider extends t{constructor(){super(...arguments),this._provider=new r}isSupported(r,t,o){return e(r)}_identify(e,r,t){const o=e,s={cancelToken:t.cancelToken,outFields:e.featureSettings.outFields,returnGeometry:t.returnGeometry,spatialFilter:r,maxResults:t.maxResults};return this._provider.query(o,"1=1",s)}_count(e,r,t){const o=e,s={cancelToken:t.cancelToken,spatialFilter:r,maxResults:t.maxResults,returnGeometry:t.returnGeometry,outFields:e.featureSettings.outFields};return this._provider.count(o,"1=1",s)}}
@@ -1 +1 @@
1
- import{executeQuery,executeCount}from"../../support/_graphicsQuery.js";import{isGraphicsLayer}from"../../utilities/_layers.js";import{IdentifyProviderBase}from"./IdentifyProviderBase.js";export class GraphicsLayerQueryIdentifyProvider extends IdentifyProviderBase{isSupported(e,r,t){const{layer:s}=e;return isGraphicsLayer(s)&&e.capabilities.supportsQuery}_identify(e,r,t){const s=e.layer,i={cancelToken:t.cancelToken,outFields:e.featureSettings.outFields,returnGeometry:t.returnGeometry,spatialFilter:r,maxResults:t.maxResults};return executeQuery("1=1",e,s.graphics,i)}_count(e,r,t){const s=e.layer,i={cancelToken:t.cancelToken,spatialFilter:r,maxResults:t.maxResults};return executeCount("1=1",e,s.graphics,i)}}
1
+ import{executeQuery as e,executeCount as r}from"../../support/_graphicsQuery.js";import{isGraphicsLayer as t}from"../../utilities/_layers.js";import{IdentifyProviderBase as s}from"./IdentifyProviderBase.js";export class GraphicsLayerQueryIdentifyProvider extends s{isSupported(e,r,s){const{layer:i}=e;return t(i)&&e.capabilities.supportsQuery}_identify(r,t,s){const i=r.layer,a={cancelToken:s.cancelToken,outFields:r.featureSettings.outFields,returnGeometry:s.returnGeometry,spatialFilter:t,maxResults:s.maxResults};return e("1=1",r,i.graphics,a)}_count(e,t,s){const i=e.layer,a={cancelToken:s.cancelToken,spatialFilter:t,maxResults:s.maxResults};return r("1=1",e,i.graphics,a)}}
@@ -15,11 +15,11 @@ import { IdentifyProviderBase } from "./IdentifyProviderBase.js";
15
15
  /**
16
16
  * Layer extension types whose layers support the hit test operation.
17
17
  */
18
- export declare type HitTestLayerExtension = CSVLayerExtension | FeatureLayerExtension | PointCloudLayerExtension | SceneLayerExtension;
18
+ export type HitTestLayerExtension = CSVLayerExtension | FeatureLayerExtension | PointCloudLayerExtension | SceneLayerExtension;
19
19
  /**
20
20
  * Sublayer extension types whose sublayers support the hit test operation.
21
21
  */
22
- declare type HitTestSublayerExtension = BuildingComponentSublayerExtension;
22
+ type HitTestSublayerExtension = BuildingComponentSublayerExtension;
23
23
  /**
24
24
  * An identify provider that works with the graphics rendered on the map.
25
25
  */
@@ -1 +1 @@
1
- import{isLayerExtension}from"../../ItemType.js";import{toFeature}from"../../data/Feature.js";import*as asyncIterable from"../../utilities/asyncIterable.js";import{isPoint}from"../../utilities/geometry.js";import{isBuildingComponentSublayer}from"../../utilities/layers.js";import{IdentifyProviderBase}from"./IdentifyProviderBase.js";export class HitTestIdentifyProvider extends IdentifyProviderBase{isSupported(e,t,r){return"point"===t?.type||!this._supportsQuery(e)}_identify(e,t,r){const i=this,s={...r};return async function*(){const r=await getHitTestLayerGraphics(e,t),n=isLayerExtension(e)?e.layer:e.sublayer;if(r&&r.length){const t="point-cloud"===n.type?void 0:n.objectIdField;if(i.queryProvider&&i._supportsQuery(e)&&t&&!outFieldsAreCovered(r[0],e.featureSettings.outFields)){const n=r.map((e=>`${t} = ${e.getAttribute(t)}`)).join(" OR ");yield*i.queryProvider.query(e,n,s)}else yield*r.map((t=>toFeature(t,{source:e})))}else yield*asyncIterable.empty()}()}async _count(e,t,r){const i=await getHitTestLayerGraphics(e,t);return{source:e,count:i?i.length:0}}_supportsQuery(e){return!0}async _applyTolerance(e){return e}}async function getHitTestLayerGraphics(e,t){const r=isBuildingComponentSublayer(e.sublayer),i=r?e.layerExtension?.mapExtension:e.mapExtension,s=r?e.sublayer:e.layer,n=e._layerView.view;if("map"===i.viewMode||!n)return;const o=await n.hitTest(n.toScreen(isPoint(t)?t:t.extent.center));let a=o?o.results.sort(sortFunction).map((e=>e.graphic)).filter((e=>(e.sourceLayer??e.layer)===s)):void 0;const u=r?e.sublayer.objectIdField:e.layer.objectIdField;if(a&&u){const e=new Set(a.map((e=>e.getAttribute(u))));a=[...e].map((e=>a.find((t=>t.getAttribute(u)===e))))}return a}function outFieldsAreCovered(e,t){return t.every((t=>e.attributes.hasOwnProperty(t)))}function sortFunction(e,t){return e.distance<=t.distance?-1:1}
1
+ import{isLayerExtension as e}from"../../ItemType.js";import{toFeature as t}from"../../data/Feature.js";import*as r from"../../utilities/asyncIterable.js";import{isPoint as i}from"../../utilities/geometry.js";import{isBuildingComponentSublayer as s}from"../../utilities/layers.js";import{IdentifyProviderBase as o}from"./IdentifyProviderBase.js";export class HitTestIdentifyProvider extends o{isSupported(e,t,r){return"point"===t?.type||!this._supportsQuery(e)}_identify(i,s,o){const a=this,u={...o};return async function*(){const o=await n(i,s),y=e(i)?i.layer:i.sublayer;if(o?.length){const e="point-cloud"===y.type?void 0:y.objectIdField;if(a.queryProvider&&a._supportsQuery(i)&&e&&(c=o[0],!i.featureSettings.outFields.every((e=>c.attributes.hasOwnProperty(e))))){const t=o.map((t=>`${e} = ${t.getAttribute(e)}`)).join(" OR ");yield*a.queryProvider.query(i,t,u)}else yield*o.map((e=>t(e,{source:i})))}else yield*r.empty();var c}()}async _count(e,t,r){const i=await n(e,t);return{source:e,count:i?i.length:0}}_supportsQuery(e){return!0}async _applyTolerance(e){return e}}async function n(e,t){const r=s(e.sublayer),o=r?e.layerExtension?.mapExtension:e.mapExtension,n=r?e.sublayer:e.layer,u=e._layerView.view;if("map"===o.viewMode||!u)return;const y=await u.hitTest(u.toScreen(i(t)?t:t.extent.center));let c=y?y.results.sort(a).map((e=>e.graphic)).filter((e=>(e.sourceLayer??e.layer)===n)):void 0;const l=r?e.sublayer.objectIdField:e.layer.objectIdField;if(c&&l){const e=new Set(c.map((e=>e.getAttribute(l))));c=[...e].map((e=>c.find((t=>t.getAttribute(l)===e))))}return c}function a(e,t){return e.distance<=t.distance?-1:1}
@@ -1 +1 @@
1
- import{format}from"../../utilities/string.js";export class IdentifyError extends Error{constructor(r,e,...o){super(e&&format(e,...o)||"One or more sources could not be identified."),this.name="IdentifyError",this.errors=new Map(r)}}
1
+ import{format as r}from"../../utilities/string.js";export class IdentifyError extends Error{constructor(e,o,...t){super(o&&r(o,...t)||"One or more sources could not be identified."),this.name="IdentifyError",this.errors=new Map(e)}}
@@ -1 +1 @@
1
- import{InvalidOperationError}from"../../InvalidOperationError.js";import{checkArg}from"../../utilities/checkArg.js";import{buffer}from"../../utilities/geometry.js";import{IdentifyOptions}from"./IdentifyOptions.js";export class IdentifyProviderBase{identify(e,t,i){if(checkArg("source",e).isNotMissing(),checkArg("geometry",t).isNotMissing(),!this.isSupported(e,t,i))throw new InvalidOperationError("Unsupported feature source.");const r=this;return async function*(){await e.initialize(),yield*r._identify(e,await r._applyTolerance(t,i),{...IdentifyOptions.DEFAULTS,...IdentifyOptions.fromFeatureSource(e),...i},t.type)}()}async count(e,t,i){if(checkArg("source",e).isNotMissing(),checkArg("geometry",t).isNotMissing(),!this.isSupported(e,t,i))throw new InvalidOperationError("Unsupported feature source.");await e.initialize();return this._count(e,await this._applyTolerance(t,i),{...IdentifyOptions.fromFeatureSource(e),...i,returnGeometry:!1},t.type)}async _applyTolerance(e,t){switch(e.type){case"point":case"multipoint":case"polygon":case"polyline":return!t||!t.tolerance||t.tolerance<=0?e:await buffer(e,t.tolerance,"meters")??e;default:return e}}}
1
+ import{InvalidOperationError as e}from"../../InvalidOperationError.js";import{checkArg as t}from"../../utilities/checkArg.js";import{buffer as i}from"../../utilities/geometry.js";import{IdentifyOptions as r}from"./IdentifyOptions.js";export class IdentifyProviderBase{identify(i,o,s){if(t("source",i).isNotMissing(),t("geometry",o).isNotMissing(),!this.isSupported(i,o,s))throw new e("Unsupported feature source.");const n=this;return async function*(){await i.initialize(),yield*n._identify(i,await n._applyTolerance(o,s),{...r.DEFAULTS,...r.fromFeatureSource(i),...s},o.type)}()}async count(i,o,s){if(t("source",i).isNotMissing(),t("geometry",o).isNotMissing(),!this.isSupported(i,o,s))throw new e("Unsupported feature source.");await i.initialize();return this._count(i,await this._applyTolerance(o,s),{...r.fromFeatureSource(i),...s,returnGeometry:!1},o.type)}async _applyTolerance(e,t){switch(e.type){case"point":case"multipoint":case"polygon":case"polyline":return!t?.tolerance||t.tolerance<=0?e:await i(e,t.tolerance,"meters")??e;default:return e}}}
@@ -1 +1 @@
1
- import{isLayerExtension,isMapExtension,isSublayerExtension}from"../../ItemType.js";import{MapExtension}from"../../mapping/MapExtension.js";import{isCancellation}from"../../support/utilities.js";import{AsyncQueue,empty,from}from"../../utilities/asyncIterable.js";import{checkArg}from"../../utilities/checkArg.js";import{Collection}from"../../utilities/collection.js";import{createCrossTypeUnion}from"../../utilities/geometry.js";import{isMap}from"../../utilities/mapping.js";import{ArcGISSublayerQueryIdentifyProvider}from"./ArcGISSublayerQueryIdentifyProvider.js";import{BuildingComponentSublayerClientSideIdentifyProvider}from"./BuildingComponentSublayerClientSideIdentifyProvider.js";import{BuildingComponentSublayerHitTestIdentifyProvider}from"./BuildingComponentSublayerHitTestIdentifyProvider.js";import{CSVLayer3DHitTestIdentifyProvider}from"./CSVLayer3DHitTestIdentifyProvider.js";import{CSVLayerClientSideQueryIdentifyProvider}from"./CSVLayerClientSideQueryIdentifyProvider.js";import{FeatureLayer3DHitTestIdentifyProvider}from"./FeatureLayer3DHitTestIdentifyProvider.js";import{FeatureLayerClientSideIdentifyProvider}from"./FeatureLayerClientSideIdentifyProvider.js";import{FeatureLayerQueryIdentifyProvider}from"./FeatureLayerQueryIdentifyProvider.js";import{GeoRSSLayerIdentifyProvider}from"./GeoRSSLayerIdentifyProvider.js";import{GraphicsLayerQueryIdentifyProvider}from"./GraphicsLayerQueryIdentifyProvider.js";import{IdentifyError}from"./IdentifyError.js";import{IdentifyOptions}from"./IdentifyOptions.js";import{ImageryLayerIdentifyProvider}from"./ImageryLayerIdentifyProvider.js";import{KMLLayerQueryIdentifyProvider}from"./KMLLayerQueryIdentifyProvider.js";import{PointCloudLayerHitTestIdentifyProvider}from"./PointCloudLayerHitTestIdentifyProvider.js";import{SceneLayerClientSideIdentifyProvider}from"./SceneLayerClientSideIdentifyProvider.js";import{SceneLayerHitTestIdentifyProvider}from"./SceneLayerHitTestIdentifyProvider.js";import{SceneLayerQueryIdentifyProvider}from"./SceneLayerQueryIdentifyProvider.js";import{StreamLayerClientSideQueryIdentifyProvider}from"./StreamLayerClientSideQueryIdentifyProvider.js";import{SubtypeSublayerClientSideIdentifyProvider}from"./SubtypeSublayerClientSideIdentifyProvider.js";import{SubtypeSublayerQueryIdentifyProvider}from"./SubtypeSublayerQueryIdentifyProvider.js";import{WMSSublayerIdentifyProvider}from"./WMSSublayerIdentifyProvider.js";export class IdentifyService{constructor(){this.providers=new Collection,this.providers.add(new ArcGISSublayerQueryIdentifyProvider),this.providers.add(new CSVLayer3DHitTestIdentifyProvider),this.providers.add(new CSVLayerClientSideQueryIdentifyProvider),this.providers.add(new FeatureLayer3DHitTestIdentifyProvider),this.providers.add(new FeatureLayerClientSideIdentifyProvider),this.providers.add(new FeatureLayerQueryIdentifyProvider),this.providers.add(new GeoRSSLayerIdentifyProvider),this.providers.add(new ImageryLayerIdentifyProvider),this.providers.add(new KMLLayerQueryIdentifyProvider),this.providers.add(new WMSSublayerIdentifyProvider),this.providers.add(new PointCloudLayerHitTestIdentifyProvider),this.providers.add(new SceneLayerHitTestIdentifyProvider),this.providers.add(new SceneLayerQueryIdentifyProvider),this.providers.add(new SceneLayerClientSideIdentifyProvider),this.providers.add(new StreamLayerClientSideQueryIdentifyProvider),this.providers.add(new GraphicsLayerQueryIdentifyProvider),this.providers.add(new BuildingComponentSublayerHitTestIdentifyProvider),this.providers.add(new BuildingComponentSublayerClientSideIdentifyProvider),this.providers.add(new SubtypeSublayerClientSideIdentifyProvider),this.providers.add(new SubtypeSublayerQueryIdentifyProvider)}isSupported(e,r,i){return!!this.providers.find((t=>t.isSupported(e,r,i)))}identify(e,r,i){checkArg("sources",e).isNotMissing(),checkArg("geometry",r).isNotMissing();const t={...IdentifyOptions.DEFAULTS,...i},{outSpatialReference:o,onSourceComplete:n}=t;if(void 0!==i?.maxResults&&i.maxResults<=0)return empty();let d;Array.isArray(r)?(checkArg("geometry",r).isNotEmpty(),d=r):d=[r];const s=createCrossTypeUnion(d);let y,a=[];Collection.isCollection(e)?a=e.toArray():isMapExtension(e)?y=e:isMap(e)?y=new MapExtension({map:e}):a=[...e];let f=0;const u=new AsyncQueue,p=new Map,l=e=>{f++;const r={source:e,count:0,time:-1};(async()=>{try{if(u.isDone)return;const d=Date.now();await e.initialize();for await(const n of from(s.map((r=>{const o=this.providers.find((t=>t.isSupported(e,r,i)));return o?o.identify(e,r,t):empty()})),"eager")){if(r.count++,r.time<0&&(r.time=Date.now()-d),u.isDone)return;o&&(n.schema.spatialReference=o),u.add(n)}r.time<0&&(r.time=Date.now()-d)}catch(i){if(r.failureReason=i,isCancellation(i))return void u.reject(i);p.set(e,i)}finally{n?.(r)}0==--f&&(p.size?u.reject(new IdentifyError(p)):u.done())})()};return(async()=>{try{y&&(await y.initialize(),a=y.getAllFeatureSources(isIdentifiable))}catch(e){u.reject(new Error("Map failed to initialize.",{cause:e}))}a.forEach(l),0===f&&u.done()})(),u}count(e,r,i){checkArg("sources",e).isNotMissing(),checkArg("geometry",r).isNotMissing();const t={...i,returnGeometry:!1};let o,n=[];Collection.isCollection(e)?n=e.toArray():isMapExtension(e)?o=e:isMap(e)?o=new MapExtension({map:e}):n=[...e];let d=0;const s=new AsyncQueue,y=new Map,a=e=>{const o=this.providers.find((t=>t.isSupported(e,r,i)));o&&(d++,(async()=>{if(!s.isDone){try{if(await e.initialize(),s.isDone)return;s.add(await o.count(e,r,t))}catch(r){if(isCancellation(r))return void s.reject(r);y.set(e,r)}0==--d&&(y.size?s.reject(new IdentifyError(y)):s.done())}})())};return(async()=>{try{o&&(await o.initialize(),n=o.getAllFeatureSources(isIdentifiable))}catch(e){s.reject(new Error("Map failed to initialize.",{cause:e}))}n.forEach(a),0===d&&s.done()})(),s}}export function isIdentifiable(e){return!!e.taskSettings.enableIdentify&&(isLayerExtension(e)?e.layer?.visible:!isSublayerExtension(e)||e.sublayer?.visible)}
1
+ import{isLayerExtension as e,isMapExtension as i,isSublayerExtension as r}from"../../ItemType.js";import{MapExtension as t}from"../../mapping/MapExtension.js";import{isCancellation as o}from"../../support/utilities.js";import{AsyncQueue as s,empty as n,from as d}from"../../utilities/asyncIterable.js";import{checkArg as a}from"../../utilities/checkArg.js";import{Collection as p}from"../../utilities/collection.js";import{createCrossTypeUnion as m}from"../../utilities/geometry.js";import{isMap as f}from"../../utilities/mapping.js";import{ArcGISSublayerQueryIdentifyProvider as y}from"./ArcGISSublayerQueryIdentifyProvider.js";import{BuildingComponentSublayerClientSideIdentifyProvider as u}from"./BuildingComponentSublayerClientSideIdentifyProvider.js";import{BuildingComponentSublayerHitTestIdentifyProvider as c}from"./BuildingComponentSublayerHitTestIdentifyProvider.js";import{CSVLayer3DHitTestIdentifyProvider as l}from"./CSVLayer3DHitTestIdentifyProvider.js";import{CSVLayerClientSideQueryIdentifyProvider as v}from"./CSVLayerClientSideQueryIdentifyProvider.js";import{FeatureLayer3DHitTestIdentifyProvider as w}from"./FeatureLayer3DHitTestIdentifyProvider.js";import{FeatureLayerClientSideIdentifyProvider as j}from"./FeatureLayerClientSideIdentifyProvider.js";import{FeatureLayerQueryIdentifyProvider as S}from"./FeatureLayerQueryIdentifyProvider.js";import{GeoRSSLayerIdentifyProvider as h}from"./GeoRSSLayerIdentifyProvider.js";import{GraphicsLayerQueryIdentifyProvider as I}from"./GraphicsLayerQueryIdentifyProvider.js";import{IdentifyError as P}from"./IdentifyError.js";import{IdentifyOptions as g}from"./IdentifyOptions.js";import{ImageryLayerIdentifyProvider as b}from"./ImageryLayerIdentifyProvider.js";import{KMLLayerQueryIdentifyProvider as L}from"./KMLLayerQueryIdentifyProvider.js";import{PointCloudLayerHitTestIdentifyProvider as C}from"./PointCloudLayerHitTestIdentifyProvider.js";import{SceneLayerClientSideIdentifyProvider as M}from"./SceneLayerClientSideIdentifyProvider.js";import{SceneLayerHitTestIdentifyProvider as D}from"./SceneLayerHitTestIdentifyProvider.js";import{SceneLayerQueryIdentifyProvider as A}from"./SceneLayerQueryIdentifyProvider.js";import{StreamLayerClientSideQueryIdentifyProvider as z}from"./StreamLayerClientSideQueryIdentifyProvider.js";import{SubtypeSublayerClientSideIdentifyProvider as E}from"./SubtypeSublayerClientSideIdentifyProvider.js";import{SubtypeSublayerQueryIdentifyProvider as Q}from"./SubtypeSublayerQueryIdentifyProvider.js";import{WMSSublayerIdentifyProvider as T}from"./WMSSublayerIdentifyProvider.js";export class IdentifyService{constructor(){this.providers=new p,this.providers.add(new y),this.providers.add(new l),this.providers.add(new v),this.providers.add(new w),this.providers.add(new j),this.providers.add(new S),this.providers.add(new h),this.providers.add(new b),this.providers.add(new L),this.providers.add(new T),this.providers.add(new C),this.providers.add(new D),this.providers.add(new A),this.providers.add(new M),this.providers.add(new z),this.providers.add(new I),this.providers.add(new c),this.providers.add(new u),this.providers.add(new E),this.providers.add(new Q)}isSupported(e,i,r){return!!this.providers.find((t=>t.isSupported(e,i,r)))}identify(e,r,y){a("sources",e).isNotMissing(),a("geometry",r).isNotMissing();const u={...g.DEFAULTS,...y},{outSpatialReference:c,onSourceComplete:l}=u;if(void 0!==y?.maxResults&&y.maxResults<=0)return n();let v;Array.isArray(r)?(a("geometry",r).isNotEmpty(),v=r):v=[r];const w=m(v);let j,S=[];p.isCollection(e)?S=e.toArray():i(e)?j=e:f(e)?j=new t({map:e}):S=[...e];let h=0;const I=new s,b=new Map,L=e=>{h++;const i={source:e,count:0,time:-1};(async()=>{try{if(I.isDone)return;const r=Date.now();await e.initialize();for await(const t of d(w.map((i=>{const r=this.providers.find((r=>r.isSupported(e,i,y)));return r?r.identify(e,i,u):n()})),"eager")){if(i.count++,i.time<0&&(i.time=Date.now()-r),I.isDone)return;c&&(t.schema.spatialReference=c),I.add(t)}i.time<0&&(i.time=Date.now()-r)}catch(r){if(i.failureReason=r,o(r))return void I.reject(r);b.set(e,r)}finally{l?.(i)}0==--h&&(b.size?I.reject(new P(b)):I.done())})()};return(async()=>{try{j&&(await j.initialize(),S=j.getAllFeatureSources(isIdentifiable))}catch(e){I.reject(new Error("Map failed to initialize.",{cause:e}))}S.forEach(L),0===h&&I.done()})(),I}count(e,r,n){a("sources",e).isNotMissing(),a("geometry",r).isNotMissing();const d={...n,returnGeometry:!1};let m,y=[];p.isCollection(e)?y=e.toArray():i(e)?m=e:f(e)?m=new t({map:e}):y=[...e];let u=0;const c=new s,l=new Map,v=e=>{const i=this.providers.find((i=>i.isSupported(e,r,n)));i&&(u++,(async()=>{if(!c.isDone){try{if(await e.initialize(),c.isDone)return;c.add(await i.count(e,r,d))}catch(i){if(o(i))return void c.reject(i);l.set(e,i)}0==--u&&(l.size?c.reject(new P(l)):c.done())}})())};return(async()=>{try{m&&(await m.initialize(),y=m.getAllFeatureSources(isIdentifiable))}catch(e){c.reject(new Error("Map failed to initialize.",{cause:e}))}y.forEach(v),0===u&&c.done()})(),c}}export function isIdentifiable(i){return!!i.taskSettings.enableIdentify&&(e(i)?i.layer?.visible:!r(i)||i.sublayer?.visible)}
@@ -1 +1 @@
1
- import Point from"@arcgis/core/geometry/Point";import Polygon from"@arcgis/core/geometry/Polygon";import{project}from"@arcgis/core/rest/geometryService";import{identify as imageIdentify}from"@arcgis/core/rest/imageService";import ImageIdentifyParameters from"@arcgis/core/rest/support/ImageIdentifyParameters";import ProjectParams from"@arcgis/core/rest/support/ProjectParameters";import{Feature,toFeature}from"../../data/Feature.js";import{cancelifyWithAbortSignal}from"../../support/Cancellable.js";import{constrainQueryTimeExtentToView}from"../../support/_query.js";import{toArray}from"../../utilities/asyncIterable.js";import{isImageryLayerExtension}from"../../utilities/extensions.js";import{isPoint,isPolygon,isPolyline}from"../../utilities/geometry.js";import{getLogger}from"../../utilities/log.js";import{isNumeric}from"../../utilities/number.js";import{IdentifyProviderBase}from"./IdentifyProviderBase.js";const log=getLogger("ImageryLayerIdentifyProvider");export class ImageryLayerIdentifyProvider extends IdentifyProviderBase{isSupported(e,t,r){return isImageryLayerExtension(e)}async*_identify(e,t,r){const i=e;let a=t;if(t&&!isPoint(t)&&!isPolygon(t))if(isPolyline(t)){log.debug("An identify on an Imagery Layer (ArcGISImageServiceLayer) was performed using polyline geometry, which is not supported. The center vertex of in the input geometry was used instead.");const e=t.paths[0][Math.floor(t.paths[0].length/2)];a=new Point({spatialReference:t.spatialReference,x:e[0],y:e[1]})}else a=Polygon.fromExtent(t.extent);const o=await this._executeIdentifyTask(i,a,r);yield*this._getResultFeatures(o,i,r)}async _count(e,t,r){const i=e;r.returnGeometry=!1;const a=await this._executeIdentifyTask(i,t,r);return{source:e,count:(await toArray(this._getResultFeatures(a,i,r))).length}}async _executeIdentifyTask(e,t,r){const{layer:i}=e,a=new ImageIdentifyParameters({geometry:t,mosaicRule:i.mosaicRule,renderingRule:i.renderingRule,returnCatalogItems:e.includeCatalogItems,returnGeometry:e.includeCatalogItems&&r.returnGeometry});constrainQueryTimeExtentToView(a,e);return cancelifyWithAbortSignal((async e=>imageIdentify(i.url,a,{signal:e})),r.cancelToken)}_getPixelData(e,t,r,i){const{layer:a}=i;let o=r.properties?.Values[e]??r.value,s=r.value;const n=a._rasterAttributeTableFieldPrefix;isNumeric(o)&&(o=parseFloat(o)),isNumeric(s)&&(s=parseFloat(s)),t.attributes.set(`${n}ServicePixelValue`,s),t.attributes.set(`${n}ServicePixelValue.Raw`,s),t.attributes.set(`${n}ItemPixelValue`,o);const l=a.serviceRasterInfo?.attributeTable??a.rasterInfo?.attributeTable;if(l){const{features:e,fields:r}=l,i=e.find((e=>e.getAttribute("Value")===o));r.forEach((e=>{"Value"!==e.name&&"oid"!==e.type&&t.attributes.set(`${n}${e.name}`,i?.getAttribute(e.name))}))}}async*_getResultFeatures(e,t,r){if("NoData"===e.value)return;const i=r.outSpatialReference&&r.outSpatialReference.wkid!==t.layer.spatialReference.wkid;if(t.includeCatalogItems&&e.catalogItems){let a=Promise.resolve([]);i&&r.returnGeometry&&(a=this._projectGeometries(t.layer.url,e.catalogItems.features.map((e=>e.geometry)),r.outSpatialReference,r.cancelToken));const o=[],{outFields:s}=t.featureSettings;e.catalogItems.features.forEach(((r,i)=>{const a=toFeature(r,{source:t});if(s&&!s.includes("*"))for(const e of a.attributes.keys())s.includes(e)||a.attributes.delete(e);a.attributes.set("visible",1===e.catalogItemVisibilities[i]),this._getPixelData(i,a,e,t),o.push(a)}));const n=await a;n.length>0&&n.forEach(((e,t)=>o[t].geometry=e)),yield*o}if(!t.includeCatalogItems||!e.catalogItems){const a=new Feature({source:t});a.geometry=i?(await this._projectGeometries(t.layer.url,[e.location],r.outSpatialReference,r.cancelToken))[0]:e.location,this._getPixelData(0,a,e,t),yield a}}_projectGeometries(e,t,r,i){const a=new ProjectParams({geometries:t,outSpatialReference:r});return cancelifyWithAbortSignal((async t=>project(e,a,{signal:t})),i)}}
1
+ import e from"@arcgis/core/geometry/Point";import t from"@arcgis/core/geometry/Polygon";import{project as r}from"@arcgis/core/rest/geometryService";import{identify as a}from"@arcgis/core/rest/imageService";import i from"@arcgis/core/rest/support/ImageIdentifyParameters";import s from"@arcgis/core/rest/support/ProjectParameters";import{Feature as o,toFeature as n}from"../../data/Feature.js";import{cancelifyWithAbortSignal as l}from"../../support/Cancellable.js";import{constrainQueryTimeExtentToView as c}from"../../support/_query.js";import{toArray as u}from"../../utilities/asyncIterable.js";import{isImageryLayerExtension as m}from"../../utilities/extensions.js";import{isPoint as f,isPolygon as g,isPolyline as y}from"../../utilities/geometry.js";import{getLogger as p}from"../../utilities/log.js";import{isNumeric as d}from"../../utilities/number.js";import{IdentifyProviderBase as I}from"./IdentifyProviderBase.js";const h=p("ImageryLayerIdentifyProvider");export class ImageryLayerIdentifyProvider extends I{isSupported(e,t,r){return m(e)}async*_identify(r,a,i){const s=r;let o=a;if(a&&!f(a)&&!g(a))if(y(a)){h.debug("An identify on an Imagery Layer (ArcGISImageServiceLayer) was performed using polyline geometry, which is not supported. The center vertex of in the input geometry was used instead.");const t=a.paths[0][Math.floor(a.paths[0].length/2)];o=new e({spatialReference:a.spatialReference,x:t[0],y:t[1]})}else o=t.fromExtent(a.extent);const n=await this._executeIdentifyTask(s,o,i);yield*this._getResultFeatures(n,s,i)}async _count(e,t,r){const a=e;r.returnGeometry=!1;const i=await this._executeIdentifyTask(a,t,r);return{source:e,count:(await u(this._getResultFeatures(i,a,r))).length}}async _executeIdentifyTask(e,t,r){const{layer:s}=e,o=new i({geometry:t,mosaicRule:s.mosaicRule,renderingRule:s.renderingRule,returnCatalogItems:e.includeCatalogItems,returnGeometry:e.includeCatalogItems&&r.returnGeometry});c(o,e);return l((async e=>a(s.url,o,{signal:e})),r.cancelToken)}_getPixelData(e,t,r,a){const{layer:i}=a;let s=r.properties?.Values[e]??r.value,o=r.value;const n=i._rasterAttributeTableFieldPrefix;d(s)&&(s=parseFloat(s)),d(o)&&(o=parseFloat(o)),t.attributes.set(`${n}ServicePixelValue`,o),t.attributes.set(`${n}ServicePixelValue.Raw`,o),t.attributes.set(`${n}ItemPixelValue`,s);const l=i.serviceRasterInfo?.attributeTable??i.rasterInfo?.attributeTable;if(l){const{features:e,fields:r}=l,a=e.find((e=>e.getAttribute("Value")===s));r.forEach((e=>{"Value"!==e.name&&"oid"!==e.type&&t.attributes.set(`${n}${e.name}`,a?.getAttribute(e.name))}))}}async*_getResultFeatures(e,t,r){if("NoData"===e.value)return;const a=r.outSpatialReference&&r.outSpatialReference.wkid!==t.layer.spatialReference.wkid;if(t.includeCatalogItems&&e.catalogItems){let i=Promise.resolve([]);a&&r.returnGeometry&&(i=this._projectGeometries(t.layer.url,e.catalogItems.features.map((e=>e.geometry)),r.outSpatialReference,r.cancelToken));const s=[],{outFields:o}=t.featureSettings;e.catalogItems.features.forEach(((r,a)=>{const i=n(r,{source:t});if(o&&!o.includes("*"))for(const e of i.attributes.keys())o.includes(e)||i.attributes.delete(e);i.attributes.set("visible",1===e.catalogItemVisibilities[a]),this._getPixelData(a,i,e,t),s.push(i)}));const l=await i;l.length>0&&l.forEach(((e,t)=>s[t].geometry=e)),yield*s}if(!t.includeCatalogItems||!e.catalogItems){const i=new o({source:t});i.geometry=a?(await this._projectGeometries(t.layer.url,[e.location],r.outSpatialReference,r.cancelToken))[0]:e.location,this._getPixelData(0,i,e,t),yield i}}_projectGeometries(e,t,a,i){const o=new s({geometries:t,outSpatialReference:a});return l((async t=>r(e,o,{signal:t})),i)}}
@@ -1 +1 @@
1
- import{KMLLayerQueryProvider}from"../query/KMLLayerQueryProvider.js";import{IdentifyProviderBase}from"./IdentifyProviderBase.js";export class KMLLayerQueryIdentifyProvider extends IdentifyProviderBase{constructor(){super(...arguments),this._provider=new KMLLayerQueryProvider}isSupported(e,r,t){return this._provider.isSupported(e)}_identify(e,r,t){const i={cancelToken:t.cancelToken,outFields:e.featureSettings.outFields,returnGeometry:t.returnGeometry,spatialFilter:r,maxResults:t.maxResults};return this._provider.query(e,"1=1",i)}_count(e,r,t){const i={cancelToken:t.cancelToken,spatialFilter:r,maxResults:t.maxResults};return this._provider.count(e,"1=1",i)}}
1
+ import{KMLLayerQueryProvider as e}from"../query/KMLLayerQueryProvider.js";import{IdentifyProviderBase as r}from"./IdentifyProviderBase.js";export class KMLLayerQueryIdentifyProvider extends r{constructor(){super(...arguments),this._provider=new e}isSupported(e,r,t){return this._provider.isSupported(e)}_identify(e,r,t){const s={cancelToken:t.cancelToken,outFields:e.featureSettings.outFields,returnGeometry:t.returnGeometry,spatialFilter:r,maxResults:t.maxResults};return this._provider.query(e,"1=1",s)}_count(e,r,t){const s={cancelToken:t.cancelToken,spatialFilter:r,maxResults:t.maxResults};return this._provider.count(e,"1=1",s)}}
@@ -1 +1 @@
1
- import{isPointCloudLayer}from"../../utilities/layers.js";import{HitTestIdentifyProvider}from"./HitTestIdentifyProvider.js";export class PointCloudLayerHitTestIdentifyProvider extends HitTestIdentifyProvider{isSupported(e,i,r){return super.isSupported(e,i,r)&&isPointCloudLayer(e.layer)&&"scene"===e.mapExtension?.viewMode&&!!e._layerView?.view}_supportsQuery(e){return!1}}
1
+ import{isPointCloudLayer as e}from"../../utilities/layers.js";import{HitTestIdentifyProvider as r}from"./HitTestIdentifyProvider.js";export class PointCloudLayerHitTestIdentifyProvider extends r{isSupported(r,t,i){return super.isSupported(r,t,i)&&e(r.layer)&&"scene"===r.mapExtension?.viewMode&&!!r._layerView?.view}_supportsQuery(e){return!1}}
@@ -1 +1 @@
1
- import{isSceneLayer}from"../../utilities/layers.js";import{ClientSideIdentifyProvider}from"./ClientSideIdentifyProvider.js";export class SceneLayerClientSideIdentifyProvider extends ClientSideIdentifyProvider{isSupported(e,t,r){return isSceneLayer(e.layer)}_createQuery(e,t,r){const{mapExtension:i,_layerView:n,featureSettings:a}=e,l=n.createQuery();return l.geometry=t,l.outFields=a.outFields,l.outSpatialReference=r.outSpatialReference,l.maxAllowableOffset=r.maxAllowableOffset,l.num=r.maxResults,l.returnZ="scene"===i.viewMode,l}}
1
+ import{isSceneLayer as e}from"../../utilities/layers.js";import{ClientSideIdentifyProvider as t}from"./ClientSideIdentifyProvider.js";export class SceneLayerClientSideIdentifyProvider extends t{isSupported(t,r,i){return e(t.layer)}_createQuery(e,t,r){const{mapExtension:i,_layerView:a,featureSettings:l}=e,o=a.createQuery();return o.geometry=t,o.outFields=l.outFields,o.outSpatialReference=r.outSpatialReference,o.maxAllowableOffset=r.maxAllowableOffset,o.num=r.maxResults,o.returnZ="scene"===i.viewMode,o}}
@@ -1 +1 @@
1
- import{isSceneLayerExtension}from"../../utilities/extensions.js";import{SceneLayerQueryProvider}from"../query/SceneLayerQueryProvider.js";import{HitTestIdentifyProvider}from"./HitTestIdentifyProvider.js";export class SceneLayerHitTestIdentifyProvider extends HitTestIdentifyProvider{constructor(){super(...arguments),this.queryProvider=new SceneLayerQueryProvider}isSupported(e,r,i){return super.isSupported(e,r,i)&&isSceneLayerExtension(e)&&"scene"===e.mapExtension.viewMode&&!!e._layerView?.view}_supportsQuery(e){return!!e.layer?.associatedLayer||!!e._layerView}}
1
+ import{isSceneLayerExtension as e}from"../../utilities/extensions.js";import{SceneLayerQueryProvider as r}from"../query/SceneLayerQueryProvider.js";import{HitTestIdentifyProvider as i}from"./HitTestIdentifyProvider.js";export class SceneLayerHitTestIdentifyProvider extends i{constructor(){super(...arguments),this.queryProvider=new r}isSupported(r,i,t){return super.isSupported(r,i,t)&&e(r)&&"scene"===r.mapExtension.viewMode&&!!r._layerView?.view}_supportsQuery(e){return!!e.layer?.associatedLayer||!!e._layerView}}