[OpenLayers-Users] populate vector layer from json response
Phil Scadden
p.scadden at gns.cri.nz
Mon Jun 20 22:13:35 EDT 2011
I have no idea what the object returned by twitter is but surely, but if
you are using jsonp, then
have in your code something like:
jsonp_function(json)
where jsonp_function is the name of jsonp callback and json is the
returned object. I would guess it contains an array of feature type
objects, so you would iterate through the array, creating feature for
each row, and calling vectorLayer.addFeatures(features) to add them to
the vector layer.
Notice: This email and any attachments are confidential. If received in error please destroy and immediately notify us. Do not copy or disclose the contents.
More information about the Users
mailing list