retinaMode property
If true
, it will request four tiles of half the specified size and a
bigger zoom level in place of one to utilize the high resolution.
If true
then MapOptions's maxZoom
should be maxZoom - 1
since
retinaMode just simulates retina display by playing with zoomOffset
. If
geoserver supports retina @2
tiles then it it advised to use them
instead of simulating it (use {r} in the urlTemplate)
It is advised to use retinaMode if display supports it, write code like this:
TileLayerOptions(
retinaMode: true && MediaQuery.of(context).devicePixelRatio > 1.0,
),
Implementation
final bool retinaMode;