Media · Elementor

Google Maps widget for Elementor

A map with marker and style controls for a location or directions block.

Open live demo

Get King Addons

This page describes the PHP/JS for this widget — not a renamed stub. Install the free plugin from WordPress.org.

Get King Addons

What it actually does

A map with marker and style controls for a location or directions block.

render() writes HTML data attributes: data-controls, data-locations, data-settings.

Maps need a Google Maps API key; the widget prints a map container that JS initializes.

How to add it in Elementor

  1. Install King Addons. Install Elementor and King Addons. Get King Addons from WordPress.org.
  2. Edit with Elementor. Open a page and click Edit with Elementor.
  3. Insert the widget. Search the panel for “Google Maps”. Typing “king” lists every King Addons widget.
  4. Set inspector controls from this widget’s PHP. Configure “Select Map Type”, “Color Scheme”, “Custom Style”, “Map Height”. Style and Content tabs are listed on this page.

When to use it

Tip: After King Addons is active, type king in the Elementor search box to list every widget, including Google Maps.

Inspector controls from this widget’s PHP

ControlWhat the code does
General — Select Map TypeWritten to the `type` HTML attribute in render(). Options: Road Map; Satellite; Hybrid; Terrain.
General — Color SchemeThe chosen value is read in render() and applied on the front end. Options: Default; Blue Essence; Blue Water; Golden Brown; Light Grayscale; Light Silver; Midnight Commander; Mostly Green….
General — Custom StyleGet custom map style code from Snazzy Maps or GM Styling Wizard and copy/paste in this field.
General — Map HeightWrites CSS `height` onto the widget’s front-end markup. (min 100, max 1000).
General — Zoom DepthSpacing/size control (min 1, max 20).
General — Disable Zoom on ScrollSwitcher inspector control (`gm_zoom_on_scroll`).
General — Cluster MarkersCombine markers in close proximity into clusters to simplify the display of markers on the map.
google_map_locations — LatitudeText inspector control (`gm_latitude`).
google_map_locations — LongitudeText inspector control (`gm_longitude`).
google_map_locations — Show Info WindowOptions: None; on Load; on Click.
google_map_locations — Location TitleText inspector control (`gm_location_title`).
google_map_locations — Location DescriptionTextarea inspector control (`gm_location_description`).
google_map_locations — Info Window WidthSpacing/size control (min 50, max 500).
google_map_locations — Marker AnimationOptions: None; Drop; Bounce.
google_map_locations — Use Custom MarkerSwitcher inspector control (`gm_custom_marker`).
google_map_locations — Upload Marker IconMedia Library attachment(s); render() uses the URL/ID as the image source.
google_map_locations — Marker Icon Size WidthSpacing/size control (min 10, max 150).
google_map_locations — Marker Icon Size HeightSpacing/size control (min 10, max 150).
Locations — Google Map LocationsRepeater rows; render() loops each item to build the list or slides.
Controls — Show Map Type ControlWritten to the `type` HTML attribute in render().
Controls — Show FullScreen ControlSwitcher inspector control (`gm_controls_fullscreen`).
Controls — Show Zoom ControlSwitcher inspector control (`gm_controls_zoom`).
Controls — Show Street View ControlSwitcher inspector control (`gm_controls_street_view`).
Info Window — AlignmentWrites CSS `text-align` onto the widget’s front-end markup. Options: Left; Center; Right; Justified.
Info Window — Title ColorWrites CSS `color` onto the widget’s front-end markup.
Info Window — Description ColorWrites CSS `color` onto the widget’s front-end markup.
Info Window — Background ColorWrites CSS (background-color, gm-style-iw-t, background, gm-style-iw-tc) onto the widget’s front-end markup.
Info Window — Title TypographyElementor typography group: family, size, weight, transform, style, decoration, line-height, letter-spacing. Selector: `{{WRAPPER}} .king-addons-google-map .gm-style-iw-c .king-addons-gm-iwindow h3`.
Info Window — Description TypographyElementor typography group: family, size, weight, transform, style, decoration, line-height, letter-spacing. Selector: `{{WRAPPER}} .king-addons-google-map .gm-style-iw-c .king-addons-gm-iwindow p`.
Info Window — PaddingWrites CSS `padding` onto the widget’s front-end markup.
Info Window — Border RadiusWrites CSS `border-radius` onto the widget’s front-end markup.
Info Window — Distance from MarkerWrites CSS `transform` onto the widget’s front-end markup. (min 0, max 30).

Content and Style tabs from this widget’s PHP, including repeater fields and group controls (typography, background, border, shadow). Elementor’s Advanced tab is core Elementor and is not listed here.

FAQ

Why is Google Maps blank?

The map JS needs a valid Google Maps API key. The Elementor preview can look empty until the key is set and you view the front end.

How do I add Google Maps in Elementor?

Install King Addons and Elementor, edit a page, search the panel for “Google Maps”, drag it onto the canvas, then set Content and Style.

Do I need Elementor Pro?

No. King Addons runs on free Elementor. Some King Addons options (for example template-in-accordion, extra popup conditions, parts of the template catalog) need King Addons Pro — not Elementor Pro.

Related media widgets

Get King Addons

One free plugin. 80+ Elementor widgets, 650+ templates, and 4,000+ sections. Search for Google Maps after you activate it.

Get King Addons