I'm trying to build a vue google map component using google maps and the plugin https://www.npmjs.com/package/vue2-google-maps. I have installed the plugin using npm , and I've got in working when my googleMap.vue component:
-->
<!-- :center="{lat: 30.08674842, lng: -97.29304982}" -->
<GmapMap
:center="{lat: latitude, lng: longitude}"
:zoom="15"
map-type-id="terrain"
style="width: 500px; height: 300px"
>
</GmapMap>
</span>
</v-flex>
</v-container>
</div>
</template>
<script>
var latitute = 30.08674842
var longitude = -97.29304982
import {
gmapApi
} from 'vue2-google-maps'
export default {
// name:'myMap'
latitute:latitute,
longitude:longitude,
}
<
when I run this I get:
ERROR [Vue warn]: Property or method "longitude" is not defined on the instance but referenced during render. Make sure that this property is reactive, either in the data option, or for class-based components, by initializing the property.
How can I fix this?
edit:
I changed the script component to:
<script>
var latitute = 30.08674842
var longitude = -97.29304982
import {
gmapApi
} from 'vue2-google-maps'
export default {
data() {
console.log('im in data')
return {
latitute: latitute,
longitude: longitude
} // name:'myMap'
}
}
</script>
no change - I'm getting the same error
edit2:
I changed the data component as above , and you can see that it is being read in the devtolls console. still no change with restarted computer. any thoughts on what to do next?

