Hi all,<div><br></div><div>I&#39;m (now) successfully pulling a json response from the twitter API using jquery&#39;s $.getJSON but I&#39;m unsure of how to read the json response into a Layer.Vector. My guess is that this could be achieved through either the script or http protocols, or through a filter strategy, but I&#39;m not sure how to implement this, where I get hazy is the third function below. Suggestions?</div>
<div><br></div><div><div>function acquireTweets(){</div><div>$.getJSON(createTWTsrcURL(), function(data){</div><div>if(data.results)</div><div>$.each(data.results, function(i, tweet){</div><div>if (tweet.geo || tweet.location)</div>
<div>tweetsQ.push(tweet);</div><div>});</div><div>refreshQuery = data.refresh_url;</div><div>});</div><div>}</div><div><br></div><div>function parseTweetsQ(){</div><div>if (tweetsQ.length &gt; 0) {</div><div>var tweet = tweetsQ.pop();</div>
<div>if (tweet.geo){</div><div>tweet.latlng = new OpenLayers.LonLat(tweet.geo.coordinates[0],tweet.geo.coordinates[1]);</div><div>plotTwt(tweet);}}}</div></div><div><div><br></div><div>function plotTwt(tweet){</div><div>map.addLayer(tweetz);</div>
<div>tweet.marker = new OpenLayers.Feature.Vector(new OpenLayers.Geometry.Point(tweet.latlng).transform(new OpenLayers.Projection(&quot;EPSG:4326&quot;),map.getProjectionObject()));</div><div>alert(tweet.marker);</div><div>
tweetz.addFeatures(tweet.marker);</div><div>}</div></div>