Api
<ScriptGoogleMapsRectangle>
Rectangular overlay on the map. Place inside a <ScriptGoogleMaps> component.
optionsOmit<google.maps.RectangleOptions, 'map'>Usage
<template>
<ScriptGoogleMaps api-key="your-api-key">
<ScriptGoogleMapsRectangle
:options="{
bounds: {
north: -34.387,
south: -34.407,
east: 150.664,
west: 150.624,
},
fillColor: '#00FF00',
fillOpacity: 0.25,
strokeWeight: 2,
}"
/>
</ScriptGoogleMaps>
</template>
<ScriptGoogleMaps>
The <ScriptGoogleMaps> component is a wrapper around the useScriptGoogleMaps() composable. It provides a simple way to embed Google Maps in your Nuxt app.
<ScriptGoogleMapsGeoJson>
Renders GeoJSON data on the map using the Google Maps Data layer. Accepts a URL string or inline GeoJSON object. Place inside a <ScriptGoogleMaps> component.