I am trying to:
Make a marker on the Google map for the address from a Post Field
Link to a page where the issue can be seen:
hidden link
I expected to see:
I expected to see a marker where the address is.
Instead, I got:
A map with no marker
Here is the code I put in my Content Template:
[wpv-map-render map_id="map-1" map_height="400px" single_zoom="12"]
[wpv-map-marker map_id="map-1" marker_id="marker-1" marker_field="street-address"][/wpv-map-marker]
Remove the restriction you have set in your Google API key definition for a moment, see if it works then.
Most probably this is an issue with your Google API key. To fully confirm that I need to log in and use my own API Key, which I will delete afterwards
If with my API Key the markers appear it means the issue is not within Toolset Maps.
In those cases, it is required to carefully follow this document and pay attention to placeholders and sub-folder installs (Google does not like this kind of URL's).
https://toolset.com/documentation/user-guides/display-on-google-maps/
If the issue persist, please can you grant me access to the site?
Are you using the legacy Maps?
I do not see that you have any Address Custom Field in that Post.
You use separate fields, like street, number, etc.
That is not how you should create Maps, as our Document shows.
You should use the Address Field.
If you created those Addresses with the old Maps Plugin and started the work with that plugin and do not plan to switch, you need to activate "Enable the legacy Views Map plugin" in Toolset > Settings > Maps > Map plugin (legacy)
Does that solve the problem?
I enabled the Legacy map plug in, but n marker shows up. Do I have to change the code in my Content template to match the old plug in ?
thanks,
Mike
The map legacy plugin requires a complete different syntax that I cannot even share anymore, it's not present in the DOC anymore.
I requested the old DOC in a PDF file, but we cannot assist that anymore, it's deprecated.
As soon I have it (if we still have it) I will share it with you.
We let it only active for backwards compatibility.
1. Has this code you share ever worked on your site? (I think, not)
2. When did this start to break?
I see you have over thousand posts. Did they feature an address before, and where they showing on the map?
With the current setup, this is not possible.
Please let me know if this ever worked, and if so, in what version of Toolset.
Then I might be able to replicate this, but from what I see now, NEW Syntax is used to display OLD addresses and that cannot work.