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

Method SetCenter

libs/editor/xml_feature.cpp:198–203  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

196}
197
198void XMLFeature::SetCenter(ms::LatLon const & ll)
199{
200 ASSERT_EQUAL(GetType(), Type::Node, ());
201 SetAttribute("lat", strings::to_string_dac(ll.m_lat, kLatLonTolerance));
202 SetAttribute("lon", strings::to_string_dac(ll.m_lon, kLatLonTolerance));
203}
204
205void XMLFeature::SetCenter(m2::PointD const & mercatorCenter)
206{

Callers 5

ToXMLFunction · 0.45
TypeToXMLFunction · 0.45
UNIT_TESTFunction · 0.45
UNIT_TESTFunction · 0.45
OnSingleTouchFiltrateMethod · 0.45

Calls 3

to_string_dacFunction · 0.85
GetTypeFunction · 0.50
ToLatLonFunction · 0.50

Tested by 2

UNIT_TESTFunction · 0.36
UNIT_TESTFunction · 0.36