void DisposeCountyLayer(LoadedMapInfo countyInfo = null) { if (countyInfo == null) { countyInfo = this.usCountyInfo; } countyInfo.DestroyStorage(); countyInfo.DestroyLayer(); }
void LoadUSShape(LoadedMapInfo info, ElectionData electionData, bool colorize = true) { info.DestroyStorage(); info.AllItems = LoadMapShapeItems(Helpers.GetUSMap()); info.VisibleItems = new List <MapItem>(info.AllItems); if (colorize) { colorizer.ColorizeStateItems(electionData, info.AllItems); } if (info.Layer == null) { info.Layer = new VectorItemsLayer(); } info.SetupVisibleItemsLayerStorage(); }