diff --git a/src/runtime/components/ScriptGoogleMaps.vue b/src/runtime/components/ScriptGoogleMaps.vue index 6e5a66e9..cc5845fc 100644 --- a/src/runtime/components/ScriptGoogleMaps.vue +++ b/src/runtime/components/ScriptGoogleMaps.vue @@ -140,8 +140,8 @@ async function createAdvancedMapMarker(_options: google.maps.marker.AdvancedMark const options = typeof _options === 'string' ? { position: { - lat: Number.parseFloat(_options.split(',')[0]), - lng: Number.parseFloat(_options.split(',')[1]), + lat: Number.parseFloat(_options.split(',')[0] || '0'), + lng: Number.parseFloat(_options.split(',')[1] || '0'), }, } : _options