* feat: add map plugin * feat: update * feat: add Map.Designer * feat: support polygon and clear canvas * feat: improve and support linestring * feat: map type default * feat: support group order * feat: support register group * feat: improve named and logic * fix: rename * feat: better * refactor: move to use postgresSQL supported type * feat: support circle * feat: support mysql * chore: @nocobase/plugin-map * fix: some error in postgres * fix: line lose * fix: accessKey or securityCode is incorrect * fix: improve * fix: shake screen in modal * feat: support serviceHOST * feat: improve * feat: support view map in detail * feat: support patten in details * fix: something went wrong in edit mode * fix: field name incorrectly * feat: support sqlite * feat: support circle in mysql * feat: support map configuration * feat: support map configuration * fix: remove unused div * feat: support show map in details * fix: disabled in details * fix: unused * feat: improve readpretty * fix: schemaInitialize * feat: improve alert and search * fix: mysql polygon not work * test: add fields test * test: improve * test: update * fix: test error * feat: improve search and support zoom * fix: if success should reset err message * feat: add isOverride to confirm * feat: improve
16 lines
306 B
TypeScript
16 lines
306 B
TypeScript
import { useRequest } from "@nocobase/client";
|
|
|
|
export const MapConfigurationResourceKey = 'map-configuration';
|
|
|
|
export const useMapConfiguration = (type: string) => {
|
|
return useRequest({
|
|
resource: MapConfigurationResourceKey,
|
|
action: 'get',
|
|
params: {
|
|
type,
|
|
},
|
|
}).data?.data;
|
|
}
|
|
|
|
|