Android Question How to change icon whith OSMDROID library

gragey

Member
Licensed User
Longtime User
Hello
I want to change "person" icon by "direction_arrow" icon when i use OSMdroid library : SimpleLocationOverlay1.SetMyLocation3(MapPanel.GetCenter).
I try to change the .PNG file in directory : objects\res\drawable-nodpi but whitout success. Pegman is always here !!!

Thank you for your response

Gilles
 

gragey

Member
Licensed User
Longtime User
Thank you Erel, but the file is set to read-only.
I finally use "MarkersFocusOverlay" instead of "SimpleLocationOverlay"
and the result is OK for me.
 
Upvote 0

PABLO2013

Active Member
Licensed User
Longtime User
open jar file .....OSMDroid_4_1.jar\org\osmdroid\direction_arrow.png

you have to look for an image of equal size in which the center is in the diagonals, if not displaced

PERSON =Point(24, 39) esto ocurre en SimpleLocationOverlay


you must search or fit both images because they are different sizes and different centers so that the center does not move
 

Attachments

  • direction_arrow.png
    direction_arrow.png
    2.7 KB · Views: 188
  • person.png
    person.png
    1.7 KB · Views: 203
  • final.png
    final.png
    2.7 KB · Views: 201
Last edited:
Upvote 0
Top