0

Okay so i am trying to reduce the speed of zoom in osmdroid. Currently the using the function

setzoom(int zoomlevel)

the zoom speed is set at 500 milliseconds. Is it possible to increase the speed so that i can get an effect of a gradual zoom towards the marker?

scai
  • 20,297
  • 4
  • 56
  • 72
  • What do you mean with open street maps? Which library do you use? – mbo Aug 03 '17 at 11:16
  • This one https://github.com/osmdroid/osmdroid and this one also https://github.com/MKergall/osmbonuspack – KingintheNorth Aug 03 '17 at 11:17
  • 2
    I don't think there is a way to specify a duration yet, so you may open an issue/feature request there https://github.com/osmdroid/osmdroid/issues – mbo Aug 03 '17 at 11:43

1 Answers1

0

Current source code of osmdroid still uses static final variable ANIMATION_DURATION_SHORT. Value is located in MapViewConstants class.

You can fork the library and than build your own version with changed value. You can change the value using java reflection. But I would not recommend any of those solutions.

Josef Adamcik
  • 5,620
  • 3
  • 36
  • 42