When using $router.push(), I receive two parameters: {{ this.$route.params.lat }} and {{ this.$route.params.lng }}, which are latitude and longitude coordinates.
To access a Google Maps URL, I need to include both of these parameters:
https://maps.googleapis.com/maps/api/staticmap?center={{ this.$route.params.lat }},{{ this.$route.params.lng }}&zoom=15&size=300x300&maptype=terrain&key=MY_API_KEY"
However, I encounter an error message when attempting to do so:
Interpolation inside attributes has been removed. Use v-bind or the colon shorthand instead. For example, instead of
, use<div id="{{ val }}">
<div :id="val">
.
What steps can I take to resolve this issue?