Meta Box
Support Forum
Support › Meta Box Geolocation › Multiple pin/location on a single Map (Google Maps)
Is there a way we can display all CPT's Google Maps pin or location in a page using rwmb_the_value()? Assuming they already set in each CPT and can display in single page.
If not rwmb_the_value is there another way?
Hi Paul,
Please follow this article to know how to display all locations (CPT) on a map https://metabox.io/display-all-listings-on-a-map/?swcfpc=1
It's open streetmap and not Google Maps https://metabox.io/display-all-listings-on-a-map/?swcfpc=1
It has special script mentioned for Open Street Maps.
We use only Google Maps so we can't use it.
"Enqueue Leaflet library to render maps. This is a very powerful JavaScript library that we use in Meta Box to render Open Street Maps."
Hi,
For Google Maps, you can load the library by following this documentation https://developers.google.com/maps/documentation/javascript/places
I will also inform the Marketing team to create an article for displaying all listings on Google Maps.