vue-google-maps icon indicating copy to clipboard operation
vue-google-maps copied to clipboard

Retired API version warning

Open ricardoboss opened this issue 1 year ago • 9 comments

I am getting this warning in the Javascript console:

Google Maps JavaScript API warning: RetiredVersion https://developers.google.com/maps/documentation/javascript/error-messages#retired-version

Seems like the API version you are using (3.47) is retired. Can you update it so the warning disappears?

ricardoboss avatar May 26 '23 15:05 ricardoboss

I used to have the same warning. after diving inside this plugin code I found that you can set the verion you need while loadin the the plugin

load: {
    version: 3.53,
    key: 'YOUR-API-KEY',
    language: props.initialPage.props.locale,
    libraries: "places",
},

cobraprojects avatar May 31 '23 05:05 cobraprojects

I used to have the same warning. after diving inside this plugin code I found that you can set the verion you need while loadin the the plugin

load: {
    version: 3.53,
    key: 'YOUR-API-KEY',
    language: props.initialPage.props.locale,
    libraries: "places",
},

Thanks!!!

juanxodj avatar Jun 01 '23 05:06 juanxodj

Instead of version I had to use v

martin-williams avatar Jun 16 '23 17:06 martin-williams

If you don't want to stick to a specific numbered version and simply keep up to date with recent API updates from google, use v: 'quarterly'.

https://developers.google.com/maps/documentation/javascript/versions

admench avatar Dec 01 '23 12:12 admench

hey guys, sorry but I am here asking for help I am using the last version of this package ( "@fawmi/vue-google-maps": "^0.9.79" ) and I can't understand how to/where update that API version I appreaciate any kind of help

MatiasJRB avatar Mar 20 '24 01:03 MatiasJRB

@MatiasJRB you have to pass it in the options param:

<g-map-map
    :center="center"
    :zoom="zoom ?? 7"
    :options="{
      streetViewControl: false,
      rotateControl: false,
      version: 'weekly', <----- here
    }"
  >
    ...
</g-map-map>

ricardoboss avatar Mar 20 '24 01:03 ricardoboss

thank you @ricardoboss for that quick response! unfortunately I'm still having the issue trying both, weekly and 3.53

        <GMapMap
            v-if="googlePlace"
            :center="passengerPosition"
            :zoom="15"
            class="flex flex-center"
            map-type-id="terrain"
            style="width: 70%; height: 50vh"
            :options="{
              zoomControl: false,
              mapTypeControl: false,
              scaleControl: false,
              streetViewControl: false,
              rotateControl: false,
              fullscreenControl: false,
              disableDefaultUi: true,
              version: 'weekly'
            }"
          >
            <GMapMarker
              :position="passengerPosition"
              :clickable="true"
              :icon="personSVGPath"
            />
          </GMapMap>
Screenshot 2024-03-19 at 22 57 15

MatiasJRB avatar Mar 20 '24 01:03 MatiasJRB

Do you use multiple maps? Can you reproduce the problem with a minimal example?

ricardoboss avatar Mar 20 '24 02:03 ricardoboss

sorry, multiple maps? I was able to find the VUE plugin setup and add the v property there as cobraprojects and vue2 google maps suggested thank you ricardo you are the boss

MatiasJRB avatar Mar 20 '24 02:03 MatiasJRB