diff --git a/examples/flight_paths/js/example.js b/examples/flight_paths/js/example.js index f41f7dcd..9d174f66 100644 --- a/examples/flight_paths/js/example.js +++ b/examples/flight_paths/js/example.js @@ -51,7 +51,7 @@ Ox.load('Image', function() { /* Ox.getXYByLatLng takes a lat/lng pair and returns its x/y position on a - 1x1 Mercator position, {x: 0, y: 0} being the bottom left, + 1×1 Mercator position, {x: 0, y: 0} being the bottom left, {x: 1, y: 1} being the top right. */ function getXY(point) { @@ -87,12 +87,10 @@ Ox.load('Image', function() { parts[0].push({lat: lat, lng: lng[0]}); parts[1].unshift({lat: lat, lng: lng[1]}); /* - Returning false from Ox.loop is the equivalent of - break in a for loop. Again, note - that this assumes no path will cross the edge more than - once. + Ox.Break() breaks the loop. Again, note that this assumes no + path will cross the edge more than once. */ - return false; + Ox.Break(); } }); /* diff --git a/examples/manhattan_grid/js/example.js b/examples/manhattan_grid/js/example.js index e5e825db..c9035741 100644 --- a/examples/manhattan_grid/js/example.js +++ b/examples/manhattan_grid/js/example.js @@ -211,7 +211,7 @@ Ox.load('Image', function() { Before we start drawing, we define a few helper functions. getXYByLatLng 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 {x: 0, y: 0} at the + position on a 1×1 Mercator position, with {x: 0, y: 0} at the bottom left and {x: 1, y: 1} at the top right. */ function getXYByLatLng(point) { @@ -221,7 +221,8 @@ Ox.load('Image', function() { } /* - getLatLngByXY is just the inverse, just like Ox.getLatLngByXY. + getLatLngByXY is the inverse of the above, just like + Ox.getLatLngByXY. */ function getLatLngByXY(xy) { return Ox.getLatLngByXY(Ox.map(xy, function(v) {