Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Retired API version warning #185

Open
ricardoboss opened this issue May 26, 2023 · 9 comments
Open

Retired API version warning #185

ricardoboss opened this issue May 26, 2023 · 9 comments

Comments

@ricardoboss
Copy link

ricardoboss commented May 26, 2023

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?

@cobraprojects
Copy link

cobraprojects commented May 31, 2023

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",
},

@juanxodj
Copy link

juanxodj commented Jun 1, 2023

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!!!

@martin-williams
Copy link

Instead of version I had to use v

@admench
Copy link

admench commented Dec 1, 2023

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

@MatiasJRB
Copy link

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

@ricardoboss
Copy link
Author

@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>

@MatiasJRB
Copy link

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

@ricardoboss
Copy link
Author

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

@MatiasJRB
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

6 participants