tests/Leaflet/sl-application.js
// Check that a coordinate within a region is valid.  If not, return the center of the region
Check that a coordinate within a region is valid.  If not, return the center of the region
Check that a coordinate within a region is valid . If not return the center of the region
function check_coords(slurl_coord)
{
    if (is_number(slurl_coord) && ((0 <= slurl_coord) && (slurl_coord <= 256))) {
        return slurl_coord;
    }
    else {
        return 128;
    }
}
function check_coords ( slurl_coord ) { if ( is_number ( slurl_coord ) && ( ( 0 <= slurl_coord ) && ( slurl_coord <= 256 ) ) ) { return slurl_coord ; } else { return 128 ; } }
Check that a coordinate within a region is valid.
Check that a coordinate within a region is valid .