Skip to content

Commit

Permalink
replaced the frozen default config with a hardcoded mock in showcase
Browse files Browse the repository at this point in the history
  • Loading branch information
Katherine Brown authored and Katherine Brown committed Oct 29, 2024
1 parent 59913c2 commit af3f8e8
Showing 1 changed file with 43 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,49 @@ export class MockArcService implements ArcServiceInterface {
throw new Error("Method not implemented.");
}
fetchArcConfig(): Observable<ArcGISPluginConfig> {
return of(defaultArcGISPluginConfig)
return of({
enabled: true,
baseUrl: 'https://mock.mage.com',
intervalSeconds: 60,
startupIntervalSeconds: 1,
updateIntervalSeconds: 1,
batchSize: 100,
featureServices: [],
attachmentModifiedTolerance: 5000,
textFieldLength: 100,
textAreaFieldLength: 256,
observationIdField: 'mock_description',
idSeparator: 'mock-',
eventIdField: 'mock_event_id',
lastEditedDateField: 'mock_last_edited_date',
eventNameField: 'mock_event_name',
userIdField: 'mock_user_id',
usernameField: 'mock_username',
userDisplayNameField: 'mock_user_display_name',
deviceIdField: 'mock_device_id',
createdAtField: 'mock_created_at',
lastModifiedField: 'mock_last_modified',
geometryType: 'mock_geometry_type',
fieldAttributes: {},
attributes: {
'symbolid': {
defaults: [
{
value: 3,
condition: [
{ attribute: 'geometry_type', values: ['esriGeometryPolyline'] }
]
},
{
value: 1,
condition: [
{ attribute: 'geometry_type', values: ['esriGeometryPolygon'] }
]
}
]
}
}
})
}

fetchArcLayers(featureUrl: string) {
Expand Down

0 comments on commit af3f8e8

Please sign in to comment.