CBX Map for Google Map & OpenStreetMap


Long story short, I was searching for easy google map embed in wordpress using lat, lng and I didn’t find one
that is easy and works instantly. So I created one.

See more details and usages guide here
For any help/support please contact us

Key Features

  • Google MAP or Openstreep map(no api key needed)
  • Custom post type for map
  • Easy Shortcode
  • Works without custom post type using the same shortcode [cbxgooglemap]
  • Responsive with browser width and resize
  • Info window
  • Default global Setting
  • Meta field for custom post type
  • Easy geo complete feature while finding proper marker position in custom post type edit.
  • Easy copy shortcode with mouse click

Special Features

  • Elementor page builder element/widget support
  • Gutenberg support (From v1.1.2)

Shortcode Params

The most short form of the shortcode is
[cbxgooglemap id=”google map post id here”] where id is post id of custom google map post type

We can use shortcode to display saved map (this plugin creates custom post type CBX Maps(cbxgooglemap) in admin to create maps as need) or can display map using custom attributes. For save map we need only one param [cbxgooglemap id=”google map post id here”]

id      = post id, can be empty
We can also display map using custom attributes
maptype = default 'roadmap', possible values, 'roadmap', 'satellite', 'hybrid',  'terrain'
width   = numeric value, '%' accepted, no 'px', if only numeric value then px will be added automatically
height  = nemeric value, no 'px'
zoom    = default 8
lat     = lattitude value, required
lng     = longitude value, required
heading = used for info window title
website = website url that is linked to place name in popup info window, leave empty to ignore
address = used for info window content
scrollwheel = 1 enable , 0 disable, default 1 or comes from default config
showinfo = 1 enable , 0 disable, default 1 or comes from default config, show popup window or not
infow_open = 1 enable , 0 disable, default 1 or comes from default config, show popup as opened or on click
mapicon = map icon url, leave empty to ignore

Let us know which new feature you except.

Pro Addon Features

  • Distance Search shortcode , map and list display
  • Displays multiple markers from the maps post types in single map
  • Make map public or not so that single map can be browse like post
  • Map Categories

Check the proaddon more details


  • CBX Map global setting
  • CBX Map global setting-2
  • CBX Map admin post listing
  • CBX Map admin single map edit
  • CBX Map admin single map edit -2
  • CBX Map frontend


This plugin provides 1 block.

CBX Map for Google Map & OpenStreetMap


This section describes how to install the plugin and get it working.


  1. Upload folder cbxgooglemap to the /wp-content/plugins/ directory
  2. Activate the plugin through the ‘Plugins’ menu in WordPress
  3. Go to CBX Google map setting, put google map api key (in google project console you need, js map api, geo coding api, e)
  4. Place shortcode any where as need


Is there any custom function to call directly ?

No at this moment


يناير 27, 2019
Thank good for this Plugin since getting a google API is a mess! I tried to get an API for two hours now. I give it up and will use openstreetmap and this plugin from now on. Thaaaaaaaank you!!!!
Read all 1 review

Contributors & Developers

“CBX Map for Google Map & OpenStreetMap” is open source software. The following people have contributed to this plugin.




  • [Buf fix] fixed warning about sub menu wrong param


  • [Bug fix] Elementor widget loading conflict issue solved. Pro version has a new update


  • New shortcode param, default setting, post meta ‘infow_open’ to control info window default popup open or not.
  • Added new shortcode params maptype for google map types(roadmap, satelite, hybrid, terrain)
  • Elementor now has custom attributes feature , that means no need saved map to display
  • Added gutenberg block support


  • [Improvement] Elementor widget dynamic render and lots of other improvement
  • Template system and template override from theme, same feature in pro addon


  • [Improvement] Add same type html markup for opensteetmap info window for heading and description. lots of improvement.
  • [New] Pro addon released for distance search search features with new shortcode.


  • [Bug Fix] Map save error fix


  • [New] Added openstreet map as an option with existing google map which need api key


  • [Bug Fix] Backend map address input field flickering issue


  • [Improvement] CSS and JS minified for best performance


  • [Bug Fix] Minor bug fix and improvement


  • [Bug Fix] Google api key missing error handled