Exemple #1
0
 public void OnMapView(NMapView mapView, NMapError error)
 {
     //base.OnMapView(mapView, error);
     if (error == null)
     {
         //[self.mapView setMapCenter:NGeoPointMake(126.978371, 37.5666091) atLevel:11];
         //[self.mapView setMapEnlarged:YES mapHD:YES];
         var location = new NGeoPoint()
         {
             Latitude  = 37.5666091,
             Longitude = 126.978391
         };
         mapView.SetMapCenter(location, 11);
         mapView.SetMapEnlarged(true, true);
     }
     else
     {
         Debug.WriteLine("OnMapView:initHandler:" + error.Description);
     }
 }
Exemple #2
0
 public void OnMapView(NMapView mapView, NMapError error)
 {
     //base.OnMapView(mapView, error);
     if (error == null)
     {
         var location = new NGeoPoint
         {
             Longitude = 126.978391,
             Latitude  = 37.5666091,
         };
         mapView.SetMapCenter(location, 11);
         mapView.SetMapEnlarged(true, true);
         mapView.SetMapViewMode(NMapViewMode.Vector);
         hasInit = true;
     }
     else
     {
         Debug.WriteLine("OnMapView:initHandler:" + error.Description);
     }
 }