Google Map |
[eluser]RobertB.[/eluser]
Guys, I know this questions is old news, but I still can get it so... Today's date 03.10.10 PHP v5.3 Codeigniter v1.7.2 GoogleMapAPI-2.5 Controller Code: $this->load->library('Cigooglemapapi'); <head> Code: <?php $this->cigooglemapapi->printHeaderJS(); ?> <body> Code: <body onload equals "onLoad()"> What I get is the map frame with the controls but no map. Can I get some help please? Thanks, Robert.
[eluser]RobertB.[/eluser]
This is the site just in case someone wants to take a look at it. It's not a finished site, I just started it. www.citysniff.com
[eluser]nelson.wells[/eluser]
Could you post the solution? I haven't used the class (and to be honest I didn't know it existed), but I do plan on using Google Maps soon so it would be nice information to have in case I run into the same problem.
[eluser]RobertB.[/eluser]
Go here to get the class Class cigooglemapi.php Code: require('GoogleMapAPI.class.php'); Put both the class and the cigoogleapi.php in the application/library folder I'm using includes so.. <head> Code: <?php $this->cigooglemapapi->printHeaderJS(); ?> listing (Controller) Code: function __construct() listing_view (view) Code: <?php $this->cigooglemapapi->printMap(); ?> Let me know if this helped. |
Welcome Guest, Not a member yet? Register Sign In |