How to get a picture of a custom layer and rotate it in ArcGis for Android

Source: Internet
Author: User

============ Problem Description ============


RT, in the Graphicslayer custom layer, there is a picture that can now get to the phone's rotation angle and then rotate that picture according to the angle. Now only remove the graphicslayer after the rotation of the image to add to the map, so it will be very incoherent, not up to Baidu map rotation effect, ask the great God how to solve?

============ Solution 1============


bitmapdrawable bd = new bitmapdrawable (Context.getresources (). Openrawresource (R.drawable.main_icon_nav));
Picturemarkersymbol Arrow_symbol = new Picturemarkersymbol (BD);
Arrow_symbol.setangle (bearing); Angle
Graphic GArrow = new Graphic (p, Arrow_symbol);
Mgraphicslayer.updategraphic (sUid, graphic);

How to get a picture of a custom layer and rotate it in ArcGis for Android

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.