Appolica / InteractiveInfoWindowAndroid

Library project, developed and maintained by Appolica, offering an interactive info window for Google maps on Android.
249 stars 56 forks source link

Marker spec height issue on a custom icon marker #1

Closed kheldiente closed 8 years ago

kheldiente commented 8 years ago

Hi, I have an issue in regards to setting marker spec height on a custom icon marker. Values i use is 20 for the width and 170 on height. It's not setting though to a specif height i want. Testing it on asus zenfone 2 5.5 laser and samsung edge. Please see screenshot. Both runs in marshmallow

Samsung - where i want to set the window samsung_marker_spec_height_issue

Asus screenshot - wrong asus_marker_spec_height_issue

Appreciate your help. Thanks!

bkolarov-appolica commented 8 years ago

Hi, Thanks for using our lib! Are you setting these values directly through code, without any conversion? You shoud use dp values, not exact numbers.

The marker dimensions are used as an offset. If you pass the exact height of the marker, the InfoWindow will be placed right above it. (I thought it will be good if I mention that)

Please let me know if the problem was not using dp or something else. Good luck!

kheldiente commented 8 years ago

Hi, I was indeed setting the values through code. My bad. Getting the dp values of the drawble did it. Thanks a lot. Kudos!

On Fri, Oct 7, 2016 at 6:50 AM, bkolarov-appolica notifications@github.com wrote:

Hi, Thank for using our lib! Are you setting these values directly through code, without any conversion? You shoud use dp values, not exact numbers.

The marker dimensions are used as an offset. If you pass the exact height of the marker, the InfoWindow will be placed right above it. (I thought it will be good if I mention that)

Please let me know if the problem was not using dp or something else. Good luck!

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/Appolica/InteractiveInfoWindowAndroid/issues/1#issuecomment-252214673, or mute the thread https://github.com/notifications/unsubscribe-auth/ALR4om7zHTfK_VpDzebc22EgJMiIdMSZks5qxiQQgaJpZM4KQpo6 .

bkolarov-appolica commented 8 years ago

Glad we helped.