MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / center

Method center

app/src/UI/Widgets/GPS.cpp:270–275  ·  view source on GitHub ↗

* @brief Re-centers the map to the latest GPS coordinates. */

Source from the content-addressed store, hash-verified

268 * @brief Re-centers the map to the latest GPS coordinates.
269 */
270void Widgets::GPS::center()
271{
272 m_centerTile = latLonToTile(m_latitude, m_longitude, m_zoom);
273 updateTiles();
274 update();
275}
276
277//--------------------------------------------------------------------------------------------------
278// Map configuration setters

Callers 2

buttonRectMethod · 0.80
drawYAxisMethod · 0.80

Calls 1

updateFunction · 0.85

Tested by

no test coverage detected