• 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
help me codeigniter google maps v3 api library

#1
[eluser]Unknown[/eluser]
i use codeigniter google maps v3 api library https://github.com/BIOSTALL/CodeIgniter-...PI-Library to make web .but i want to save polygon point to database and i don't understand example please help me

#2
[eluser]hungdp[/eluser]
See in : http://biostall.com/demos/google-maps-v3...r-library/
has example code

Controller File:
Code:
//import library google maps
$this->load->library('googlemaps');

//here is position u want display
$config['center'] = '37.4419, -122.1419';

$config['zoom'] = 'auto';
$this->googlemaps->initialize($config);

$marker = array();
$marker['position'] = '37.429, -122.1419';
$this->googlemaps->add_marker($marker);

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

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

View File:
Code:
<html>
<head><?php echo $map['js']; ?></head>
<body><?php echo $map['html']; ?></body>
</html>


Digg   Delicious   Reddit   Facebook   Twitter   StumbleUpon  


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