diff --git a/packages/li-analysis-assets/src/layers/ChinaAdminLayer/index.tsx b/packages/li-analysis-assets/src/layers/ChinaAdminLayer/index.tsx index d8b1f8c1..5e9c815a 100644 --- a/packages/li-analysis-assets/src/layers/ChinaAdminLayer/index.tsx +++ b/packages/li-analysis-assets/src/layers/ChinaAdminLayer/index.tsx @@ -31,8 +31,8 @@ export default implementLayer({ showAdminLabel: true, adminLabelColor: '#fff', adminLabelFontSize: 14, - adminLabelStroke: '#fff', - adminLabelStrokeWidth: 0, + adminLabelStroke: '#606060', + adminLabelStrokeWidth: 0.5, fillColor: 'rgb(90, 216, 166)', opacity: 0.8, strokeColor: '#a9abb1', diff --git a/packages/li-analysis-assets/src/layers/ChinaAdminLayer/register-form/admin-label-schema.ts b/packages/li-analysis-assets/src/layers/ChinaAdminLayer/register-form/admin-label-schema.ts index c134f8f8..c1ad2112 100644 --- a/packages/li-analysis-assets/src/layers/ChinaAdminLayer/register-form/admin-label-schema.ts +++ b/packages/li-analysis-assets/src/layers/ChinaAdminLayer/register-form/admin-label-schema.ts @@ -48,7 +48,7 @@ export default () => { adminLabelStroke: { type: 'string', title: '描边颜色', - default: '#fff', + default: '#606060', 'x-decorator': 'FormItem', 'x-component': 'ColorPicker', 'x-decorator-props': {}, @@ -57,13 +57,14 @@ export default () => { adminLabelStrokeWidth: { type: 'number', title: '描边宽度', - default: 1, + default: 0.5, 'x-decorator': 'FormItem', 'x-component': 'Slider', 'x-component-props': { placeholder: '描边宽度', min: 0, max: 5, + step: 0.5, }, 'x-decorator-props': {}, }, diff --git a/packages/li-p2/src/LayerAttribute/common-schema/label-collapse.ts b/packages/li-p2/src/LayerAttribute/common-schema/label-collapse.ts index 3ad8571b..8e0538c5 100644 --- a/packages/li-p2/src/LayerAttribute/common-schema/label-collapse.ts +++ b/packages/li-p2/src/LayerAttribute/common-schema/label-collapse.ts @@ -58,7 +58,7 @@ export default (options: AttributeSchemaOptions) => { labelStroke: { type: 'string', title: '描边颜色', - default: '#fff', + default: '#606060', 'x-decorator': 'FormItem', 'x-component': 'ColorPicker', 'x-decorator-props': {}, @@ -67,13 +67,14 @@ export default (options: AttributeSchemaOptions) => { labelStrokeWidth: { type: 'number', title: '描边宽度', - default: 1, + default: 0.5, 'x-decorator': 'FormItem', 'x-component': 'Slider', 'x-component-props': { placeholder: '描边宽度', min: 0, max: 5, + step: 0.5, }, 'x-decorator-props': {}, },