Home › Forums › MapPress Support › "Directions To/From" Not Displaying
- This topic has 5 replies, 2 voices, and was last updated 8 years, 11 months ago by
portsmouthpl.
-
AuthorPosts
-
February 12, 2014 at 7:42 am #14233
I just installed MapPress Pro and quickly went through the settings and selected the POI to display ‘Zoom’ and ‘Directions To’. I am pulling the address in through Formidable Pro entries and the only option I see on the POI is zoom.
Is there a know issue that would cause the Directions To to not display or am I just overlooking something?
Thanks
February 12, 2014 at 8:06 am #14234There are two settings: the first is which links you want in the POI. It sounds like you’ve already set that one.
The second setting is the ‘directions type’ where you can select google, inline or none. Make sure you didn’t select ‘none’ for that setting because it will prevent the POI link from displaying.
If that doesn’t help, please provide a URL to illustrate the problem.
February 12, 2014 at 8:12 am #14235I tried setting the directions type to ‘inline’ and ‘Google’ and it still isn’t showing up.
You can view a sample here: http://www.yourppl.org/uncategorized/government-entries-test/?entry=12214
February 12, 2014 at 10:14 am #14236I looked at the page, but the directions settings for that map is showing as “none”.
Is it possible the settings weren’t saved, or the directions were set in the shortcode itself?
You should be able to see the directions behavior in the demo map on the MapPress settings page. For the shortcode, try this to force the directions ON:
[mappress directions="inline"]
If that doesn’t help, please send a login and I’ll try to find the issue.
February 13, 2014 at 1:13 am #14239The setting seems to be saved. I wouldn’t know what to check other than the seeing the radio buttons moving upon saving..
I followed this guide to setup my display: http://formidablepro.com/how-to-create-maps-from-form-entries/
The shortcode I am using to display is: [form_to_mappress address1=”[1109], [1110], [1111] [1112]”]
This is the custom function used to build the shortcode:
add_shortcode('form_to_mappress', 'form_to_mappress'); function form_to_mappress($atts) { extract(shortcode_atts(array( 'width' => 600, 'title' => '', 'body' => '', 'address1' => '', 'address2' => '', 'directions' => 'none' ), $atts)); $mymap = new Mappress_Map(array("width" => $width)); $mypoi_1 = new Mappress_Poi(array("title" => $title, "body" => $body, "address" => $address1)); $mypoi_1->geocode(); $mymap->pois = array($mypoi_1); if($address2 != ''){ $mypoi_2 = new Mappress_Poi(array("address" => $address2)); $mypoi_2->geocode(); $mymap->pois = $mypoi_2; } return $mymap->display(array('directions' => $directions)); }
February 13, 2014 at 1:29 am #14240Got it.
As soon as I posted it, I noticed the ‘directions’ => ‘none’ 🙁
Thanks for your help
-
AuthorPosts
- You must be logged in to reply to this topic.