Update mapviewgl.js

This commit is contained in:
roblevesque 2016-08-20 21:40:47 -04:00 committed by GitHub
parent fa35c6e1eb
commit f7afcdeb66

View File

@ -307,7 +307,7 @@ function calcDist(pointa, pointb) {
return distance;
}
function grabPositionByName(name) { return scene.getObjectByName(name).position; }
function grabPositionByName(name) { return scene.getObjectByName(name.split('@')[name.split('@').length-1]).position; }
function calcEndpointByHeading(heading,startvec = new THREE.Vector3(0,0,0)) {