Bad PictureMarkerSymbol size on a Map

3015
2
02-28-2013 02:01 PM
MichalMátl
New Contributor
Hello,

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
VincentThomas
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.

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