Closed codebling closed 8 years ago
If leafletPip.bassackwards is true, then the passed point is reversed in-place, which is a little rude.
leafletPip.bassackwards = true; p=[45.51, -73.59]; leafletPip.pointInLayer(p, map.featureLayer, true); //now p=[-73.59, 45.51]; leafletPip.pointInLayer(p, map.featureLayer, true); //now p=[45.51, -73.59];
Bassackwards is bassackwards, but rude is rude. This change creates a copy of p before reversing it, such that in the example above, p would not be changed.
Tests pass 10/10.
:+1: thx
If leafletPip.bassackwards is true, then the passed point is reversed in-place, which is a little rude.
Bassackwards is bassackwards, but rude is rude. This change creates a copy of p before reversing it, such that in the example above, p would not be changed.
Tests pass 10/10.