Select to view content in your preferred language

MapImage Bug!!

3668
4
03-27-2013 07:26 PM
by Anonymous User
Not applicable
Original User: nonzerogis_cwd

Mapimage added to the mapimagelayer on the map ,when zooming in ,the map's level > 8 (scale 1�?1155581),the flash player crashed.
flex 4.6, flex api 3.2, browser IE/Chrome/firefox,latest flash player.
thanks
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
      xmlns:s="library://ns.adobe.com/flex/spark"
      xmlns:esri="http://www.esri.com/2008/ags"
      pageTitle="Adding mapimage using MXML and/or ActionScript">
 
 <s:layout>
  <s:VerticalLayout horizontalAlign="center" paddingTop="3"/>
 </s:layout>
 
 <fx:Script>
  <![CDATA[
   import com.esri.ags.geometry.Extent;
   import com.esri.ags.geometry.MapPoint;
   import com.esri.ags.geometry.WebMercatorExtent;
   import com.esri.ags.layers.MapImageLayer;
   import com.esri.ags.layers.supportClasses.MapImage;
   import com.esri.ags.utils.WebMercatorUtil;
   
   private var miLayer:MapImageLayer;
   private var mapimage:MapImage;
   private var allextent:Extent;
   
   protected function btn_clickHandler(event:MouseEvent):void
   {
    // TODO Auto-generated method stub
    
    miLayer  = new MapImageLayer();
    myMap.addLayer(miLayer);
    mapimage  = new MapImage();
    var minmp:MapPoint=new MapPoint(65,0.0152502208948135,myMap.spatialReference);
    var maxmp:MapPoint=new MapPoint(155.112022906542,60,myMap.spatialReference);
    minmp=WebMercatorUtil.geographicToWebMercator(minmp)as MapPoint;
    maxmp=WebMercatorUtil.geographicToWebMercator(maxmp)as MapPoint;
    allextent=new Extent(minmp.x,minmp.y,maxmp.x,maxmp.y,myMap.spatialReference);
    mapimage.extent=allextent;
    mapimage.source = "assets/images/myimage.png";
    miLayer.add(mapimage);
    miLayer.visible = true;
   }
   
  ]]>
 </fx:Script>
 <s:Label width="100%" text="This sample demonstrates adding mapimage to the map.  When mapimage added on the mapimagelayer the map's level > 8 (scale 1�?1155581),the flash player has crashed"/>
 <s:Button id="btn"
     click="btn_clickHandler(event)"
     label="Add MapImages using ActionScript"/>
 <esri:Map id="myMap"
     level="2"
     wrapAround180="true">
  <esri:ArcGISTiledMapServiceLayer url="http://server.arcgisonline.com/ArcGIS/rest/services/World_Street_Map/MapServer"/>
  
 </esri:Map>
</s:Application>

assets/images/myimage.png:[ATTACH=CONFIG]23024[/ATTACH]
0 Kudos
4 Replies
by Anonymous User
Not applicable
Original User: stevemclesri

I'm seeing similar crashes, I'm running Apache Flex SDK 4.9.1, arcgis flex api 3.2, IE browser.
It seems to crash more often when you are centered on the image and zoom in.
Thanks!
0 Kudos
ZhaoSiliang
New Contributor
I also encountered the same problem�?when I have been magnified �?zoom in, the web page crashed;
We hope to fix this bug as soon as possible
0 Kudos
by Anonymous User
Not applicable
Original User: yann.cabon

Hi,

Please try the newest 3.5 release. It has been fixed 🙂
0 Kudos
stevemclaughlin
Occasional Contributor
Yes, that works!!!   thanks a bunch.


Hi,

Please try the newest 3.5 release. It has been fixed 🙂
0 Kudos