public override bool OnPolygonCreated(NShape shape, NGisFeature feature) { NDataTableRow row = feature.Attributes; string countryName = (string)row["name_long"]; decimal population = (decimal)row["pop_est"]; string tooltip = countryName + "'s population: " + population.ToString("N0"); shape.Tooltip = new NTooltip(tooltip); return(true); }
public override bool OnMultiPolygonCreated(NShape shape, NGisFeature feature) { return(OnPolygonCreated(shape, feature)); }