• 0 Vote(s) - 0 Average
• 1
• 2
• 3
• 4
• 5
 Codeigniter - Google map Implementation El Forum Guest   02-14-2012, 03:39 AM [eluser]lexilya[/eluser] [quote author="BIOSTALL" date="1329068450"]Hey blessy, I'm the creator of the Google Maps library mentioned above. Just wondering if a) you used it in the end and b) if so, if you managed to get it to do everything required. If there are any features you need adding let me know and I'll see what I can do. Cheers Steve[/quote] Hi Steve, It's a great and very timesaving library. Thanks for all your effort! I have a small feature request to implement. I was using my own JS hack before this came along, and to get the streetview to display properly (show the correct address/house), I would have to change the POV (angle) as following. Code:```function computeAngle(endLatLng, startLatLng) {   var DEGREE_PER_RADIAN = 57.2957795;   var RADIAN_PER_DEGREE = 0.017453;   var dlat = endLatLng.lat() - startLatLng.lat();   var dlng = endLatLng.lng() - startLatLng.lng();   // We multiply dlng with cos(endLat), since the two points are very closeby, so we assume their cos values are approximately equal.   var yaw = Math.atan2(dlng * Math.cos(endLatLng.lat() * RADIAN_PER_DEGREE), dlat) * DEGREE_PER_RADIAN;   return wrapAngle(yaw); } function wrapAngle(angle) {   if (angle >= 360) {     angle -= 360;   } else if (angle < 0) {     angle += 360;   }   return angle; }``` (Source is from Stackoverflow) Any chance to implement this in your library as well?

 Messages In This Thread Codeigniter - Google map Implementation - by El Forum - 12-26-2011, 03:49 AM Codeigniter - Google map Implementation - by El Forum - 02-12-2012, 10:40 AM Codeigniter - Google map Implementation - by El Forum - 02-14-2012, 03:39 AM Codeigniter - Google map Implementation - by El Forum - 02-14-2012, 11:53 AM