예제 #1
0
파일: MarkerDraw.cs 프로젝트: kleitz/WPApp
        public static MapOverlay DrawCurrentMapMarker(GeoCoordinate point)
        {
            //MapVieMode.Layers.Clear();
            //MapLayer mapLayer = new MapLayer();
            // Draw marker for current position       
            UCCurrentPushPin _tooltip = new UCCurrentPushPin();
            // Draw markers for location(s) / destination(s)

            //DrawMapMarker(MyCoordinates[i], Colors.Red, mapLayer, parklist.parking_details[i].DestinationName);
            
            _tooltip.Description = "";
            _tooltip.DataContext = "";
            //_tooltip.Menuitem.Click += Menuitem_Click;
            //_tooltip.imgmarker.Tap += _tooltip_Tapimg;
            MapOverlay overlay = new MapOverlay();
            overlay.Content = _tooltip;
            overlay.GeoCoordinate = point;
            overlay.PositionOrigin = new Point(0.0, 1.0);

            return overlay;
        }
예제 #2
0
파일: MarkerDraw.cs 프로젝트: kleitz/WPApp
        public static MapOverlay DrawCurrentMapMarker(GeoCoordinate point)
        {
            //MapVieMode.Layers.Clear();
            //MapLayer mapLayer = new MapLayer();
            // Draw marker for current position
            UCCurrentPushPin _tooltip = new UCCurrentPushPin();

            // Draw markers for location(s) / destination(s)

            //DrawMapMarker(MyCoordinates[i], Colors.Red, mapLayer, parklist.parking_details[i].DestinationName);

            _tooltip.Description = "";
            _tooltip.DataContext = "";
            //_tooltip.Menuitem.Click += Menuitem_Click;
            //_tooltip.imgmarker.Tap += _tooltip_Tapimg;
            MapOverlay overlay = new MapOverlay();

            overlay.Content        = _tooltip;
            overlay.GeoCoordinate  = point;
            overlay.PositionOrigin = new Point(0.0, 1.0);

            return(overlay);
        }