Google Maps and CodeIgniter? |
[eluser]Sinclair[/eluser]
Hi, I need to insert some google maps in a CodeIgniter application. There are some extra(3 party) classes that could help me? Best Regards,
[eluser]Ben Edmunds[/eluser]
Yes. Check it out here: http://codeigniter.com/wiki/Google_Maps/
[eluser]megabyte[/eluser]
I'm looking for some information, code, examples or just being pointed in the right direction. I need to do what this website has done: http://www.spoonfedsoup.com/Articles.asp?ID=124 It shades an area showing delivery zones. Thanks, K
[eluser]Ben Edmunds[/eluser]
That's an overlay. Better start reading up on javascript and the google maps api ![]() Or prepare for the future and use their new xml api...
[eluser]megabyte[/eluser]
Glimpsed over it,but couldn't find where to get the latitude points. to create the overlay
[eluser]BrianDHall[/eluser]
This is the one I use, I give it my full endorsement: http://www.phpinsider.com/php/code/GoogleMapAPI/ I use it on the site I created here: http://rentals800.com You just have to rig it up for CI, which isn't hard. The main change is it was created to use PEAR's DB, so just search for "db" and you'll find a few places you'll need to make adjustments to make it work with CI. Hm, come to think of it I guess there are a few things I did, so I'll just include the file here for your convenience if you want to use it. Usage: stick it in the libraries folder of your application, then in your controller: Code: $this->output->enable_profiler(TRUE); And the view: Code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> You'll of course need to set your api key to test it out in your environment. This class also needs 1 table for its geocodes, which I highly recommend. It stores lat and long of addresses it has checked before for improved performance. The thing I really like about this one is how easy it is to add markers by address. I never have to think of lat and long, it handles that crap through the addMarkerByAddress() method.
[eluser]BrianDHall[/eluser]
Oh and for shading out a delivery area? I'd look into the page code to see what functions they were using, beats the heck out of me. First time I've ever seen that.
[eluser]Ben Edmunds[/eluser]
Is order to do the overlay that you want you'll need to reference this http://code.google.com/apis/maps/documen...rlays.html The google documentation doesn't really spell out how to do the advanced features but it's definitely in there. This article might also be helpful, http://www.maptiler.org/google-maps-over...y-control/ Enjoy!
[eluser]Sinclair[/eluser]
[quote author="BrianDHall" date="1261430527"]This is the one I use, I give it my full endorsement: http://www.phpinsider.com/php/code/GoogleMapAPI/ I use it on the site I created here: http://rentals800.com You just have to rig it up for CI, which isn't hard. The main change is it was created to use PEAR's DB, so just search for "db" and you'll find a few places you'll need to make adjustments to make it work with CI. Hm, come to think of it I guess there are a few things I did, so I'll just include the file here for your convenience if you want to use it. Usage: stick it in the libraries folder of your application, then in your controller: Code: $this->output->enable_profiler(TRUE); And the view: Code: <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd"> You'll of course need to set your api key to test it out in your environment. This class also needs 1 table for its geocodes, which I highly recommend. It stores lat and long of addresses it has checked before for improved performance. The thing I really like about this one is how easy it is to add markers by address. I never have to think of lat and long, it handles that crap through the addMarkerByAddress() method.[/quote] Thanks a lot, I will try it right now! Best Regards,
[eluser]Sinclair[/eluser]
Hi, I have tested, but I got an strange error: Code: An Error Was Encountered What can I do? I have cURL enable on XAMPP. Best Regards, |
Welcome Guest, Not a member yet? Register Sign In |