public override void ViewDidLoad() { base.ViewDidLoad(); Dictionary <string, CLLocation> poiNames = new Dictionary <string, CLLocation>(); PKTGeoLocation geoLocation; PKTGeoElement geoElement; List <PKTGeoElement> geoElements = new List <PKTGeoElement>(); poiNames.Add("COOP, Modena", new CLLocation(44.654894, 10.914749)); poiNames.Add("Burger King, Modena", new CLLocation(44.653505, 10.909653)); poiNames.Add("Piazza Matteotti, Modena", new CLLocation(44.647315, 10.924802)); var index = 0; foreach (var pair in poiNames) { geoLocation = new PKTGeoLocation(pair.Value.Coordinate.Latitude, pair.Value.Coordinate.Longitude, 0); geoElement = new PKTGeoElement(geoLocation, index + pair.Key, pair.Key); geoElements.Add(geoElement); index = index + 1; } DisableRecognition(); EnableGeoAR(); EnableGeoMap(); Show(geoElements.ToArray()); }
public override UIView GetSelectedView(PKTGeoElement geoElement) { return(new UIImageView(UIImage.FromBundle("map-marker-Black.png"))); }
public override UIView GetView(PKTGeoElement geoElement) { return(new UIImageView(UIImage.FromBundle("map-marker-Brown.png"))); }