This method was used a long time ago to offer a way to migrate LibGPS1 coordinates. If you still need it, you can use GetCurrentMapMeasurement() to fetch the measurement object and retrieve it from there. The mapIndex return value has been removed as our understanding of what a map is has changed and it was deemed unnecessary for most use cases. See the description below in the API reference for details on what it can do. GetCurrentMapMeasurement now returns an object with some convenience methods instead of a plain table. CalculateMapMeasurements -> CalculateMapMeasurement. ![]() GetCurrentMapMeasurements -> GetCurrentMapMeasurement.ClearCurrentMapMeasurements -> ClearCurrentMapMeasurement. ![]() Some function names have been changed to better reflect the return value. The following list shows how to migrate those cases. ![]() Most functions stayed the same between v2 and v3, but there are a few breaking changes. In order to use the new API, simply access the library via the "LibGPS3" global variable instead of "LibGPS2" or LibStub. LibGPS3 offers full backwards compatibility to LibGPS2 (see a), but it's still highly recommended to migrate to the new API. Code: local x, y = gps:GlobalToLocal(x, y)
0 Comments
Leave a Reply. |