MCPcopy Create free account
hub / github.com/comaps/comaps / SetCustomNameWithCoordinates

Method SetCustomNameWithCoordinates

libs/map/place_page_info.cpp:271–284  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

269}
270
271void Info::SetCustomNameWithCoordinates(m2::PointD const & mercator, std::string const & name)
272{
273 if (IsBookmark())
274 {
275 SetTitlesForBookmark();
276 }
277 else
278 {
279 m_uiTitle = name;
280 m_uiSubtitle = measurement_utils::FormatLatLon(mercator::YToLat(mercator.y), mercator::XToLon(mercator.x),
281 true /* withComma */);
282 }
283 m_customName = name;
284}
285
286void Info::SetFromBookmarkProperties(kml::Properties const & p)
287{

Callers 1

Calls 3

FormatLatLonFunction · 0.85
YToLatFunction · 0.85
XToLonFunction · 0.85

Tested by

no test coverage detected