Exemplo n.º 1
0
        public override string DetailForGraphic(AGSGraphic graphic, PointF screen, AGSPoint mapPoint)
        {
            var cityFips  = graphic.AttributeAsStringForKey("CITY_FIPS");
            var cityName  = graphic.AttributeAsStringForKey("CITY_NAME");
            var stateFips = graphic.AttributeAsStringForKey("STATE_FIPS");
            var stateName = graphic.AttributeAsStringForKey("STATE_NAME");

            return(string.Format(
                       "{0}, {1}, {2}, {3}",
                       cityFips,
                       cityName,
                       stateFips,
                       stateName
                       ));
        }
		public override string TitleForGraphic(AGSGraphic graphic, PointF screen, AGSPoint mapPoint) {
			var cityName = graphic.AttributeForKey("CITY_NAME");
			return cityName.ToString();
		}
		public override string DetailForGraphic(AGSGraphic graphic, PointF screen, AGSPoint mapPoint) {
			var cityFips = graphic.AttributeAsStringForKey("CITY_FIPS");
			var cityName = graphic.AttributeAsStringForKey("CITY_NAME");
			var stateFips = graphic.AttributeAsStringForKey("STATE_FIPS");
			var stateName = graphic.AttributeAsStringForKey("STATE_NAME");
			return string.Format(
				"{0}, {1}, {2}, {3}",
				cityFips,
				cityName,
				stateFips,
				stateName
			);
		}
Exemplo n.º 4
0
        public override string TitleForGraphic(AGSGraphic graphic, PointF screen, AGSPoint mapPoint)
        {
            var cityName = graphic.AttributeForKey("CITY_NAME");

            return(cityName.ToString());
        }