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

Method CodeGe0url

libs/map/framework.cpp:2352–2357  ·  view source on GitHub ↗

static

Source from the content-addressed store, hash-verified

2350
2351// static
2352string Framework::CodeGe0url(Bookmark const * bmk, bool addName)
2353{
2354 double lat = mercator::YToLat(bmk->GetPivot().y);
2355 double lon = mercator::XToLon(bmk->GetPivot().x);
2356 return ge0::GenerateShortShowMapUrl(lat, lon, bmk->GetScale(), addName ? bmk->GetPreferredName() : "");
2357}
2358
2359// static
2360string Framework::CodeGe0url(double lat, double lon, double zoomLevel, string const & name)

Calls 6

YToLatFunction · 0.85
XToLonFunction · 0.85
GenerateShortShowMapUrlFunction · 0.85
GetPreferredNameMethod · 0.80
GetPivotMethod · 0.45
GetScaleMethod · 0.45

Tested by

no test coverage detected