0 Replies Latest reply on Aug 26, 2016 1:46 PM by mlemus

    piwebapi-js-streetview video using possibly deprecated position.L and position.H properties (should be position.lat() and position.lng()

    mlemus

      For this EXCELLENT video Programming in PI Web API (Programming in PI Web API ), at the video chapter: Writing Values to AF Attributes, in the sendValuesToPI function, the newValue.Value = panorama.position.L and newValue.Value = panorama.position.H statements, should be newValue.Value = panorama.position.lat() and newValue.Value = panorama.position.lng(), respectively.

      It took me a while to figure this out (me amateur), and I actually used this work-around, until I reviewed the code on GitHub: newValue.Value = $("#latitude").text(); and newValue.Value = $("#longitude").text();