MCPcopy Create free account
hub / github.com/GeoDaCenter/geoda / CloneBackgroundMaps

Method CloneBackgroundMaps

Project.cpp:1795–1806  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1793}
1794
1795std::vector<BackgroundMapLayer*> Project::CloneBackgroundMaps(bool clone_style)
1796{
1797 std::vector<BackgroundMapLayer*> copy_bg_maps;
1798 std::map<wxString, BackgroundMapLayer*>::iterator it;
1799 for (it=bg_maps.begin(); it!=bg_maps.end(); it++) {
1800 wxString name = it->first;
1801 BackgroundMapLayer* ml = it->second;
1802 BackgroundMapLayer* copy = ml->Clone(clone_style);
1803 copy_bg_maps.push_back(copy);
1804 }
1805 return copy_bg_maps;
1806}
1807
1808std::map<wxString, BackgroundMapLayer*> Project::CloneForegroundMaps(bool clone_style)
1809{

Callers 1

MapCanvasMethod · 0.80

Calls 1

CloneMethod · 0.45

Tested by

no test coverage detected