api adjustments for svg-marker-icon loading (#39)

This commit is contained in:
Anton Tranelis 2025-05-21 11:56:24 +02:00 committed by GitHub
parent 9d8dbc235e
commit 1040db5fa5
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 485 additions and 2867 deletions

3343
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -20,7 +20,7 @@
"react-dom": "^18.2.0",
"react-rnd": "^10.4.1",
"react-router-dom": "^6.23.0",
"utopia-ui": "^3.0.81"
"utopia-ui": "^3.0.86"
},
"devDependencies": {
"@eslint-community/eslint-plugin-eslint-comments": "^4.4.1",

View File

@ -48,6 +48,7 @@ export class itemsApi<T> implements ItemsApi<T> {
'to.*',
'relations.*',
'user_created.*',
'markerIcon.*',
{ offers: ['*'], needs: ['*'], gallery: ['*.*'] } as any,
],
filter: this.filter,

View File

@ -16,7 +16,11 @@ export class layersApi {
try {
const layers = await directusClient.request(
readItems('layers' as any, {
fields: ['*', { itemType: ['*.*', { profileTemplate: ['*', 'item.*.*.*'] }] } as any],
fields: [
'*',
{ itemType: ['*.*', { profileTemplate: ['*', 'item.*.*.*.*'] }] },
{ markerIcon: ['*'] } as any,
],
filter: { maps: { maps_id: { id: { _eq: this.mapId } } } },
limit: 500,
}),