[Resolved] Map Marker not displaying when view the taxonomy archive
The Toolset Community Forum is closed, for technical support questions, please head on to our Toolset Professional Support (for paid clients), with any pre-sale or admin question please contact us here.
This support ticket is created 7 years, 7 months ago. There's a good chance that you are reading advice that it now obsolete.
This is the community support forum for Types plugin, which is part of Toolset. Toolset is a suite of plugins for developing WordPress sites without writing PHP.
Everyone can read this forum, but only Toolset clients and people who registered for Types community support can post in it.
I am trying to: display a map marker of an address field in a custom taxonomy when viewing the taxonomy archive page
I visited this URL:
I expected to see: two map markers; one at the location of Heathrow Airport, London and the other in another location in the UK using the coordinates I entered.
Instead, I got: just the marker at the coordinates I entered.
Hello. Thank you for contacting the Toolset support.
As you said you are using taxonomy archive, could you please share the full code you have added to the "loop output editor" section of your custom taxonomy archive.
I think the issue is how I put in the shortcode to get the marker location. I've literally tried everything I can think of. The airport-photo is a field in the taxonomy and that's displaying perfectly.
I think I got the issue. The marker code shortcode not dispalying the pin because you are using marker address field and you do not mentioned for which term ID it should get address from.:
I have created two fields in the Term Fields - one containing a photo and the other containing an address. When viewing one of the taxonomy records it's displaying the correct photo but I can't get the pin to display on the map.
There seems to be issue with your google API key. I've added my Google API key (unrestricted) key at:
=> Toolset => Settings => Maps tab => Google Map API key
I wondered about the API key which is why I added the marker with coordinates. Odd that it showed that one although I'm now wondering if the API is for the address lookup and isn't needed for direct coordinates.
I'll look at my key and see what could be wrong with it.
The marker is now showing but it seems to be getting the record from the id rather than the record of the page being viewed. All the taxonomies are showing the marker id 15.
eg. when viewing /airport/lhr it should display the marker as stored in the taxonomy lhr.
When viewing /airport/sen it should display the marker for the taxonomy sen.
I hope that's clear. I don't understand why it can show the correct photo for each one but not the map markers.