Function googleprojection::from_pixel_to_ll
[−]
[src]
pub fn from_pixel_to_ll<T: Coord>(px: &T, zoom: usize) -> Option<T>
Projects a given pixel position at a specific zoom level into LL world-coordinates using a default tile size of 256.
Zoom level is between 0 and 29 (inclusive). Every other zoom level will return a None
.
extern crate googleprojection; let ll = googleprojection::from_pixel_to_ll(&(78.0, 78.0), 12).unwrap(); assert!((ll.0 - -179.9732208251953).abs() < 1e-10); assert!((ll.1 - 85.04881808980566).abs() < 1e-10);Run