Welcome Guest, Not a member yet? Register   Sign In
Google map integration with CI
#4

(This post was last modified: 03-15-2015, 04:07 AM by ivantcholakov. Edit Reason: A correction of my statement )

@pankajdurve

Your code looks as finished as an idea, you simply have to debug it.

Code:
$(document).ready(function() { ... }
This is deprecated by jQuery as far as I know. Change it with
Code:
$(function() { ... });

Code:
bord_data = JSON.parse(data);
It is unclear why JSON parsing call is needed. If code is exactly as it has been posted, the browser alone does this parsing.
Edit: It is needed, but I am not sure what do you do about escaping data. If I had the data on the server side I would write something like this:
Code:
bord_data = <?php echo json_encode($data); ?>;

Try to make code to run first without the info window, add the code for info window when showing the map and the marker is ok.

See how this example works, make a comparison:
http://ivantcholakov.entrydns.org/starte...le-maps-v3
https://github.com/ivantcholakov/starter...cripts.php
Reply


Messages In This Thread
Google map integration with CI - by pankajdurve - 03-14-2015, 12:11 PM
RE: Google map integration with CI - by ivantcholakov - 03-15-2015, 01:19 AM



Theme © iAndrew 2016 - Forum software by © MyBB