Get the optimal map resolution for a print scale and a map size.
The optimal map resolution.
Size of the map on the screen (px).
Size of the map on the paper (dots).
Map scale on the paper.
Get the optimal print scale for a map, the map being defined by its size (in pixels) and resolution (in map units per pixel).
The best scale. -1
is returned if there is no optimal
scale, that is the optimal scale is lower than or equal to the first value
in printMapScales
.
Size of the map on the screen (px).
Resolution of the map on the screen.
Size of the map on the paper (dots).
Supported map scales on the paper.
The scales are provided as scale denominators, sorted in ascending order.
E.g. [500, 1000, 2000, 4000]
.
Generated using TypeDoc
Get the coordinates of the bottom left corner of the printed map.
Returns
The coordinates of the bottom left corner.