jmapcloud-ng-core-types 2.0.20-qa.4 → 2.0.20-qa.6
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.
- package/index.d.ts +137 -134
- package/package.json +1 -1
- package/public/core.d.ts +212 -176
- package/public/global-aliases.d.ts +2 -0
- package/public/jmap/datasource.ts +15 -0
- package/public/jmap/features.d.ts +12 -13
- package/public/jmap/language.d.ts +1 -2
- package/public/jmap/layer.d.ts +54 -33
- package/public/jmap/main.d.ts +1 -0
- package/public/jmap/map-context.d.ts +3 -4
- package/public/jmap/map.d.ts +4 -7
- package/public/jmap/mouseover.d.ts +7 -14
- package/public/jmap/selection.d.ts +2 -5
- package/public/jmap/simple-search.d.ts +2 -3
- package/public/jmap/startup-options.d.ts +1 -2
- package/public/jmap/table.d.ts +3 -0
- package/public/state.d.ts +6 -7
package/index.d.ts
CHANGED
|
@@ -92,8 +92,8 @@ export interface JUIService {
|
|
|
92
92
|
}
|
|
93
93
|
|
|
94
94
|
export interface JSimpleSearchService {
|
|
95
|
-
getSelectedLayerIds():
|
|
96
|
-
setSelectedLayerIds(layerIds:
|
|
95
|
+
getSelectedLayerIds(): string[]
|
|
96
|
+
setSelectedLayerIds(layerIds: string[]): void
|
|
97
97
|
setQueryString(queryString: string): void
|
|
98
98
|
search(queryString: string, options?: JSimpleSearchOptions): Promise<JSimpleSearchResult[]>
|
|
99
99
|
}
|
|
@@ -113,26 +113,26 @@ export interface JMapContextService {
|
|
|
113
113
|
startCreation(): void
|
|
114
114
|
cancelCreation(): void
|
|
115
115
|
getAll(): JMapContext[]
|
|
116
|
-
getById(contextId:
|
|
117
|
-
existsById(contextId:
|
|
116
|
+
getById(contextId: string): JMapContext
|
|
117
|
+
existsById(contextId: string): boolean
|
|
118
118
|
getUrlByUUID(contextUUID: string): string
|
|
119
|
-
applyContextById(contextId:
|
|
120
|
-
deleteContextById(contextId:
|
|
119
|
+
applyContextById(contextId: string): Promise<void>
|
|
120
|
+
deleteContextById(contextId: string | string[]): Promise<void>
|
|
121
121
|
create(params?: JMapContextMetaData): Promise<JMapContext>
|
|
122
|
-
update(contextId:
|
|
123
|
-
updateMetaData(contextId:
|
|
122
|
+
update(contextId: string, params?: JMapContextMetaData): Promise<JMapContext>
|
|
123
|
+
updateMetaData(contextId: string, params: JMapContextMetaData): Promise<void>
|
|
124
124
|
setCreateTitle(newTitle: string): void
|
|
125
125
|
setCreateDescription(newDescription: string): void
|
|
126
126
|
setCreateTitleError(hasError: boolean): void
|
|
127
|
-
getContextTitle(contextId:
|
|
128
|
-
setContextTitle(contextId:
|
|
129
|
-
getContextDescription(contextId:
|
|
130
|
-
setContextDescription(contextId:
|
|
131
|
-
isLinkShared(contextId:
|
|
132
|
-
setLinkShare(contextId:
|
|
127
|
+
getContextTitle(contextId: string): string
|
|
128
|
+
setContextTitle(contextId: string, title: string): Promise<void>
|
|
129
|
+
getContextDescription(contextId: string): string
|
|
130
|
+
setContextDescription(contextId: string, description: string): Promise<void>
|
|
131
|
+
isLinkShared(contextId: string): boolean
|
|
132
|
+
setLinkShare(contextId: string, isShared: boolean): Promise<void>
|
|
133
133
|
getDefaultContext(): JMapContext | undefined
|
|
134
|
-
isDefaultContext(contextId:
|
|
135
|
-
setDefaultContext(contextId?:
|
|
134
|
+
isDefaultContext(contextId: string): boolean
|
|
135
|
+
setDefaultContext(contextId?: string): Promise<void>
|
|
136
136
|
sortListBy(sortBy: JMAP_CONTEXT_SORT_BY_OPTIONS): void
|
|
137
137
|
getListSortBy(): JMAP_CONTEXT_SORT_BY_OPTIONS
|
|
138
138
|
getAllListSortBy(): JMAP_CONTEXT_SORT_BY_OPTIONS[]
|
|
@@ -178,7 +178,9 @@ export interface JUtilService {
|
|
|
178
178
|
loadJSFile(fileUrl: string): Promise<void>
|
|
179
179
|
isJMapId(id: any, allowStringNumber?: boolean): boolean
|
|
180
180
|
checkJmapId(id: any, message?: string): void
|
|
181
|
-
|
|
181
|
+
getFeatureId(feature: GeoJSON.Feature): number
|
|
182
|
+
/** @deprecated Entity ids are strings and feature ids are numbers; use {@link getFeatureId} for a feature. */
|
|
183
|
+
getJmapIdAsIntegerIfPossible(id: any): number | string
|
|
182
184
|
asyncProcess(callback: () => any, timeoutsInMilliseconds: number[]): () => void
|
|
183
185
|
}
|
|
184
186
|
|
|
@@ -199,16 +201,16 @@ export interface JLocalStorageService {
|
|
|
199
201
|
}
|
|
200
202
|
|
|
201
203
|
export interface JFeatureService {
|
|
202
|
-
getById(layerId:
|
|
203
|
-
getByIds(layerId:
|
|
204
|
-
getByLayerId(layerId:
|
|
204
|
+
getById(layerId: string, featureId: number, includeAllAttributes?: boolean): Promise<GeoJSON.Feature>
|
|
205
|
+
getByIds(layerId: string, featureIds: number[]): Promise<GeoJSON.Feature[]>
|
|
206
|
+
getByLayerId(layerId: string, bbox: JBoundaryBox): Promise<GeoJSON.Feature[]>
|
|
205
207
|
geometryUpdateById(params: JFeatureGeometryUpdateParams): Promise<GeoJSON.Feature>
|
|
206
208
|
propertiesUpdateById(params: JFeaturePropertiesUpdateParams): Promise<GeoJSON.Feature>
|
|
207
|
-
deleteById(layerId:
|
|
208
|
-
// deleteByIds(layerId:
|
|
209
|
+
deleteById(layerId: string, featureId: number): Promise<number>
|
|
210
|
+
// deleteByIds(layerId: string, featureIds: number[]): Promise<JFeatureDeleteByIdsResult>
|
|
209
211
|
// TODO: see if the future endpoint will return detail about individual deleted features success or failure
|
|
210
212
|
// https://k2geospatial.atlassian.net/browse/JMAP8-1589
|
|
211
|
-
deleteByIds(layerId:
|
|
213
|
+
deleteByIds(layerId: string, featureIds: number[]): Promise<number[]>
|
|
212
214
|
geometryCreate(params: JFeatureGeometryCreateParams): Promise<GeoJSON.Feature>
|
|
213
215
|
}
|
|
214
216
|
|
|
@@ -274,7 +276,7 @@ export interface JEventListener {
|
|
|
274
276
|
|
|
275
277
|
export type JEventSimpleListenerFunction = (listenerId: string, fn: JEventFunction) => void
|
|
276
278
|
|
|
277
|
-
export type JEventResourceListenerFunction = (listenerId: string, resourceId:
|
|
279
|
+
export type JEventResourceListenerFunction = (listenerId: string, resourceId: string, fn: JEventFunction) => void
|
|
278
280
|
|
|
279
281
|
export type JEventListenerFunction = JEventSimpleListenerFunction | JEventResourceListenerFunction
|
|
280
282
|
|
|
@@ -359,9 +361,9 @@ export interface JMapEventModule extends JEventModule {
|
|
|
359
361
|
move(listenerId: string, fn: (params: JMapEventParams) => void): void
|
|
360
362
|
moveEnd(listenerId: string, fn: (params: JMapEventParams) => void): void
|
|
361
363
|
mouseMove(listenerId: string, fn: (params: JMapEventLayerParams) => void): void
|
|
362
|
-
mouseMoveOnLayer(listenerId: string, layerId:
|
|
363
|
-
mouseEnterOnLayer(listenerId: string, layerId:
|
|
364
|
-
mouseLeaveOnLayer(listenerId: string, layerId:
|
|
364
|
+
mouseMoveOnLayer(listenerId: string, layerId: string, fn: (params: JMapEventFeaturesParams) => void): void
|
|
365
|
+
mouseEnterOnLayer(listenerId: string, layerId: string, fn: (params: JMapEventFeaturesParams) => void): void
|
|
366
|
+
mouseLeaveOnLayer(listenerId: string, layerId: string, fn: (params: JMapEventLayerParams) => void): void
|
|
365
367
|
click(listenerId: string, fn: (params: JMapEventLocationParams) => void): void
|
|
366
368
|
zoomStart(listenerId: string, fn: (params: JMapEventZoomParams) => void): void
|
|
367
369
|
zoom(listenerId: string, fn: (params: JMapEventZoomParams) => void): void
|
|
@@ -418,13 +420,13 @@ export interface JFormService {
|
|
|
418
420
|
}
|
|
419
421
|
|
|
420
422
|
export interface JAttachmentService {
|
|
421
|
-
getByItemId(dataSourceId:
|
|
423
|
+
getByItemId(dataSourceId: string, dataSourceOrganizationId: string, itemId: number): Promise<JAttachment[]>
|
|
422
424
|
create(dataSourceId: string, dataSourceOrganizationId: string, params: JCreateAttachmentParams): Promise<string>
|
|
423
425
|
remove(dataSourceId: string, dataSourceOrganizationId: string, attachmentId: string): Promise<string>
|
|
424
426
|
update(dataSourceId: string, dataSourceOrganizationId: string, attachmentId: string, params: JUpdateAttachmentParams): Promise<string>
|
|
425
427
|
download(dataSourceId: string, dataSourceOrganizationId: string, attachmentId: string): Promise<{ data: Blob; headers: any }>
|
|
426
428
|
downloadToDevice(attachment: JAttachmentFile, dataSourceId: string, dataSourceOrganizationId: string): Promise<void>
|
|
427
|
-
previewAttachments(attachmentId: string, dataSourceId: string, dataSourceOrganizationId: string, itemId:
|
|
429
|
+
previewAttachments(attachmentId: string, dataSourceId: string, dataSourceOrganizationId: string, itemId: number): void
|
|
428
430
|
}
|
|
429
431
|
|
|
430
432
|
export interface JHistoryService {
|
|
@@ -468,7 +470,7 @@ export interface JGeometryService {
|
|
|
468
470
|
getFeatureCollection(features: Feature[] | JLocation[] | JPoint[]): FeatureCollection
|
|
469
471
|
getCircleFeature(center: JPoint | JLocation, radius: number): Feature<Polygon> // radius in km
|
|
470
472
|
getPolygonFeature(coordinates: JPoint[], closeCoordinates?: boolean): Feature<Polygon>
|
|
471
|
-
isGeometryTypeValidForLayer(layerId:
|
|
473
|
+
isGeometryTypeValidForLayer(layerId: string, geometryType: GeoJSON.GeoJsonGeometryTypes): boolean
|
|
472
474
|
getRotatedFeature(feature: GeoJSON.Feature, angle: number): GeoJSON.Feature
|
|
473
475
|
convertLength(length: number, toUnit: JMAP_DISTANCE_UNITS, fromUnit?: JMAP_DISTANCE_UNITS): number // fromUnit is km by default
|
|
474
476
|
convertArea(area: number, toUnit: JMAP_DISTANCE_UNITS, fromUnit?: JMAP_DISTANCE_UNITS): number // fromUnit is km by default
|
|
@@ -493,14 +495,14 @@ export interface JMapService {
|
|
|
493
495
|
getExtent(): JBoundaryBox
|
|
494
496
|
getCenter(): { x: number; y: number }
|
|
495
497
|
getZoom(): number
|
|
496
|
-
getMaplibreSourceIdByJMapLayerId(layerId:
|
|
498
|
+
getMaplibreSourceIdByJMapLayerId(layerId: string): string
|
|
497
499
|
isScaleControlVisible(): boolean
|
|
498
500
|
isTerrainAvailable(): boolean
|
|
499
501
|
isTerrainActive(): boolean
|
|
500
502
|
setTerrainActive(active: boolean): void
|
|
501
503
|
isTerrainControlVisible(): boolean
|
|
502
|
-
setSelectionStyle(layerId:
|
|
503
|
-
resetSelectionStyle(layerId:
|
|
504
|
+
setSelectionStyle(layerId: string, style: JLayerSetStyleParams): void
|
|
505
|
+
resetSelectionStyle(layerId: string): void
|
|
504
506
|
setScaleControlVisibility(isVisible: boolean, position?: JMAP_POSITIONS): void
|
|
505
507
|
setScaleControlUnits(units: "imperial" | "metric" | "nautical"): void
|
|
506
508
|
setScaleControlPosition(position: JMAP_POSITIONS): void
|
|
@@ -517,13 +519,13 @@ export interface JMapService {
|
|
|
517
519
|
isInitialExtentControlVisible(): boolean
|
|
518
520
|
setInitialExtentControlVisibility(isVisible: boolean): void
|
|
519
521
|
zoomToProjectInitialExtent(): Promise<void>
|
|
520
|
-
getMaplibreSupportedJMapLayerIds():
|
|
521
|
-
getMaplibreSupportedJMapLayerIdBefore(layerId:
|
|
522
|
-
getMaplibreSupportedJMapLayerIdAfter(layerId:
|
|
523
|
-
refreshLayerById(layerId:
|
|
524
|
-
getRenderedFeatures(layerId:
|
|
525
|
-
getSourceFeatures(layerId:
|
|
526
|
-
getRenderedFeaturesAttributeValues(layerId:
|
|
522
|
+
getMaplibreSupportedJMapLayerIds(): string[]
|
|
523
|
+
getMaplibreSupportedJMapLayerIdBefore(layerId: string): string | undefined
|
|
524
|
+
getMaplibreSupportedJMapLayerIdAfter(layerId: string): string | undefined
|
|
525
|
+
refreshLayerById(layerId: string): void
|
|
526
|
+
getRenderedFeatures(layerId: string, params?: JLocation | JBoundaryBox | JCircle | JGetRenderedFeaturesParams): Feature[]
|
|
527
|
+
getSourceFeatures(layerId: string, params?: JGetSourceFeaturesParams): Feature[]
|
|
528
|
+
getRenderedFeaturesAttributeValues(layerId: string, filter?: JLocation | JBoundaryBox | JCircle): JMapFeatureAttributeValues[]
|
|
527
529
|
getPitch(): number
|
|
528
530
|
getRotation(): number
|
|
529
531
|
getBearing(): number
|
|
@@ -542,7 +544,7 @@ export interface JMapService {
|
|
|
542
544
|
flashLocation(location: JLocation, options?: JMapFlashLocationParams): void
|
|
543
545
|
flashLocations(locations: JLocation[], options?: JMapFlashLocationParams): void
|
|
544
546
|
clearFlashingLocations(): void
|
|
545
|
-
displayLayerExtent(layerId:
|
|
547
|
+
displayLayerExtent(layerId: string, params?: JDisplayExtentParams): Promise<boolean>
|
|
546
548
|
displayExtent(extent: JBoundaryBox, params?: JDisplayExtentParams): void
|
|
547
549
|
getResolution(params?: JLatitudeAndZoom): number
|
|
548
550
|
getScale(params?: JLatitudeAndZoom): string
|
|
@@ -555,17 +557,17 @@ export interface JMapService {
|
|
|
555
557
|
openModificationPopupForScale(): void
|
|
556
558
|
closeModificationPopup(): void
|
|
557
559
|
/** @deprecated Use JMap.Map.getLayerTransparency to read overridden transparency. For non-overridden layers, use JMap.Map.getRasterLayerInitialTransparency. */
|
|
558
|
-
getRasterLayerTransparency(layerId:
|
|
560
|
+
getRasterLayerTransparency(layerId: string): number
|
|
559
561
|
/** @deprecated This method is unreliable when style opacity is expression-based and will be removed in a future version. */
|
|
560
|
-
getRasterLayerInitialTransparency(layerId:
|
|
562
|
+
getRasterLayerInitialTransparency(layerId: string): number
|
|
561
563
|
/** @deprecated Use JMap.Map.resetLayerTransparency instead. It manages all supported map layer types (vector and raster), not only raster layers. */
|
|
562
|
-
resetRasterLayerTransparency(layerId:
|
|
564
|
+
resetRasterLayerTransparency(layerId: string): number
|
|
563
565
|
/** @deprecated Use JMap.Map.setLayerTransparency instead. It manages all supported map layer types (vector and raster), not only raster layers. */
|
|
564
|
-
setRasterLayerTransparency(layerId:
|
|
565
|
-
getLayerTransparency(layerId:
|
|
566
|
-
isLayerTransparencyOverridden(layerId:
|
|
567
|
-
setLayerTransparency(layerId:
|
|
568
|
-
resetLayerTransparency(layerId:
|
|
566
|
+
setRasterLayerTransparency(layerId: string, transparency: number): void
|
|
567
|
+
getLayerTransparency(layerId: string): number | undefined
|
|
568
|
+
isLayerTransparencyOverridden(layerId: string): boolean
|
|
569
|
+
setLayerTransparency(layerId: string, transparency: number): void
|
|
570
|
+
resetLayerTransparency(layerId: string): void
|
|
569
571
|
setPixelRatio(pixelRatio: number): boolean
|
|
570
572
|
getPixelRatio(): number
|
|
571
573
|
}
|
|
@@ -601,42 +603,42 @@ export interface JMapInteractionService {
|
|
|
601
603
|
|
|
602
604
|
export interface JMapSelectionService {
|
|
603
605
|
isEmpty(): boolean
|
|
604
|
-
isEmptyByLayerId(layerId:
|
|
606
|
+
isEmptyByLayerId(layerId: string): boolean
|
|
605
607
|
getSelectionCentroid(selection: JMapSelection): JLocation
|
|
606
608
|
getSelectedFeatures(): JMapSelection
|
|
607
|
-
getSelectedFeaturesForLayer(layerId:
|
|
608
|
-
getSelectedFeatureIdsForLayer(layerId:
|
|
609
|
-
selectOnOneLayerAtLocation(layerId:
|
|
610
|
-
selectOnOneLayerFromCircle(layerId:
|
|
611
|
-
selectOnOneLayerFromLine(layerId:
|
|
612
|
-
selectOnOneLayerFromPolygon(layerId:
|
|
609
|
+
getSelectedFeaturesForLayer(layerId: string): Feature[]
|
|
610
|
+
getSelectedFeatureIdsForLayer(layerId: string): number[]
|
|
611
|
+
selectOnOneLayerAtLocation(layerId: string, location: JLocation, params?: JMapSelectionParams | undefined): Feature[]
|
|
612
|
+
selectOnOneLayerFromCircle(layerId: string, circle: JCircle, params?: JMapSelectionParams | undefined): Feature[]
|
|
613
|
+
selectOnOneLayerFromLine(layerId: string, line: JLine, params?: JMapSelectionParams | undefined): Feature[]
|
|
614
|
+
selectOnOneLayerFromPolygon(layerId: string, polygon: JPolygon, params?: JMapSelectionParams | undefined): Feature[]
|
|
613
615
|
selectOnAllLayersAtLocation(location: JLocation, params?: JMapSelectionParams | undefined): JMapSelection
|
|
614
616
|
selectOnAllLayersFromCircle(circle: JCircle, params?: JMapSelectionParams | undefined): JMapSelection
|
|
615
617
|
selectOnAllLayersFromLine(line: JLine, params?: JMapSelectionParams | undefined): JMapSelection
|
|
616
618
|
selectOnAllLayersFromPolygon(polygon: JPolygon, params?: JMapSelectionParams | undefined): JMapSelection
|
|
617
|
-
setLayerSelection(layerId:
|
|
619
|
+
setLayerSelection(layerId: string, features: Feature | Feature[]): void
|
|
618
620
|
setLayersSelection(params: JSelectionSetLayersSelectionParams[]): void
|
|
619
|
-
addFeaturesToLayerSelection(layerId:
|
|
620
|
-
removeFeaturesFromLayerSelection(layerId:
|
|
621
|
-
clearSelection(layerId?:
|
|
622
|
-
clearLayersSelection(layerIds:
|
|
621
|
+
addFeaturesToLayerSelection(layerId: string, features: Feature | Feature[]): void
|
|
622
|
+
removeFeaturesFromLayerSelection(layerId: string, featureIds: number | number[]): void
|
|
623
|
+
clearSelection(layerId?: string): void
|
|
624
|
+
clearLayersSelection(layerIds: string[]): void
|
|
623
625
|
}
|
|
624
626
|
|
|
625
627
|
export interface JMapFilterService {
|
|
626
|
-
applyHasAttribute(layerId:
|
|
627
|
-
applyHasNotAttribute(layerId:
|
|
628
|
-
applyAttributeValueEqualTo(layerId:
|
|
629
|
-
applyAttributeValueBetween(layerId:
|
|
630
|
-
applyAttributeValueNotEqualTo(layerId:
|
|
631
|
-
applyAttributeValueGreaterThan(layerId:
|
|
632
|
-
applyAttributeValueGreaterOrEqualsTo(layerId:
|
|
633
|
-
applyAttributeValueLowerThan(layerId:
|
|
634
|
-
applyAttributeValueLowerOrEqualsTo(layerId:
|
|
635
|
-
applyAttributeValueIn(layerId:
|
|
636
|
-
applyAttributeValueNotIn(layerId:
|
|
637
|
-
applySpatial(layerId:
|
|
628
|
+
applyHasAttribute(layerId: string, attributeId: string): string
|
|
629
|
+
applyHasNotAttribute(layerId: string, attributeId: string): string
|
|
630
|
+
applyAttributeValueEqualTo(layerId: string, attributeId: string, attributeValue: any): string
|
|
631
|
+
applyAttributeValueBetween(layerId: string, attributeId: string, start: any, end: any): string
|
|
632
|
+
applyAttributeValueNotEqualTo(layerId: string, attributeId: string, attributeValue: any): string
|
|
633
|
+
applyAttributeValueGreaterThan(layerId: string, attributeId: string, attributeValue: any): string
|
|
634
|
+
applyAttributeValueGreaterOrEqualsTo(layerId: string, attributeId: string, attributeValue: any): string
|
|
635
|
+
applyAttributeValueLowerThan(layerId: string, attributeId: string, attributeValue: any): string
|
|
636
|
+
applyAttributeValueLowerOrEqualsTo(layerId: string, attributeId: string, attributeValue: any): string
|
|
637
|
+
applyAttributeValueIn(layerId: string, attributeId: string, attributeValues: any[]): string
|
|
638
|
+
applyAttributeValueNotIn(layerId: string, attributeId: string, attributeValues: any[]): string
|
|
639
|
+
applySpatial(layerId: string, filterGeometry: JPolygon | JCircle): string
|
|
638
640
|
removeByFilterId(filterId: string): void
|
|
639
|
-
removeAllFilters(layerId:
|
|
641
|
+
removeAllFilters(layerId: string): void
|
|
640
642
|
}
|
|
641
643
|
|
|
642
644
|
export interface JProjectionService {
|
|
@@ -647,15 +649,15 @@ export interface JProjectionService {
|
|
|
647
649
|
export interface JProjectService {
|
|
648
650
|
hasProjectActivated(): boolean
|
|
649
651
|
getActiveProject(): JProject
|
|
650
|
-
activateById(projectId:
|
|
652
|
+
activateById(projectId: string): JProject
|
|
651
653
|
activateByName(projectName: string): JProject
|
|
652
654
|
deactivate(): void
|
|
653
655
|
getAllProjects(): Promise<JProject[]>
|
|
654
|
-
existsById(projectId:
|
|
656
|
+
existsById(projectId: string): boolean
|
|
655
657
|
existsByName(projectName: string): boolean
|
|
656
|
-
getById(projectId:
|
|
658
|
+
getById(projectId: string): JProject
|
|
657
659
|
getByName(projectName: string): JProject
|
|
658
|
-
getId():
|
|
660
|
+
getId(): string
|
|
659
661
|
getName(): string
|
|
660
662
|
getDescription(): string | undefined
|
|
661
663
|
getProjection(): JProjection
|
|
@@ -680,49 +682,50 @@ export interface JLayerService {
|
|
|
680
682
|
DynamicFilter: JDynamicFilterService
|
|
681
683
|
getMetadataSchema(): JLayerMetadataSchemaItem[]
|
|
682
684
|
getLayerTree(): JLayerTree
|
|
683
|
-
getLayerTreeElementsById():
|
|
685
|
+
getLayerTreeElementsById(): Record<string, JLayerTreeElement>
|
|
684
686
|
getLayers(): JLayer[]
|
|
685
|
-
getLayerIds():
|
|
686
|
-
setLayersMapOrder(layerIds:
|
|
687
|
+
getLayerIds(): string[]
|
|
688
|
+
setLayersMapOrder(layerIds: string[]): void
|
|
687
689
|
getVectorLayers(): JLayer[]
|
|
688
|
-
getVectorLayerIds():
|
|
690
|
+
getVectorLayerIds(): string[]
|
|
689
691
|
/** @deprecated Returns legacy views. Use the layer's attributes for the shared model. */
|
|
690
|
-
getLayerAttributes(layerId:
|
|
692
|
+
getLayerAttributes(layerId: string): JLayerAttribute[]
|
|
691
693
|
/** @deprecated Returns a legacy view. Use the layer's attributes for the shared model. */
|
|
692
|
-
getLayerAttribute(layerId:
|
|
693
|
-
exists(layerId:
|
|
694
|
-
attributeExists(layerId:
|
|
695
|
-
getById(layerId:
|
|
696
|
-
getSelfOrChildren(layerId:
|
|
697
|
-
getName(layerId:
|
|
698
|
-
getDescription(layerId:
|
|
699
|
-
getEPSG4326Extent(layerId:
|
|
700
|
-
isVisible(layerId:
|
|
701
|
-
isVectorLayerById(layerId:
|
|
702
|
-
isSelectableById(layerId:
|
|
703
|
-
setSelectabilityById(layerId:
|
|
694
|
+
getLayerAttribute(layerId: string, attributeName: string): JLayerAttribute
|
|
695
|
+
exists(layerId: string): boolean
|
|
696
|
+
attributeExists(layerId: string, attributeName: string): boolean
|
|
697
|
+
getById(layerId: string): JLayerTreeElement
|
|
698
|
+
getSelfOrChildren(layerId: string): JLayer[]
|
|
699
|
+
getName(layerId: string): string
|
|
700
|
+
getDescription(layerId: string): string
|
|
701
|
+
getEPSG4326Extent(layerId: string): Promise<JBoundaryBox | null>
|
|
702
|
+
isVisible(layerId: string, checkParentVisibility?: boolean): boolean
|
|
703
|
+
isVectorLayerById(layerId: string): boolean
|
|
704
|
+
isSelectableById(layerId: string): boolean
|
|
705
|
+
setSelectabilityById(layerId: string, selectability: boolean, ignoreVisibility?: boolean): void
|
|
704
706
|
setLayersSelectability(params: JLayerSetLayersSelectabilityParams[]): void
|
|
705
|
-
isAllLayerParentsVisible(layerId:
|
|
706
|
-
setVisible(layerId:
|
|
707
|
+
isAllLayerParentsVisible(layerId: string): boolean
|
|
708
|
+
setVisible(layerId: string, visible: boolean): void
|
|
707
709
|
setLayersVisibility(params: JLayerSetLayersVisibilityParams[]): void
|
|
708
|
-
ensureLayerIsVisible(layerId:
|
|
709
|
-
ensureLayersAreVisible(layerIds:
|
|
710
|
-
setLayerGroupExpansion(layerGroupId:
|
|
710
|
+
ensureLayerIsVisible(layerId: string): void
|
|
711
|
+
ensureLayersAreVisible(layerIds: string[]): void
|
|
712
|
+
setLayerGroupExpansion(layerGroupId: string, isExpanded: boolean): void
|
|
711
713
|
setLayerGroupsExpansion(params: JLayerSetLayerGroupsExpansionParams[]): void
|
|
712
|
-
deleteLayer(layerId:
|
|
713
|
-
getDataSourceAttributes(layerId:
|
|
714
|
+
deleteLayer(layerId: string): void
|
|
715
|
+
getDataSourceAttributes(layerId: string): Promise<DataSourceAttribute[]>
|
|
716
|
+
getData(layerId: string, params?: JLayerDataParams): Promise<JDataSourceData>
|
|
714
717
|
}
|
|
715
718
|
|
|
716
719
|
export interface JDataSourceService {
|
|
717
|
-
getAttributes(dataSourceId:
|
|
718
|
-
getById(dataSourceId:
|
|
719
|
-
getData(dataSourceId:
|
|
720
|
-
getPermissions(dataSourceId:
|
|
721
|
-
createRow(dataSourceId:
|
|
722
|
-
updateRow(dataSourceId:
|
|
723
|
-
deleteRow(dataSourceId:
|
|
724
|
-
updateFeatureProperties(dataSourceId:
|
|
725
|
-
deleteFeature(dataSourceId:
|
|
720
|
+
getAttributes(dataSourceId: string, dataSourceOrganizationId: string): Promise<DataSourceAttribute[]>
|
|
721
|
+
getById(dataSourceId: string, dataSourceOrganizationId: string): Promise<JDataSource>
|
|
722
|
+
getData(dataSourceId: string, dataSourceOrganizationId: string, params: JDataSourceDataParams, dataSourceType?: JDataSourceType): Promise<JDataSourceData>
|
|
723
|
+
getPermissions(dataSourceId: string, dataSourceOrganizationId: string): Promise<JDataSourcePermissions>
|
|
724
|
+
createRow(dataSourceId: string, dataSourceOrganizationId: string, row: { [key: string]: any }): Promise<{ id: number; links: any[] }>
|
|
725
|
+
updateRow(dataSourceId: string, dataSourceOrganizationId: string, rowId: number, row: { [key: string]: any }): Promise<void>
|
|
726
|
+
deleteRow(dataSourceId: string, dataSourceOrganizationId: string, rowId: number): Promise<void>
|
|
727
|
+
updateFeatureProperties(dataSourceId: string, dataSourceOrganizationId: string, featureId: number, properties: { [key: string]: any }): Promise<GeoJSON.Feature>
|
|
728
|
+
deleteFeature(dataSourceId: string, dataSourceOrganizationId: string, featureId: number): Promise<number>
|
|
726
729
|
getFeature(dataSourceId: string, dataSourceOrganizationId: string, featureId: number): Promise<GeoJSON.Feature>
|
|
727
730
|
getRow(dataSourceId: string, dataSourceOrganizationId: string, rowId: number): Promise<{ [key: string]: any }>
|
|
728
731
|
getRelationship(dataSourceId: string, dataSourceOrganizationId: string, relationshipId: string): Promise<JRelationship>
|
|
@@ -731,14 +734,14 @@ export interface JDataSourceService {
|
|
|
731
734
|
export interface JTableService {
|
|
732
735
|
DynamicFilter: JDynamicFilterService
|
|
733
736
|
getTables(): JTable[]
|
|
734
|
-
getTableData(tableId:
|
|
735
|
-
getById(tableId:
|
|
736
|
-
createRow(tableId:
|
|
737
|
-
updateRow(tableId:
|
|
738
|
-
deleteRow(tableId:
|
|
739
|
-
getDataSourceAttributes(tableId:
|
|
737
|
+
getTableData(tableId: string, params: JTableDataParams): Promise<JTableData>
|
|
738
|
+
getById(tableId: string): JTable
|
|
739
|
+
createRow(tableId: string, row: { [key: string]: any }): Promise<{ id: number; links: Array<any> }>
|
|
740
|
+
updateRow(tableId: string, rowId: number, row: { [key: string]: any }): Promise<void>
|
|
741
|
+
deleteRow(tableId: string, rowId: number): Promise<void>
|
|
742
|
+
getDataSourceAttributes(tableId: string): Promise<DataSourceAttribute[]>
|
|
740
743
|
/** @deprecated Use DynamicFilter.setIsActive instead. */
|
|
741
|
-
setDynamicFilterActive(tableId:
|
|
744
|
+
setDynamicFilterActive(tableId: string, filterId: string, isActive: boolean): void
|
|
742
745
|
}
|
|
743
746
|
|
|
744
747
|
export interface JLayerSearchService {
|
|
@@ -747,19 +750,19 @@ export interface JLayerSearchService {
|
|
|
747
750
|
|
|
748
751
|
export interface JLayerThematicService {
|
|
749
752
|
addThematic(params: JLayerAddThematicParams): Promise<void>
|
|
750
|
-
deleteThematic(layerId:
|
|
751
|
-
getAllByLayerId(layerId:
|
|
752
|
-
getById(layerId:
|
|
753
|
-
existsById(layerId:
|
|
754
|
-
hasAnyVisibleByLayerId(layerId:
|
|
755
|
-
getAllVisibleByLayerId(layerId:
|
|
756
|
-
setVisibilityById(layerId:
|
|
753
|
+
deleteThematic(layerId: string, thematicId: string): void
|
|
754
|
+
getAllByLayerId(layerId: string): JLayerThematic[]
|
|
755
|
+
getById(layerId: string, thematicId: string): JLayerThematic
|
|
756
|
+
existsById(layerId: string, thematicId: string): boolean
|
|
757
|
+
hasAnyVisibleByLayerId(layerId: string): boolean
|
|
758
|
+
getAllVisibleByLayerId(layerId: string): JLayerThematic[]
|
|
759
|
+
setVisibilityById(layerId: string, thematicId: string, visibility: boolean): void
|
|
757
760
|
setThematicsVisibility(params: JLayerThematicSetVisibilityParams[]): void
|
|
758
761
|
setCategoryVisibility(params: JLayerThematicSetCategoryVisibilityParams): void
|
|
759
|
-
setAllCategoriesVisibility(layerId:
|
|
762
|
+
setAllCategoriesVisibility(layerId: string, thematicId: string, visibility: boolean): void
|
|
760
763
|
setConditionVisibility(params: JLayerThematicSetConditionVisibilityParams): void
|
|
761
|
-
setAllConditionsVisibility(layerId:
|
|
762
|
-
getFamilyTypeById(layerId:
|
|
764
|
+
setAllConditionsVisibility(layerId: string, thematicId: string, visibility: boolean): void
|
|
765
|
+
getFamilyTypeById(layerId: string, thematicId: string): JLAYER_THEMATIC_FAMILY_TYPES
|
|
763
766
|
}
|
|
764
767
|
|
|
765
768
|
export interface JUserService {
|
|
@@ -838,12 +841,12 @@ export interface JServerService {
|
|
|
838
841
|
}
|
|
839
842
|
|
|
840
843
|
export interface JDynamicFilterService {
|
|
841
|
-
create(resourceId:
|
|
842
|
-
getAll(resourceId:
|
|
843
|
-
getById(resourceId:
|
|
844
|
-
update(resourceId:
|
|
845
|
-
remove(resourceId:
|
|
846
|
-
setIsActive(resourceId:
|
|
844
|
+
create(resourceId: string, params: JLocalDynamicFilterCreateParams): string
|
|
845
|
+
getAll(resourceId: string): JLocalDynamicFilter[]
|
|
846
|
+
getById(resourceId: string, filterId: string): JLocalDynamicFilter
|
|
847
|
+
update(resourceId: string, filterId: string, update: JLocalDynamicFilterUpdateParams): void
|
|
848
|
+
remove(resourceId: string, filterId: string): void
|
|
849
|
+
setIsActive(resourceId: string, filterId: string, isActive: boolean): void
|
|
847
850
|
}
|
|
848
851
|
|
|
849
852
|
// MISC
|