You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Repository navigation
This repository was archived by the owner on Aug 8, 2023. It is now read-only.
Document units for MyLocationViewSettings.setPadding() #6765
Currently, the documentation for MyLocationViewSettings.setPadding(int left, int top, int right, int bottom) says the following:
Set the MyLocationView padding.
Parameters:
left - the padding left of MyLocationView
top - the padding top of MyLocationView
right - the padding right of MyLocationView
bottom - the padding bottom of MyLocaionView
(also, note the typo in that last MyLocaionView).
The documentation doesn't say the units for these parameters, let's add it. This is confusing, for example, because if we set a padding like:
we divide the padding immediately by 2 when setting, this is needed for correctly calculating the center point for tilt offset later on but is now also taking into account when caculating location on screen. Workaround for now is doubling the value.
Activity
tobrun commentedon Oct 20, 2016
we divide the padding immediately by 2 when setting, this is needed for correctly calculating the center point for tilt offset later on but is now also taking into account when caculating location on screen. Workaround for now is doubling the value.
tobrun commentedon Aug 14, 2017
MyLocationView is going to be replaced with LocationLayer.