Skip to content

streetViewConfigSchema

Déclaration
streetViewConfigSchema = defineWidgetConfig({
title: {
fr: 'Google street view',
nl: 'NL - Google street view',
},
icon: {
geoviewer: 'street-view',
},
inToolbar: inToolbarSchemaFrom({
type: 'button',
}),
onActivate: {
deactivate: {
classes: ['BasemapChooser'],
},
},
i18n: i18nSchemaFrom(streetViewerTranslations),
config: z
.object({
apiKey: z.string().optional().default(''),
googleBaseMapId: z.string().optional().default('GOOGLE'),
closestLocationRadius: z.number().optional().default(500),
initRadius: z.number().optional().default(10000),
enablePinIconRotation: z.boolean().optional().default(false),
pinIconUrl: z
.string()
.optional()
.default('https://geoservices.wallonie.be/geoviewer-api/4.10/spw/widgets/images/gsv_graphic.png'),
})
.prefault({}),
})