ru.dgis.sdk.map.LogicalPixel | Android SDK | 2GIS Documentation

LogicalPixel

Pixel which size does not depend on screen density.

1 logical pixel equals 1/(base ppi) of an inch. The base PPI is device-specific and is calculated from the DevicePpi/DeviceDensity ratio. DevicePpi and DeviceDensity are set with the OS via the map interface. For Android, LogicalPixel corresponds to dp, for iOS - to point.

LogicalPixel(value: Float = 0.0f)

Pixel which size does not depend on screen density.

1 logical pixel equals 1/(base ppi) of an inch. The base PPI is device-specific and is calculated from the DevicePpi/DeviceDensity ratio. DevicePpi and DeviceDensity are set with the OS via the map interface. For Android, LogicalPixel corresponds to dp, for iOS - to point.

Parameters
value
Returns
Properties