API KEY for Google Maps

Por Stiofan
(55 avaliações)
Baixar

Hospedagem WordPress com plugin API KEY for Google Maps

Onde hospedar o plugin API KEY for Google Maps?

Este plugin pode ser hospedado em qualquer provedor que possua WordPress instalado. Recomendamos fortemente escolher uma hospedagem seguro, com servidores adaptados para WordPress, como o serviço de hospedagem de sites da MCO2.

Hospedando o plugin API KEY for Google Maps em uma empresa de hospedagem seguro

A MCO2, além de instalar o WordPress na versão mais nova para seus clientes, oferece o plugin WP SafePress, um sistema singular que assegura e aumenta a performance do seu site conjuntamente.

Por que a Hospedagem WordPress funciona melhor na MCO2?

A Hospedagem WordPress funciona melhor pois a MCO2 possui servidores otimizados para WordPress. A instalação de WordPress é diferente de uma instalação trivial, pois habilita imediatamente recursos como otimização de imagens e fotos, proteção da página de login, bloqueio de atividades maliciosas diretamente no firewall, cache avançado e HTTPS ativado por padrão. São recursos que potencializam seu WordPress para a máxima segurança e o máximo desempenho.

Many themes and plugins load Google Maps without an API key, or without a setting to enter one. Google requires an API key for every Maps JavaScript API request, so these maps fail with “This page can’t load Google Maps correctly” or show a “For development purposes only” watermark.

API KEY for Google Maps fixes this without touching theme or plugin code. Enter your key once and the plugin adds it to every Google Maps JavaScript API script enqueued on the site.

Features

  • Adds your API key to Google Maps JavaScript API scripts enqueued by any theme or plugin.
  • Replaces an outdated or different key already present in the script URL with your own.
  • Adds the callback parameter Google has required since January 2023, fixing the JavaScript error Loading the Google Maps JavaScript API without a callback is not supported.
  • Works on the front end of your site and in the WordPress admin.
  • One-click Generate API Key button that opens the Google Cloud Console with the Maps APIs selected.
  • Quick link to a free tool that checks your site for Google Maps API key errors.
  • Lightweight: a single settings field and a tiny inline script. The saved key is removed when you delete the plugin.

How to use

  1. Activate the plugin and go to Settings > Google API KEY.
  2. Click Generate API Key (you must be signed in to your Google account), or paste a key you already have.
  3. Click Save Changes. Your maps now load with your key.

Requirements and tips

  • The theme or plugin must load Google Maps the standard WordPress way (with wp_enqueue_script()). Scripts that are hard-coded into templates or injected by JavaScript can not be changed.
  • Browser API keys are visible in your page source. In the Google Cloud Console, restrict your key to your website’s domain (HTTP referrers) and to the Maps APIs you use.

For developers

When the Google Maps API has loaded, the plugin sets window.rgmkGoogleMapsCallback to true and triggers the jQuery event rgmkGoogleMapsLoad on document. Use the rgmk_google_map_callback_script filter to change the callback script.

The plugin was created by the GeoDirectory team.

Security

To report a security vulnerability, please review our vulnerability disclosure policy.

Capturas de tela

Settings page.

Settings page.

Generate API KEY.

Generate API KEY.

Copy API KEY, paste in Settings and save.

Copy API KEY, paste in Settings and save.

Plugins semelhantes

SiteOrigin Widgets Bundle
(134 avaliações)

Essential elements for modern websites. Add buttons, sliders, heroes, maps, images, carousels, features, icons, more. Create dynamic pages easily.

WP Go Maps – Google Map, OpenStreetMap, Leaflet Map
(3.047 avaliações)

The easiest to use WordPress map plugin! Create a custom map, map block, store locator or map widget with high quality markers.

WP Maps – Google Maps, OpenStreetMap, Mapbox, Store Locator with Search, Filters & Listings
(122 avaliações)

WordPress map plugin for Google Maps, OpenStreetMap & Mapbox with custom markers, filters, searchable listings and store locator.

WP Store Locator
(312 avaliações)

Store locator for OpenStreetMap, Stadia Maps, Mapbox and Google Maps with unlimited locations, custom fields and markers. No API key on OpenStreetMap.

MapPress – Google Maps, OpenStreetMap & Leaflet
(148 avaliações)

Unlimited maps and markers. Free, no API key, no setup. Google Maps, Leaflet, OpenStreetMap & Mapbox. Map editor, blocks and store locators.

Easy Google Maps
(252 avaliações)

Google Maps with markers, locations and clusterization, KML layers and filters. Custom Google map markers with text, images, videos, links.

Do mesmo author (Stiofan)

UsersWP – Front-end login form, User Registration, User Profile & Members Directory plugin for WP
(183 avaliações)

Light weight Front-end login form, User Registration, User Profile and Members Directory plugin.

Payment forms, Buy now buttons, and Invoicing System | GetPaid
(46 avaliações)

Payments & Invoicing plugin for WordPress to quickly and easily sell online. Create Buy Now buttons or inline checkout forms in seconds to accept …