publish shanon knight, modified 4 months ago
Post on 27-Dec-2015
232 Views
Preview:
TRANSCRIPT
- Slide 1
- Slide 2
- Slide 3
- Slide 4
- Slide 5
- Slide 6
- Slide 7
- Slide 8
- Slide 9
- Slide 10
- Slide 11
- Slide 12
- Slide 13
- Slide 14
- Slide 15
- Slide 16
- Slide 17
- Slide 18 ">
- Slide 19
- Slide 20
- Slide 21 ">
- Slide 22
- Slide 23
- Slide 24
- Slide 25
- LocationCollection points = GetPoints(pointsCount, centerX, centerY); MapPolygon shape = new MapPolygon(); shape.Locations = points; shape.StrokeThickness = thickness; shape.Stroke = new SolidColorBrush(color); shape.Fill = new SolidColorBrush(fillColor); MyLayer.Children.Add(shape);
- Slide 26
- double width = MyMap.ViewportSize.Width * 0.1; LocationCollection points = new LocationCollection(); for (int i = 0; i < count; i++) { double j = (double)i / (double)count; points.Add(MyMap.ViewportPointToLocation( new Point(centerX + Math.Cos(j * 2.0 * Math.PI) * width, centerY + Math.Sin(j * 2.0 * Math.PI) * width))); } return points;
- Slide 27
- Slide 28
- Slide 29
- Slide 30
- Slide 31
- Slide 32
- private void ChangeMapView(object sender, RoutedEventArgs e) { myMap.View (MapViewSpecification)mapSpecConverter.ConvertFrom(((Butto n)sender).Tag); pushpin = CreateUIElement(); Location pinLocation = myMap.TargetView.Center; PositionMethod position = PositionMethod.Center; myMapLayer.AddChild(pushpin, pinLocation, position); }
- Slide 33
- //Image Brush ImageBrush imagebrush = new ImageBrush(); imagebrush.AlignmentX = AlignmentX.Center; imagebrush.AlignmentY = AlignmentY.Center; imagebrush.ImageSource = new BitmapImage(new Uri(@"Chris Pendleton.jpg", UriKind.Relative)); imagebrush.Opacity = 1;
- Slide 34
- Ellipse ellipse = new Ellipse(); ellipse.Fill = new SolidColorBrush(Colors.Cyan); ellipse.Opacity =.9; ellipse.Stroke = new SolidColorBrush(Colors.Black); ellipse.Height = 100.00; ellipse.Width = 100.00; Border border = new Border(); border.BorderBrush = new SolidColorBrush(Colors.Black); border.BorderThickness = new Thickness(0); border.Child = ellipse; return border;
- Slide 35
- Slide 36
- Slide 37
- private int geocodesInProgress; private PlatformServices.GeocodeServiceClient geocodeClient; private PlatformServices.GeocodeServiceClient GeocodeClient{ get{ if (null == geocodeClient){ //Handle http/https bool httpsUriScheme = HtmlPage.Document.DocumentUri.Scheme.Equals(Uri.UriSchemeHttps); BasicHttpBinding binding = httpsUriScheme ? new BasicHttpBinding(BasicHttpSecurityMode.Transport) : new BasicHttpBinding(BasicHttpSecurityMode.None); UriBuilder serviceUri = new UriBuilder("http://dev.virtualearth.net/webservices/v1/GeocodeService/Geoc odeService.svc"); //Create the Service Client geocodeClient = new PlatformServices.GeocodeServiceClient(binding, new EndpointAddress(serviceUri.Uri)); geocodeClient.GeocodeCompleted += new EventHandler (client_GeocodeCom pleted); } return geocodeClient; }
- Slide 38
top related