public ZIndexPage()
 {
     InitializeComponent();
     this.ContentPanel.Children.Add(amap = new AMap());
     amap.Loaded += amap_Loaded;
     amap.AddAMapLayer(mapLayer = new AMapLayer());
 }
        void amap_Tap(object sender, System.Windows.Input.GestureEventArgs e)
        {
            //添加Marker
            AMapMarker marker1;

            marker1 = amap.AddMarker(new AMapMarkerOptions()
            {
                Position = amap.GetProjection().FromScreenLocation(e.GetPosition(amap)),
                IconUri  = new Uri("Images/ROSE.png", UriKind.Relative),
                //Anchor = new Point(1, 1),//图标中心点
            });

            amap.AddAMapLayer(mapLayer);
            mapLayer.AddMarker(new AMapMarkerOptions()
            {
                Position = amap.GetProjection().FromScreenLocation(e.GetPosition(amap)),
                IconUri  = new Uri("Images/AZURE.png", UriKind.Relative),
                Anchor   = new Point(0.5, 0.5),
            });
        }