AGSPictureMarkerSymbol rotate / angle without effect

2950
6
12-07-2010 04:53 AM
ManfredReinart
New Contributor
Hello,

I am trying to place a PictureMarkerSymbol with a given rotation angle on to of line objects with a given slope. Objective is to place the PictureMarkerSymbol orthogonally to the axis of the line.

So far I did not manage to achieve any effect.
Setting the angle attribute of the PictureMarkerSymbol before creating a graphic based on the symbol does not have any effect.

AGSPictureMarkerSymbol *pms = [AGSPictureMarkerSymbol  pictureMarkerSymbolWithImageNamed:@"picturename.png"];
pms.angle = 45.0;

Did anyone already manage to achieve this using ArcGIS IOS SDK 1.0?

Same for SimpleMarkerSymbol

    AGSSimpleMarkerSymbol *markerSymbol = [AGSSimpleMarkerSymbol simpleMarkerSymbol];
    markerSymbol.color = [UIColor yellowColor];
    markerSymbol.size  = 17;
    markerSymbol.style = AGSSimpleMarkerSymbolStyleDiamond;

    markerSymbol.angle = (CGFloat)30.0;

Setting angle has no effect.

Best Regards
Manfred
0 Kudos
6 Replies
JeffPapirtis
New Contributor III
I am having a similar issue with the xoffset & yoffset.

I have set up my symbol as Follows:
AGSSymbol* symbol = [AGSPictureMarkerSymbol pictureMarkerSymbolWithImageNamed:@"Redpin.png"];

symbol.xoffset = 10;
symbol.yoffset = 10;

Has anyone figured this out?

Thanks.
0 Kudos
MiriEshel
New Contributor III
Hi,

I have the same problem with AGSSimpleMarkerSymbol. The angle does not affect the symbol.
Did anyone figure it out?

Thanks,
Miri

Miri Eshel,
Systematics LTD.
Israel
0 Kudos
NimeshJarecha
Esri Regular Contributor
Unfortunately, at this time we can not set the angle of simple and picture marker symbols. This is a known issue.

Thanks for reporting!

Regards,
Nimesh
0 Kudos
MiriEshel
New Contributor III
Hi Nimesh,

Thank you for your reply.

As far as I understand, the ArcGIS for iOS application does show a small arrow from the GPS location to the target while driving. I wonder how it is implemented there without rotating the symbol.

Thanks again,
Miri
0 Kudos
MiriEshel
New Contributor III
Hi,

Does AGSSimpleMarkerSymbol can refer the angle property in version 2.0.1 ?

Thanks,
Miri
0 Kudos
NimeshJarecha
Esri Regular Contributor
Yes!

Regards,
Nimesh
0 Kudos