Exemplo n.º 1
0
        public override void ViewDidLoad()
        {
            base.ViewDidLoad();

            ContentView = new ReverseGeocodingView();
            View        = ContentView;

            Listener         = new ReverseGeocodingEventListener(ContentView.Projection);
            Listener.Service = new PackageManagerReverseGeocodingService(Geocoding.Manager);

            Geocoding.Projection = ContentView.Projection;

            Title = "REVERSE GEOCODING";

            SetOnlineMode();
        }
        protected override void OnCreate(Android.OS.Bundle savedInstanceState)
        {
            base.OnCreate(savedInstanceState);
            ContentView = new ReverseGeocodingView(this);
            SetContentView(ContentView);
            GeocodingClient.Projection = ContentView.Projection;

            Listener = new ReverseGeocodingEventListener(ContentView.Projection);

            SetOnlineMode();
            ContentView.SetOnlineMode();

            // Zoom to Washington
            MapPos pos = ContentView.MapView.Options.BaseProjection.FromWgs84(new MapPos(-77.004590, 38.888702));

            ContentView.MapView.SetFocusPos(pos, 0);
            ContentView.MapView.SetZoom(16.0f, 0);
        }