• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
CI Google Maps Library - panoramioTag ```BIOSTALL (Solved

#1
[eluser]gazza7364[/eluser]
Hi

I've been playing around with CI Google Maps Library and I've got most things to work, but I'm having problems with panoramioTag. I've tried the following but no photos show.

Code:
function index() {


$data['results'] = $this->summits_model->get_summits();




$this->load->library('googlemaps');
//$config['minifyJS'] = TRUE;

$config['map_height'] = "800px";
$config['map_width'] = "600px";
$config['center'] = '54.43, -3.069';
$config['zoom'] = 'auto';
//$config['panoramio'] = TRUE;
$config['panoramioTag'] = 'Helvellyn';
$this->googlemaps->initialize($config);

$marker = array();

foreach ($data['results'] as $climbed):
{
$marker['title'] =  $climbed->peak_name;

$marker['position'] = $climbed->lat ."," . $climbed->long ;

$marker['infowindow_content'] = $climbed->peak_name . '<br>' . $climbed->ht_ft . "  " . $climbed->ht_m . "<br>" . $climbed->peak_area;




$this->googlemaps->add_marker($marker);
$this->googlemaps->add_marker($marker);
}
endforeach;

$data['map'] = $this->googlemaps->create_map();

$this->load->view('map', $data);


}
}

If I use
Code:
$config['panoramio'] = TRUE;
all the photos show, but I'm trying to restrict the photos, by showing only the photos within the panoramioTag tag.

Any ideas?


Solved

Needed to have
Code:
$config['panoramio'] = TRUE;
and $config['panoramioTag'] = 'Helvellyn'; loaded at same time, did try this at but didn't work. Alls working now.




Messages In This Thread
CI Google Maps Library - panoramioTag ```BIOSTALL (Solved - by El Forum - 09-19-2012, 10:59 AM

Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


  Theme © 2014 iAndrew  
Powered By MyBB, © 2002-2020 MyBB Group.