Skip to content

Commit af3f8e8

Browse files
Katherine BrownKatherine Brown
authored andcommitted
replaced the frozen default config with a hardcoded mock in showcase
1 parent 59913c2 commit af3f8e8

File tree

1 file changed

+43
-1
lines changed

1 file changed

+43
-1
lines changed

plugins/arcgis/web-app/projects/showcase/src/app/arc.service.mock.ts

Lines changed: 43 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,49 @@ export class MockArcService implements ArcServiceInterface {
2424
throw new Error("Method not implemented.");
2525
}
2626
fetchArcConfig(): Observable<ArcGISPluginConfig> {
27-
return of(defaultArcGISPluginConfig)
27+
return of({
28+
enabled: true,
29+
baseUrl: 'https://mock.mage.com',
30+
intervalSeconds: 60,
31+
startupIntervalSeconds: 1,
32+
updateIntervalSeconds: 1,
33+
batchSize: 100,
34+
featureServices: [],
35+
attachmentModifiedTolerance: 5000,
36+
textFieldLength: 100,
37+
textAreaFieldLength: 256,
38+
observationIdField: 'mock_description',
39+
idSeparator: 'mock-',
40+
eventIdField: 'mock_event_id',
41+
lastEditedDateField: 'mock_last_edited_date',
42+
eventNameField: 'mock_event_name',
43+
userIdField: 'mock_user_id',
44+
usernameField: 'mock_username',
45+
userDisplayNameField: 'mock_user_display_name',
46+
deviceIdField: 'mock_device_id',
47+
createdAtField: 'mock_created_at',
48+
lastModifiedField: 'mock_last_modified',
49+
geometryType: 'mock_geometry_type',
50+
fieldAttributes: {},
51+
attributes: {
52+
'symbolid': {
53+
defaults: [
54+
{
55+
value: 3,
56+
condition: [
57+
{ attribute: 'geometry_type', values: ['esriGeometryPolyline'] }
58+
]
59+
},
60+
{
61+
value: 1,
62+
condition: [
63+
{ attribute: 'geometry_type', values: ['esriGeometryPolygon'] }
64+
]
65+
}
66+
]
67+
}
68+
}
69+
})
2870
}
2971

3072
fetchArcLayers(featureUrl: string) {

0 commit comments

Comments
 (0)