forked from 0x2620/oxjs
update examples
This commit is contained in:
parent
5a07fc2519
commit
7240cf2c38
2 changed files with 7 additions and 8 deletions
|
|
@ -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, <code>{x: 0, y: 0}</code> being the bottom left,
|
||||
1×1 Mercator position, <code>{x: 0, y: 0}</code> being the bottom left,
|
||||
<code>{x: 1, y: 1}</code> 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
|
||||
<code>break</code> in a <code>for</code> 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();
|
||||
}
|
||||
});
|
||||
/*
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue