1
0
Fork 0
forked from 0x2620/oxjs

update examples

This commit is contained in:
rolux 2012-05-27 21:37:00 +02:00
commit 7240cf2c38
2 changed files with 7 additions and 8 deletions

View file

@ -211,7 +211,7 @@ Ox.load('Image', function() {
Before we start drawing, we define a few helper functions.
<code>getXYByLatLng</code> returns screen coordinates for a given point.
We use Ox.getXYByLatLng, which takes a lat/lng pair and returns its x/y
position on a 1x1 Mercator position, with <code>{x: 0, y: 0}</code> at the
position on a 1×1 Mercator position, with <code>{x: 0, y: 0}</code> at the
bottom left and <code>{x: 1, y: 1}</code> at the top right.
*/
function getXYByLatLng(point) {
@ -221,7 +221,8 @@ Ox.load('Image', function() {
}
/*
<code>getLatLngByXY</code> is just the inverse, just like Ox.getLatLngByXY.
<code>getLatLngByXY</code> is the inverse of the above, just like
Ox.getLatLngByXY.
*/
function getLatLngByXY(xy) {
return Ox.getLatLngByXY(Ox.map(xy, function(v) {