Function googleprojection::from_ll_to_pixel
[−]
[src]
pub fn from_ll_to_pixel<T: Coord>(ll: &T, zoom: usize) -> Option<T>
Projects a given LL coordinate at a specific zoom level into pixel screen-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 pixel = googleprojection::from_ll_to_pixel(&(13.2, 55.9), 2).unwrap(); assert_eq!(pixel.0, 550.0); assert_eq!(pixel.1, 319.0);Run