We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 744afc4 commit 8282d6eCopy full SHA for 8282d6e
src/runtime/components/ScriptGoogleMaps.vue
@@ -140,8 +140,8 @@ async function createAdvancedMapMarker(_options: google.maps.marker.AdvancedMark
140
const options = typeof _options === 'string'
141
? {
142
position: {
143
- lat: Number.parseFloat(_options.split(',')[0]),
144
- lng: Number.parseFloat(_options.split(',')[1]),
+ lat: Number.parseFloat(_options.split(',')[0] || '0'),
+ lng: Number.parseFloat(_options.split(',')[1] || '0'),
145
},
146
}
147
: _options
0 commit comments