How to using infowindow_content for direct link to another web? |
[eluser]irga[/eluser]
How to using infowindow_content for direct link to another web? i'm using API V3 with codeigniter frame work.. like this [/code]https://google-developers.appspot.com/ma...e?hl=id-ID [code] foreach ($infoMarkers as $infoMarker) { $marker = array(); $marker['position'] = $infoMarker->latitude.",".$infoMarker->longitude; $marker['infowindow_content'] = 'Hello world'; $marker['animation'] = 'DROP'; $this->googlemaps->add_marker($marker);
[eluser]weboap[/eluser]
look at the link for example. https://developers.google.com/maps/artic...#createmap need more info about the lib "googlemaps" that you are using to help here.
[eluser]irga[/eluser]
I am using the google map library from Steve http://biostall.com/codeigniter-google-m...pi-library 1. I tried to add the hyperlink into info_window, but it can’t be worked, no google map shown. Code: $marker['infowindow_content']='<a href="http://www.google.com">Google</a>' How can I add the hyperlink into info_window by a correct way?
[eluser]weboap[/eluser]
your missing forward slash (\)after href= and at the end just before last (") Code: $marker['infowindow_content']='<a href="http://www.google.com">Google</a>'; // coudln't replicate that the forum is filtering the (\)
[eluser]weboap[/eluser]
the long answer is (if somebody need help implementing this lib). sample db table: Code: CREATE TABLE IF NOT EXISTS `mymap` ( model : mymap_model.php Code: class mymap_model extends CI_Model { controller : mymap.php Code: class Mymap extends CI_Controller { view: mymap_view.php Code: <?php hope it help somebody.
[eluser]irga[/eluser]
thanks for your solution sir.. it's totaly work. i've another question and i hope you can help me sir.. can i customize the infowindows? |
Welcome Guest, Not a member yet? Register Sign In |