Secure your code as it's written. Use Snyk Code to scan source code in minutes - no build needed - and fix issues immediately.
required: false,
default: 'Depends on device',
type: `{number}`,
controlType: 'range',
controlGroup: 'Base',
controlOptions: {
min: 1,
max: 2,
},
},
{
key: 'projectionType',
scopes: '*',
description: 'Defines the projection to use.',
required: false,
default: GeoMapDefaultProps.projectionType,
controlType: 'choices',
controlGroup: 'Base',
controlOptions: {
choices: [
{ label: 'azimuthalEqualArea', value: 'azimuthalEqualArea' },
{ label: 'azimuthalEquidistant', value: 'azimuthalEquidistant' },
{ label: 'gnomonic', value: 'gnomonic' },
{ label: 'orthographic', value: 'orthographic' },
{ label: 'stereographic', value: 'stereographic' },
{ label: 'equalEarth', value: 'equalEarth' },
{ label: 'equirectangular', value: 'equirectangular' },
{ label: 'mercator', value: 'mercator' },
{ label: 'transverseMercator', value: 'transverseMercator' },
{ label: 'naturalEarth1', value: 'naturalEarth1' },
],
},
max: 2,
},
},
{
key: 'margin',
help: 'Chart margin.',
type: 'object',
required: false,
controlType: 'margin',
group: 'Base',
},
{
key: 'projectionType',
help: 'Defines the projection to use.',
required: false,
defaultValue: GeoMapDefaultProps.projectionType,
controlType: 'choices',
group: 'Projection',
controlOptions: {
choices: [
{ label: 'azimuthalEqualArea', value: 'azimuthalEqualArea' },
{ label: 'azimuthalEquidistant', value: 'azimuthalEquidistant' },
{ label: 'gnomonic', value: 'gnomonic' },
{ label: 'orthographic', value: 'orthographic' },
{ label: 'stereographic', value: 'stereographic' },
{ label: 'equalEarth', value: 'equalEarth' },
{ label: 'equirectangular', value: 'equirectangular' },
{ label: 'mercator', value: 'mercator' },
{ label: 'transverseMercator', value: 'transverseMercator' },
{ label: 'naturalEarth1', value: 'naturalEarth1' },
],
},