Reply To: "Directions To/From" Not Displaying

Home Forums MapPress Support "Directions To/From" Not Displaying Reply To: "Directions To/From" Not Displaying

#14239
portsmouthpl
Participant

The 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));
}