

CBX Map global settings
CBX Map for Google Map & OpenStreetMap makes it easy to add responsive maps to your WordPress website.
Choose between Google Maps and OpenStreetMap, create reusable map locations from the WordPress admin, or display a map directly with a simple shortcode.
The plugin is designed to keep map creation simple. You can search for a location, set the marker position, configure the map, and copy the shortcode with just a few clicks.
OpenStreetMap is supported as an alternative to Google Maps and can be used without a Google Maps API key.
📺 Live Demo | 🌟 Upgrade to PRO | 📋 Documentation | 👨💻 Free Support | 🤴 Pro Support | 📱 Contact
[cbxgooglemap] shortcode▶️ Watch the Video
CBX Map integrates with popular WordPress content-building tools.
The simplest way to display a saved map is:
[cbxgooglemap id="123"]
Replace 123 with the ID of a map created using the CBX Maps custom post type.
Once you create a map from the WordPress admin, copy its shortcode and place it anywhere that supports WordPress shortcodes.
Example:
[cbxgooglemap id="123"]
Only the id attribute is required when displaying a saved map.
You can also create a map directly from shortcode attributes without creating a CBX Map custom post.
Example:
[cbxgooglemap lat="23.8103" lng="90.4125"]<h3>Shortcode Attributes</h3>
* id — Saved CBX Map post ID. Optional.
* maptype — Map type. Default: roadmap. Available values: roadmap, satellite, hybrid, terrain.
* width — Map width. Numeric values are treated as pixels. Percentage values such as 100% are also supported.
* height — Map height in pixels.
* zoom — Initial map zoom level. Default: 8.
* lat — Latitude of the map location. Required when using a map without a saved map post.
* lng — Longitude of the map location. Required when using a map without a saved map post.
* heading — Title displayed in the information window.
* website — Website URL linked from the place name in the information window. Leave empty to disable the link.
* address — Content displayed inside the information window.
* scrollwheel — Enable or disable mouse-wheel zooming. 1 = enabled, 0 = disabled.
* showinfo — Show or hide the information window. 1 = enabled, 0 = disabled.
* infow_open — Control whether the information window is initially open. 1 = open, 0 = closed.
* mapicon — Custom marker icon URL. Leave empty to use the default marker.
Example:
[cbxgooglemap lat="23.8103" lng="90.4125" zoom="12" maptype="roadmap" width="100%" height="400"]
For complete shortcode documentation and Pro features, see the CBX Map documentation.
Upgrade to CBX Map Pro to add advanced mapping and location features.
▶️ Watch the Pro Video
For complete Pro documentation and shortcode options, visit the CBX Map documentation.
[cbxgooglemap] shortcode to display a map.cbxgooglemap folder to /wp-content/plugins/.If you use Google Maps, configure the required Google Maps API credentials according to Google’s current API requirements.
If you use OpenStreetMap, a Google Maps API key is not required.
Need help with CBX Map?