Exemplo n.º 1
0
 void DisposeCountyLayer(LoadedMapInfo countyInfo = null)
 {
     if (countyInfo == null)
     {
         countyInfo = this.usCountyInfo;
     }
     countyInfo.DestroyStorage();
     countyInfo.DestroyLayer();
 }
Exemplo n.º 2
0
 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();
 }