troubleshooting Question


Avatar of Cybervanes
Cybervanes asked on
Adobe FlashGIS/GPS Programming
8 Comments1 Solution502 ViewsLast Modified:
I have multiple points on a Google map that i need to pinpoint.

How would i find the two points that are farthest away from each other so my map centers an zooms accordingly?

Thanks in advance!
// AS3
var listings = "39.170147, -108.723128 |  39.019184, -108.544922 | 39.1046810,-108.5621000 | 37.3960539,-108.6274138 | 38.4783198,-107.8761738 | 38.2183239,-108.5687033 | 38.7422062,-108.0689582";
var listings_array = listings.split(" | ");
// this function gets the center between two point A lat lng and point B //  
var bounds:LatLngBounds = new LatLngBounds(    new LatLng(A_Lat,A_Long),    new LatLng(B_Lat,B_Lng));

Our community of experts have been thoroughly vetted for their expertise and industry experience.

Join our community to see this answer!
Unlock 1 Answer and 8 Comments.
Start Free Trial
Learn from the best

Network and collaborate with thousands of CTOs, CISOs, and IT Pros rooting for you and your success.

Andrew Hancock - VMware vExpert
See if this solution works for you by signing up for a 7 day free trial.
Unlock 1 Answer and 8 Comments.
Try for 7 days

”The time we save is the biggest benefit of E-E to our team. What could take multiple guys 2 hours or more each to find is accessed in around 15 minutes on Experts Exchange.

-Mike Kapnisakis, Warner Bros