Select to view content in your preferred language

some exception with MapImageLayer!

2648
1
02-01-2012 06:03 AM
huhu
by
New Contributor
i use MapImageLayer just like that:
var data:Object = locations[index];
var buttomPoint:MapPoint = WebMercatorUtil.geographicToWebMercator(new MapPoint(data.lngButtom,data.latButtom)) as MapPoint
var topPoint:MapPoint = WebMercatorUtil.geographicToWebMercator(new MapPoint(data.lngTop,data.latTop)) as MapPoint
mapImage = new MapImage();
mapImage.extent = new Extent(buttomPoint.x, buttomPoint.y, topPoint.x, topPoint.y, new SpatialReference(3857));
mapImage.href = UrlUtils.getCompletedUrl(data.fileName);
mapImageLayer.removeAll();
mapImageLayer.add(mapImage);

and when i drag the map , the image will change the extent.

        p1-------p2                              
         |---------|                                
         |---------|      after draging   p1 have not change,but p2,p3,p4 is lest than what before draging
        p4-------p3

who can tall me what is wrong with it?  thank you!
Tags (2)
0 Kudos
1 Reply
SinsongLew
New Contributor
i am confused by the same problem, any suggestion is good. thx.
0 Kudos