Select to view content in your preferred language

Flash Player 11 - PictureFillSymbol problem?

913
6
10-11-2011 02:28 AM
RichardBetts
Deactivated User
Hi,

I have a graphics layer which uses a PictureFillSymbol as the graphic symbol.
I've noticed this layer does not display properly after upgrading to Flash Player 11.
I initially thought this may be due to the way I was embedding the image but I realise the PictureFillSymbol still does not work if I don't specify a sourceat all (and therefore use the default blue pin).

Has anyone else noticed this?  Am I doing anything wrong?

Heres my Graphics Layer....

Thanks

<esri:GraphicsLayer  alpha="0.2">
  <esri:Graphic>
<esri:geometry>
     <esri:Polygon>
  <fx:Array>
   <fx:Array>
   <esri:MapPoint x="0" y="400000"/>      
   <esri:MapPoint x="0" y="1400000"/>   
   <esri:MapPoint x="550000" y="1400000"/>   
   <esri:MapPoint x="550000" y="400000"/>   
   </fx:Array>
  </fx:Array>
</esri:Polygon>
       </esri:geometry>
<esri:symbol>
              <esri:PictureFillSymbol/>
        </esri:symbol>
</esri:Graphic>
</esri:GraphicsLayer>
Tags (2)
0 Kudos
6 Replies
MehulChoksey
Esri Contributor
PictureFillSymbol doennt have defaultimage. So nothing would display if you specify PictureFillSymbol with out image.
Could you try couple of things:
1. Removing PictureFillSymbol tag altogether? polygon with default SimpleFillSymbol should be displayed. If not then it means something wrong with Coordinates of polygon.
2. Do you have flash player 11 - debug version?
3. With your existing sample, could you use firebug /httpproxy/fiddler to see if you are having security sandbox violation for accessing image?

Mehul
0 Kudos
RichardBetts
Deactivated User
Thanks for your reply.

I may be failing to understand the API docs, but the docs do suggest that PictureFillSymbol has a default and if I remove the source property from my code a blue push pin does infact display (in earlier versions of flash player).

I've checked and the polygon is displaying correctly if I remove the PictureFillSymbol altogether.

The image I am trying to use is embedded, so I dont think it can be a security sandbox problem accessing the image?

I should have been more clear. The PictureFillSymbols appear perfectly in Firefox with Flash Player 10, but the same map does not display the symbols in IE with Flash Player 11. Instead I get a bunch of vertical coloured lines as I pan and zoom the map.
0 Kudos
MehulChoksey
Esri Contributor
Thanks for reporting this bug. I am able to reproduce this issue. bug has been filed to investigate further.

Mehul
0 Kudos
SarthakDatt
Frequent Contributor
Hey Richard,

This issue will be fixed in the next release of the api. In the meantime you can try this workaround:

<esri:GraphicsLayer alpha="0.2"> 
<esri:Graphic>
<esri:geometry>
<esri:Polygon>
<fx:Array>
<fx:Array>
<esri:MapPoint x="0" y="400000"/> 
<esri:MapPoint x="0" y="1400000"/> 
<esri:MapPoint x="550000" y="1400000"/> 
<esri:MapPoint x="550000" y="400000"/> 
</fx:Array>
</fx:Array>
</esri:Polygon>
</esri:geometry>
<esri:symbol>
<esri:PictureFillSymbol angle="0.001"/> <!-- any value greater than 0, would do -->
</esri:symbol>
</esri:Graphic>
</esri:GraphicsLayer>
0 Kudos
RichardBetts
Deactivated User
Thanks for the reply.
I had managed to find a way to avoid using PictureFillSymbol but I have just checked your solution and I can confirm it does indeed solve the problem.

Thank You.
0 Kudos
BinbinWang
Emerging Contributor
hi�?I have the same problem as you .
Can you help me ?
look at here,please. http://forums.arcgis.com/threads/83311-About-PictureFillSymbol

And do you have any ideas to draw a Bitmap on the map ?
0 Kudos