-
Notifications
You must be signed in to change notification settings - Fork 119
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(:couple:): make it possible to update a service using a layer def…
…inition AFFECTS PACKAGES: @esri/arcgis-rest-common-types @esri/arcgis-rest-feature-service-admin
- Loading branch information
Showing
5 changed files
with
132 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
79 changes: 79 additions & 0 deletions
79
packages/arcgis-rest-feature-service-admin/test/mocks/layerDefinition.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,79 @@ | ||
/* Copyright (c) 2018 Environmental Systems Research Institute, Inc. | ||
* Apache-2.0 */ | ||
|
||
import { ILayerDefinition, IExtent } from "@esri/arcgis-rest-common-types"; | ||
|
||
const defaultExtent: IExtent = { | ||
xmin: -180, | ||
ymin: -90, | ||
xmax: 180, | ||
ymax: 90, | ||
spatialReference: { | ||
wkid: 4326, | ||
latestWkid: 4326 | ||
} | ||
}; | ||
|
||
export const layerDefinitionSid: ILayerDefinition = { | ||
allowGeometryUpdates: true, | ||
capabilities: "Create,Delete,Query,Update,Editing", | ||
copyrightText: "", | ||
defaultVisibility: true, | ||
description: "", | ||
drawingInfo: { | ||
transparency: 0, | ||
labelingInfo: null, | ||
renderer: { | ||
type: "simple", | ||
symbol: { | ||
color: [20, 158, 206, 70], | ||
outline: { | ||
color: [255, 255, 255, 229], | ||
width: 2.25, | ||
type: "esriSLS", | ||
style: "esriSLSSolid" | ||
}, | ||
type: "esriSFS", | ||
style: "esriSFSSolid" | ||
} | ||
} | ||
}, | ||
extent: defaultExtent, | ||
fields: [ | ||
{ | ||
name: "OBJECTID", | ||
type: "esriFieldTypeOID", | ||
alias: "OBJECTID", | ||
nullable: false, | ||
editable: false, | ||
domain: null | ||
}, | ||
{ | ||
name: "author", | ||
type: "esriFieldTypeString", | ||
alias: "author", | ||
length: 256, | ||
nullable: false, | ||
editable: true, | ||
domain: null, | ||
defaultValue: null | ||
} | ||
], | ||
geometryType: "esriGeometryPolygon", | ||
hasAttachments: true, | ||
hasZ: false, | ||
hasStaticData: false, | ||
htmlPopupType: "esriServerHTMLPopupTypeNone", | ||
isDataVersioned: false, | ||
maxRecordCount: 2000, | ||
name: "hub_annotations", | ||
objectIdField: "OBJECTID", | ||
relationships: [], | ||
supportsAdvancedQueries: true, | ||
supportsRollbackOnFailureParameter: true, | ||
supportsStatistics: true, | ||
type: "Feature Layer", | ||
typeIdField: "", | ||
types: [], | ||
timeInfo: {} | ||
}; |