scaleAt

fun scaleAt(geographicCoordinate: GeographicCoordinate): Double

This function computes a map vector where each dimension is the length of a metre at the map point the given coordinates project into. The average of the magnitude in the x & y direction of the resulting vector is computed which is returned as the scale.

The resulting vector can be used to efficiently estimate distances directly on the map, such as for displaying a bar scale.

Return

The scale at the provided geographic coordinate.

Parameters

geographicCoordinate

The geographic coordinate to compute the scale at.