4 * Leaflet Map related functions
7 function generate_map($coord) {
9 $coord = str_replace(array(',','/',' '),array(' ',' ',' '),$coord);
10 $arr = array('lat' => trim(substr($coord,0,strpos($coord,' '))), 'lon' => trim(substr($coord,strpos($coord,' ')+1)), 'html' => '');
11 call_hooks('generate_map',$arr);
12 return (($arr['html']) ? $arr['html'] : $coord);
14 function generate_named_map($location) {
15 $arr = array('location' => $location, 'html' => '');
16 call_hooks('generate_named_map',$arr);
17 return (($arr['html']) ? $arr['html'] : $location);