I am trying to: add multiple markers to a single map
I visited this URL: hidden link
I expected to see: 2 locations at this point
Instead, I got:Just a map and no markers
I verified that the address does show up when entered in the post type
I verified that the address is being cached
I do have all three Google APIs enabled
I have NOT restricted the credentials to my domain
Here is my Views Code
[wpv-layout-start]
[wpv-items-found]
[wpv-map-render map_id="map-1" map_height="800px" cluster="on" map_type_control="off" street_view_control="off" marker_icon="hidden link " background_color="#1e73be"]
<!-- wpv-loop-start -->
<wpv-loop>
[wpv-map-marker map_id="1" marker_id="marker-1" marker_title="WEC Eye Doctor" marker_field="wpcf-office-address"][/wpv-map-marker]
</wpv-loop>
<!-- wpv-loop-end -->
[/wpv-items-found]
[wpv-no-items-found]
[wpml-string context="wpv-views"]No items found[/wpml-string]
[/wpv-no-items-found]
[wpv-layout-end]
<c/ode>
Shane
Supporter
Languages:
English (English )
Timezone:
America/Jamaica (GMT-05:00)
Hello,
Thank you for contacting our support forum.
This issue seems to be a problem with the api key.
Could you verify that the map markers show up when you are using this API key below?
AIzaSyB0KhffiMteHVLTmx5bdgG4_m2gI5YAFgw
Thanks,
Shane
I tried that key and it seems to make no changes.
I'll leave that key active so you can continue to look.
Shane
Supporter
Languages:
English (English )
Timezone:
America/Jamaica (GMT-05:00)
Hello,
Would you mind providing me with a few debug information on the website as well as admin access so I can have a more detailed look?
To provide the debug information please have a look at the link below.
https://toolset.com/faq/provide-debug-information-faster-support/
Also the private fields have been enabled for the credentials.
Thanks,
Shane
Shane
Supporter
Languages:
English (English )
Timezone:
America/Jamaica (GMT-05:00)
Hello,
So I have some awesome news 🙂
I took a look at the view and found that the issue was that the incorrect map id was added to the marker shortcode.
What you had for the map id in the marker was 1 but the actual id of the map was map-1
The map should now be showing normally now.
Thanks,
Shane
Thanks very much for the catch.