AnsweredAssumed Answered

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

Question asked by mlemus on Aug 26, 2016

For this EXCELLENT video Programming in PI Web API (Programming in PI Web API Discussion Forum ), 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 = 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();