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

Method CheckCoastlines

libs/drape_frontend/rule_drawer.cpp:243–260  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

241}
242
243bool RuleDrawer::CheckCoastlines(FeatureType & f)
244{
245 if (m_zoomLevel > scales::GetUpperWorldScale() && f.GetID().m_mwmId.GetInfo()->GetType() == MwmInfo::COASTS)
246 {
247 std::string_view const name = f.GetName(localisation::kDefaultNameIndex);
248 if (!name.empty())
249 {
250 strings::SimpleTokenizer iter(name, ";");
251 while (iter)
252 {
253 if (m_isLoadedFn(*iter))
254 return false;
255 ++iter;
256 }
257 }
258 }
259 return true;
260}
261
262void RuleDrawer::ProcessAreaAndPointStyle(FeatureType & f, Stylist const & s, TInsertShapeFn const & insertShape)
263{

Callers

nothing calls this directly

Calls 6

GetUpperWorldScaleFunction · 0.85
GetTypeMethod · 0.45
GetInfoMethod · 0.45
GetIDMethod · 0.45
GetNameMethod · 0.45
emptyMethod · 0.45

Tested by

no test coverage detected