i'm trying to port functionality from Google maps flex API to arcGIS flex API (not the viewer) that loads panoramio photos within a given map extent. panoramio doesn't have a "proper" crossdomain policy file, so i gather the photos thru a proxy. works fine.
my problem is creating a PictureMarkerSymbol w/an image. creating one w/the direct URL throws security sandbox errors & in the google maps approach (via a loader) returns null content.
protected function createPanoramioMarker(panoramioData:Object):Graphic {
var thisGraphic:Graphic=new Graphic();
var imgURL:String=panoramioData.photo_file_url;
var loadThumbnail:Loader=new Loader();
loadThumbnail.load(new URLRequest(imgURL));
thisGraphic.geometry=WebMercatorUtil.geographicToWebMercator(new
MapPoint(panoramioData.longitude,panoramioData.latitude));
thisGraphic.symbol=new PictureMarkerSymbol(loadThumbnail);
thisGraphic.toolTip=panoramioData.photo_title;
return thisGraphic;
}
appreciate any ideas, even "do it another way".
thanks.