May 2019
Beginner to intermediate
650 pages
14h 50m
English
A projected map has two centers: the geographical center is expressed in [longitude,latitude] and determines the point in the map that will be aligned with the other center, the viewport center, expressed in [x,y] pixel coordinates. The geographical center is controlled by the center() method, and defaults to [0°,0°], which is where the prime meridian crosses the equator. The viewport center is controlled by the translate() method, and defaults to [480,250], which is the center of the default 900x500 viewport.The centers are always connected, that is, the default location [0°,0°] is shown at the default position [480,250], which is the center of the viewport. If you change the viewport center ...
Read now
Unlock full access