Javascript - EMAPI API - Pasting an array into an object
<p>I've got this EMAPI API for my script, and two arrays of latitudes and longtitudes from which a line should be drawn. Theres an api function for this:</p>

<pre><code>obj.push(new EMAPI.Object.PolylineObject({name:'lamana_1', label: 'Łamana 1', labelVisible: true, labelXOffset:-10, labelYOffset:-20, fontSize: 16, fontFamily: 'arial', fontColor:'#339933', lonLat:[new EMAPI.LonLat(19.457817, 51.759553), new EMAPI.LonLat(19.447817, 51.749553), new EMAPI.LonLat(19.453817, 51.744553)]}));
</code></pre>

<p>Specifically I'm concerned with this part:</p>

<pre><code>lonLat:[new EMAPI.LonLat(19.457817, 51.759553), new EMAPI.LonLat(19.447817, 51.749553), new EMAPI.LonLat(19.453817, 51.744553)]
</code></pre>

<p>How do I pass the lons and lats from the mentioned arrays in here? They all have to be in this object for a line to be drawn. I tried nesting a for loop but it gave me nothing.</p>
