mirror of
https://github.com/utopia-os/utopia-ui.git
synced 2025-12-13 07:46:10 +00:00
api adjustments for svg-marker-icon loading (#39)
This commit is contained in:
parent
9d8dbc235e
commit
1040db5fa5
3343
package-lock.json
generated
3343
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
@ -20,7 +20,7 @@
|
|||||||
"react-dom": "^18.2.0",
|
"react-dom": "^18.2.0",
|
||||||
"react-rnd": "^10.4.1",
|
"react-rnd": "^10.4.1",
|
||||||
"react-router-dom": "^6.23.0",
|
"react-router-dom": "^6.23.0",
|
||||||
"utopia-ui": "^3.0.81"
|
"utopia-ui": "^3.0.86"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@eslint-community/eslint-plugin-eslint-comments": "^4.4.1",
|
"@eslint-community/eslint-plugin-eslint-comments": "^4.4.1",
|
||||||
|
|||||||
@ -48,6 +48,7 @@ export class itemsApi<T> implements ItemsApi<T> {
|
|||||||
'to.*',
|
'to.*',
|
||||||
'relations.*',
|
'relations.*',
|
||||||
'user_created.*',
|
'user_created.*',
|
||||||
|
'markerIcon.*',
|
||||||
{ offers: ['*'], needs: ['*'], gallery: ['*.*'] } as any,
|
{ offers: ['*'], needs: ['*'], gallery: ['*.*'] } as any,
|
||||||
],
|
],
|
||||||
filter: this.filter,
|
filter: this.filter,
|
||||||
|
|||||||
@ -16,7 +16,11 @@ export class layersApi {
|
|||||||
try {
|
try {
|
||||||
const layers = await directusClient.request(
|
const layers = await directusClient.request(
|
||||||
readItems('layers' as any, {
|
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 } } } },
|
filter: { maps: { maps_id: { id: { _eq: this.mapId } } } },
|
||||||
limit: 500,
|
limit: 500,
|
||||||
}),
|
}),
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user