Actions
Feature #2031
closedadd lua function (Tile).latitude
Start date:
05/18/2026
Due date:
% Done:
0%
Estimated time:
Description
Requirements can deal with latitude, so lua should too.
Files
Updated by Marko Lindqvist 2 months ago
- Target version changed from 3.3.0 to 3.3.0-d3f
Updated by Marko Lindqvist 2 months ago
- Blocks Tasks #1631: S3_3 datafileformat freeze (d3f) added
Updated by Marko Lindqvist 2 months ago
- Status changed from New to In Review
- Assignee set to Marko Lindqvist
Updated by Marko Lindqvist 16 days ago
- Status changed from In Review to In Progress
- Assignee changed from Marko Lindqvist to Dean Brown
int api_methods_tile_latitude(lua_State *L, Tile *ptile)
{
+ LUASCRIPT_CHECK_STATE(L, -1);
+ LUASCRIPT_CHECK_SELF(L, ptile, -1);
return map_signed_latitude(ptile);
+}
Since it normally returns signed latitude -> negative values are valid, it makes no sense to return specifically -1 on error.
Actions
#9
Updated by Dean Brown 15 days ago
- File 2031_Main.patch 2031_Main.patch added
- File 2031_S3_3.patch 2031_S3_3.patch added
Had to think about this one, it has to return something because the function isn't void. Best I can come up with is MAP_MAX_LATITUDE + 1.
Updated by Marko Lindqvist 12 days ago
- Status changed from In Progress to In Review
- Assignee changed from Dean Brown to Marko Lindqvist
Actions