Select to view content in your preferred language

Flex API 2.5 - PictureMarkerSymbol load swf  bug

2301
7
02-16-2012 10:30 PM
by Anonymous User
Not applicable
Original User: tianbaowen

The appears to be a bug in PictureMarkerSymbol loading swf for version 2.5 of the Flex API.

In version 2.5�?When PictureMarkerSymbols (a swf file, a png file) are superimposed on a graphicsLayer with the same point, the two pictures location of the gap seems to be very far and the location of the swf is not correct.As the map zoom, the relative position of the two symbols changes.Is this a BUG?
[ATTACH=CONFIG]12033[/ATTACH]
0 Kudos
7 Replies
by Anonymous User
Not applicable
Original User: tianbaowen

here is the png and swf files
0 Kudos
RobertScheitlin__GISP
MVP Emeritus
Tian,

   Here is a post referencing the bug and a workaround:

http://forums.arcgis.com/threads/16704-PictureMarkerSymbol-with-SWF-not-visible-until-Map-zoomed?p=5...

Don't forget to click the Mark as answer check and to click the top arrow (promote) as shown below:
0 Kudos
by Anonymous User
Not applicable
Original User: tianbaowen

Tian,

   Here is a post referencing the bug and a workaround:

http://forums.arcgis.com/threads/16704-PictureMarkerSymbol-with-SWF-not-visible-until-Map-zoomed?p=5...

Don't forget to click the Mark as answer check and to click the top arrow (promote) as shown below:


It's not the same bug.when I  used the swf with the default size,it didn't work yet.The locations of the swf and png are still not in the same place.
0 Kudos
KamilSzukalski
Deactivated User
Hi tianbaowen,
I have got the same problem as you with zooming swf files. With pngs however everything works correctly, but swfs are misplaced after performing zoom in our zoom out. Did you find any workaround for it ?
0 Kudos
by Anonymous User
Not applicable
Original User: szakalszaleniec

Ok, I have figured out why ArcGIS API for Flex has got sometimes problems with swfs as PictureMarkerSymbol. Everything depends on dimensions of swfs. When its canvas in Flash/Illustrator is exactly a bounding box of graphics in that swf, there is no problem at all with giving swf as PictureMarkerSymbol. The problem starts when we have got content of let's say 16px by 16px and canvas is of about 200px by 200px. After supplying swf as PictureMarkerSymbol, API centers it automatically - so even if you had your origin point in top left corner of swf, you do not have to offset in xy that icon - it is done automatically. This is the main reason why during zooming in/out of swf with wrong canvas dimensions, one can see that symbol is changing position 🙂 The center of swf is always in the correct place of MapPoint but due to centering, it still has to draw empty pixels in swf 🙂 I hope it will help others 🙂

Long story short - swf size must be exactly the same as the bounding box area of content 🙂
0 Kudos
by Anonymous User
Not applicable
Original User: bjorn

I have got the same problem as you with zooming swf files.


Kamil, are you also using version 2.5?  If not, which version are you using?
0 Kudos
KamilSzukalski
Deactivated User
I am using ArcGIS Flex API 3.6 (December 2013)

https://developers.arcgis.com/flex/
0 Kudos