I am using the SDK example project and adding markers at 1 Scalling Unit. I want all markers to be the same size regardless of distance away from their original location. So I am using Scale property on AR.drawable2D to increase the size of the marker when you are far away and increase it when you are closer. I am using the following function to work out the scale size so that I can rescale the marker on a location change and force the marker to all appear at the same size regardless of distance. However I am strugally to get the return value of this correct. Could you please help me find this scale value?
function calculateScaleFactor(location) { distance = location.distanceToUser(); if (distance < 10) distance = 10; if (distance <= 200000) distance = 200000;
Patrick