I'm currently receiving the following error in my VueJS web application.
utc_offset is deprecated as of November 2019 and will be turned off in November 2020. Use utc_offset_minutes instead.
As per Google Maps API documentation:
The Places fields opening_hours.open_now and utc_offset are deprecated as of November 20, 2019, and will be turned off on November 20, 2020. These fields are deprecated ONLY in the Places Library, Maps JavaScript API. This guide shows you how to update your code to stop using these fields.
The only problem is, I am definitely not using utc_offset anywhere in my Vue application directly. I verified this by doing a global find for the word "utc_offset" in my application. I also don't ever recall accessing that specific property.
Why am I receiving this deprecation warning if I didn't use that property?
Below is what my stack trace looks like:
The following code snippet shows what the clearAllCardsAndFilters
method does.
methods: {
clearAllCardsAndFilters() {
this.clearActiveCardListingId();
this.clearFilterCards();
},
clearActiveCardListingId() {
this.$store.commit('clearActiveCardListingId');
},
The following code snippet shows what the clearActiveCardListingId
mutation in Vuex does. It simply sets the activeCardListingId
property in Vuex to null
.
clearActiveCardListingId(state) {
state.activeCardListingId = null;
},
If you are using VUE2-google-maps, then you can use google map component in following way:
<GmapAutocomplete
@place_changed="setPlace"
:options="{fields: ['geometry', 'formatted_address', 'address_components']}">
</GmapAutocomplete>
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With