Ejemplo n.º 1
0
        void AddMarkers()
        {
            var mapOverlayManager = mapView.MapOverlayManager;
            var poiDataOverlay    = mapOverlayManager.NewPOIdataOverlay();

            poiDataOverlay.InitPOIdata(3);
            poiDataOverlay.AddPOIitemAtLocation(NMapViewResource.NGeoPointMake(126.979, 37.567), "마커 1", UserPOIflagType.Default, 0, null);
            poiDataOverlay.AddPOIitemAtLocation(NMapViewResource.NGeoPointMake(126.974, 37.566), "마커 2", UserPOIflagType.Default, 1, null);
            poiDataOverlay.AddPOIitemAtLocation(NMapViewResource.NGeoPointMake(126.984, 37.565), "마커 3", UserPOIflagType.Default, 2, null);
            poiDataOverlay.EndPOIdata();

            // show all POI data
            poiDataOverlay.ShowAllPOIdata();

            poiDataOverlay.SelectPOIitemAtIndex(2, false, true);
        }
Ejemplo n.º 2
0
        void AddMarkers()
        {
            ClearOverlays();

            var mapOverlayManager = mapView.MapOverlayManager;
            var poiDataOverlay    = mapOverlayManager.NewPOIdataOverlay();

            poiDataOverlay.InitPOIdata(1);
            var poiItem = poiDataOverlay.AddPOIitemAtLocation(NMapViewResource.NGeoPointMake(126.979, 37.567), "Touch & Drag to Move", UserPOIflagType.Default, 0, null);

            // set floating mode
            poiItem.SetPOIflagMode(NMapPOIflagMode.Touch);
            // hide right button on callout
            poiItem.HasRightCalloutAccessory = false;
            poiDataOverlay.EndPOIdata();
            // select item
            poiDataOverlay.SelectPOIitemAtIndex(0, true);
            // show all POI data
            poiDataOverlay.ShowAllPOIdata();
        }
Ejemplo n.º 3
0
 public CGPoint OnMapOverlayWithType(NMapPOIdataOverlay poiDataOverlay, int poiFlagType)
 {
     return(NMapViewResource.AnchorPoint(poiFlagType));
 }
Ejemplo n.º 4
0
 public UIImage OnMapOverlay(NMapPOIdataOverlay poiDataOverlay, NMapPOIitem poiItem, bool selected)
 {
     return(NMapViewResource.ImageWithType(poiItem.PoiFlagType, selected));;
 }