Struct googleprojection::Mercator [] [src]

pub struct Mercator { /* fields omitted */ }

Methods

impl Mercator
[src]

Create a new Mercator with custom tile size. Tile sizes must be a power of two (256, 512, and so on).

Projects a given LL coordinate at a specific zoom level into pixel screen-coordinates.

Zoom level is between 0 and 29 (inclusive). Every other zoom level will return a None.

Projects a given pixel position at a specific zoom level into LL world-coordinates.

Zoom level is between 0 and 29 (inclusive). Every other zoom level will return a None.

Trait Implementations

impl Default for Mercator
[src]

Returns the "default value" for a type. Read more