Bad PictureMarkerSymbol size on a Map

02-28-2013 02:01 PM
New Contributor

I have a problem with PictureMarkerSymbol size which is showed on a map. I don't know why, but graphic on a map has double size. My code is:

Drawable icon = mContext.getResources.getDrawable(R.drawable.icon);
PictureMarker pictureMarker = new PictureMarker(icon);
//add to a GraphicLayer
Point p = new Point(longitude, latitude);
Point point = (Point) GeometryEngine.project(p, wgsReference, mapReference);
Symbol symbol = pictureMarkerSymbol;
HashMap<String, Object> attrMap = new HashMap<String, Object>();
attrMap.put(ArcgisMapActivity.ATTR_TITLE, title);
attrMap.put(ArcgisMapActivity.ATTR_ID, id);

Graphic graphic = new Graphic(point, symbol, attrMap, null);

Thanks for any ideas
0 Kudos
2 Replies
New Contributor II
I have the same problem. Did you resolve it? Works fine on Samsung Ace IIx IceCreamSandwich, but the icon is twice the size on a Galaxy SIII JellyBean.

0 Kudos
New Contributor II
I resolved this issue by putting the image in the drawable-nodpi folder.
0 Kudos