moralexluis

Help! How can I measure the distance between points

Discussion created by moralexluis on Aug 20, 2010
Latest reply on Aug 26, 2010 by moralexluis
Hi, everyone

I'm having this problem, I have 2 layers let's say I have this situation:
Layer A:
Point1
Point2
Point3
Point4

Layer B:
Point1
Point2
Point3
Point4

The Points of the two layers are related this way:
A.Point1 connected to B.Point1 
A.Point2 connected to B.Point2 
A.Point3 connected to B.Point3 
A.Point4 connected to B.Point4 

How can I measure their distance between each other using the JavaScript API , If each point is in a different layer.
Please If you have some code I can use I will thank you so much!


Alex

Outcomes