Directions Leaflet MIA
This topic contains 13 replies, has 4 voices, and was last updated by Alex Rollin 6 years, 9 months ago.
We have moved to a support ticketing system and our forums are now closed.
Open Support TicketTagged: map
-
AuthorPosts
-
January 18, 2019 at 8:42 pm #464053
Hello,
On my staging site, I have lost the directions leaflet:
https://ssonmstaging.wpengine.com/in/new-york/new-york/237-w-48th-street-10036/It appears on my dev site, and I believe it is because I’m using a shortcode to generate the map on my staging site. Please advise.
https://ssonmedev.wpengine.com/in/wyoming/rock-springs/79-winston-dr-82901/#post_map
January 19, 2019 at 2:19 am #464092Can we have WP admin details for both sites in a private reply please.
Thanks
January 19, 2019 at 4:11 pm #464167This reply has been marked as private.January 19, 2019 at 11:33 pm #464219Right, so one site runs V1 [which has the directions on the OSM detail map] and the other site runs V2 [and does not have the OSM directions on the OSM map].
I am guessing that has not been implemented yet, but will get the developers to confirm.
Thanks
January 19, 2019 at 11:50 pm #464223Hey Guust,
Thanks for the response. I want to clarify:
The staging site is running GeoDirectory V1. I have adjusted the template to use a shortcode to generate the map.
This shortcode does not display the “Get Directions” functionality within map frame mobile, or the IP locate button under the map:
https://ssonmstaging.wpengine.com/in/new-york/new-york/237-w-48th-street-10036/The dev site is running GeoDirectory V2 without customizations. The map has the “Get Directions” functionality within the map and the IP locate button
https://ssonmedev.wpengine.com/in/wyoming/rock-springs/79-winston-dr-82901/#post_map
I need help figuring out how to adjust the listing template on my staging site (and GeoDirectory V1) to get that functionality back.
Thanks
January 21, 2019 at 9:49 am #464392Hello,
From where you rendered map at https://ssonmstaging.wpengine.com/in/new-york/new-york/237-w-48th-street-10036/
This map is listing page map, it should be detail page map. Listing page map does not contains map directions feature.
Let us know.
Kiran
January 21, 2019 at 2:44 pm #464475Thanks Kiran,
Looking at the shortcode list, [gd_listing_map] exists but I don’t see anything for creating the detail map. Any ideas on that?
January 21, 2019 at 2:49 pm #464476Should be [gd_map map_type=”post”] in V2.
January 21, 2019 at 2:54 pm #464478Hey Guust,
We’re still trying to fix our setup on V1 before we migrate over to V2.
Can you please share what the shortcode should be on V1?
Thanks
January 21, 2019 at 10:53 pm #464560Oops, I confused both sites. It is the DEV site that has V2, not the STAGING site. I am not sure there is an equivalent for V1. Let’s wait for Kiran’s answer.
January 22, 2019 at 9:11 am #464597Hello,
Detail page map should be rendered via function only. Shortcode will not work for detail page map.
Still try adding enable_map_direction = 1 in shortcode in case it work.
Kiran
January 22, 2019 at 2:41 pm #464707Kiran,
Having determined that we need to use the function to call the detail page map, what would that function look like?
January 23, 2019 at 8:30 am #464881Hello,
Here is function that renders detail page Google map https://github.com/GeoDirectory/geodirectory/blob/master/geodirectory-functions/custom_functions.php#L1744
Here are the map parameters https://github.com/GeoDirectory/geodirectory/blob/master/geodirectory-functions/custom_functions.php#L1511Kiran
January 23, 2019 at 1:22 pm #464957This reply has been marked as private. -
AuthorPosts
We have moved to a support ticketing system and our forums are now closed.
Open Support Ticket