开发者

How to position the marker to the correct position?

开发者 https://www.devze.com 2023-03-14 09:29 出处:网络
As you can see on my screenshot, the marker is placed beside of the correct coordinate position, how to make it placed on the correct position (in the center of the circle) ?

How to position the marker to the correct position?

As you can see on my screenshot, the marker is placed beside of the correct coordinate position, how to make it placed on the correct position (in the center of the circle) ?

in my code :

Drawable icon = getResources().getDrawable(R.drawable.marker);
icon.setBounds(0, 0, icon.getIntrinsicWidth(), icon.getIntrinsicHeight());

are the values on the setBounds() are the pos开发者_高级运维itions that i should change to move the marker? i've tried it but nothing changes so, how to fix the position?

thanks

i love stackoverflow, hehe :D


Maybe this will help, as I don't know how you are implementing it: http://developer.android.com/guide/tutorials/views/hello-mapview.html

0

精彩评论

暂无评论...
验证码 换一张
取 消

关注公众号