예제 #1
0
파일: Map.cs 프로젝트: robitar/scriptsharp
 public MapPoint[] TryLocationsToPixels(MapLocation[] locations, MapPointReference pointReference)
 {
     return null;
 }
예제 #2
0
파일: Map.cs 프로젝트: robitar/scriptsharp
 public MapPoint TryLocationToPixel(MapLocation location, MapPointReference pointReference)
 {
     return null;
 }
예제 #3
0
 public MapPolyline(MapLocation[] locations, MapPolylineOptions options)
 {
 }
예제 #4
0
 public MapPolygon(MapLocation[] locations, MapPolygonOptions options)
 {
 }
예제 #5
0
 public MapPushpin(MapLocation location)
 {
 }
예제 #6
0
 public void SetLocation(MapLocation location)
 {
 }
예제 #7
0
 public static MapBounds FromCorners(MapLocation northWest, MapLocation southEast)
 {
     return(null);
 }
예제 #8
0
 public MapInfobox(MapLocation location)
 {
 }
예제 #9
0
 public MapBounds(MapLocation center, double width, double height)
 {
 }
예제 #10
0
 public bool Contains(MapLocation location)
 {
     return(false);
 }
 public MapPoint TryLocationToPixel(MapLocation location, MapPointReference pointReference)
 {
     return(null);
 }
 public MapPoint TryLocationToPixel(MapLocation location)
 {
     return(null);
 }
예제 #13
0
 public static bool AreEqual(MapLocation location1, MapLocation location2)
 {
     return(false);
 }
예제 #14
0
 public bool Contains(MapLocation location) {
     return false;
 }
예제 #15
0
 public MapPushpin(MapLocation location)
 {
 }
예제 #16
0
 public static MapLocationRect FromCorners(MapLocation northwest, MapLocation southeast)
 {
     return(null);
 }
예제 #17
0
 public MapPushpin(MapLocation location, MapPushpinOptions options)
 {
 }
예제 #18
0
 public MapInfobox(MapLocation location, MapInfoboxOptions options)
 {
 }
 public MapInfobox(MapLocation location)
 {
 }
예제 #20
0
 public MapPushpin(MapLocation location, MapPushpinOptions options)
 {
 }
 public MapInfobox(MapLocation location, MapInfoboxOptions options)
 {
 }
예제 #22
0
 public MapPolyline(MapLocation[] locations)
 {
 }
 public void SetLocation(MapLocation location)
 {
 }
예제 #24
0
 public MapPolygon(MapLocation[] locations)
 {
 }
예제 #25
0
 public void SetLocations(MapLocation[] locations) {
 }
예제 #26
0
파일: Map.cs 프로젝트: robitar/scriptsharp
 public MapPoint[] TryLocationsToPixels(MapLocation[] locations)
 {
     return null;
 }
예제 #27
0
 public static bool AreEqual(MapLocation location1, MapLocation location2)
 {
     return false;
 }
예제 #28
0
파일: Map.cs 프로젝트: robitar/scriptsharp
 public MapPoint TryLocationToPixel(MapLocation location)
 {
     return null;
 }
예제 #29
0
파일: Page.cs 프로젝트: fugaku/scriptsharp
        private static void ShowFavorites() {
            _model.ShowFavorites();

            int favoriteCount = _model.Photos.Count;
            if (favoriteCount != 0) {
                MapLocation[] locations = new MapLocation[favoriteCount];

                for (int i = 0; i < favoriteCount; i++) {
                    locations[i] = new MapLocation(_model.Photos[i].latitude, _model.Photos[i].longitude);
                }

                MapViewOptions viewOptions = new MapViewOptions();
                viewOptions.Bounds = MapBounds.FromLocations(locations);
                viewOptions.Animate = true;

                _map.SetView(viewOptions);
                UpdatePhotos(/* newPhotos */ false);
            }
        }
예제 #30
0
 public MapBounds(MapLocation center, double width, double height) {
 }
예제 #31
0
파일: Page.cs 프로젝트: fugaku/scriptsharp
        private static void UpdatePhotos(bool newPhotos) {
            if (newPhotos) {
                if (_mapEntities != null) {
                    _map.Entities.Remove(_mapEntities);
                }

                _mapEntities = new MapEntityCollection();
                _map.Entities.Push(_mapEntities);

                _photoViews = new Dictionary<string, PhotoView>();
            }

            if (_model.Photos.Count == 0) {
                Document.Body.ClassName = MapModeClassName;
                return;
            }

            Document.Body.ClassName = PhotosModeClassName;

            _graph = new Graph();
            _model.Photos.ForEach(delegate(Photo photo) {
                MapLocation location = new MapLocation(photo.latitude, photo.longitude);
                MapPoint point = _map.TryLocationToPixel(location, MapPointReference.Control);

                PhotoView photoView;
                if (newPhotos) {
                    MapPolylineOptions connectorOptions = new MapPolylineOptions();
                    connectorOptions.StrokeColor = new MapColor(255, 0x4E, 0xD3, 0x4E);
                    connectorOptions.StrokeThickness = 2;

                    MapInfoboxOptions calloutOptions = new MapInfoboxOptions();
                    calloutOptions.Width = 50;
                    calloutOptions.Height = 50;
                    calloutOptions.ShowPointer = false;
                    calloutOptions.ShowCloseButton = false;
                    calloutOptions.Offset = new MapPoint(-25, -25);
                    calloutOptions.HtmlContent =
                        "<div class=\"photoInfobox\" style=\"background-image: url(" + photo.thumbnailUrl + ")\"" +
                        " title=\"" + photo.title.HtmlEncode() + "\"></div>";
                    calloutOptions.Visible = true;

                    MapPushpinOptions pushpinOptions = new MapPushpinOptions();
                    pushpinOptions.Icon = "Dot.png";
                    pushpinOptions.Width = 10;
                    pushpinOptions.Height = 10;
                    pushpinOptions.Anchor = new MapPoint(5, 5);
                    pushpinOptions.TypeName = "locationPushpin";

                    photoView = new PhotoView();
                    photoView.pushpin = new MapPushpin(location, pushpinOptions);
                    photoView.connector = new MapPolyline(new MapLocation[] { location, location }, connectorOptions);
                    photoView.callout = new MapInfobox(location, calloutOptions);
                    photoView.callout.Data = photo;
                    _photoViews[photo.id] = photoView;

                    _mapEntities.Insert(photoView.connector, 0);
                    _mapEntities.Insert(photoView.callout, 0);
                    _mapEntities.Insert(photoView.pushpin, 0);
                    MapEvents.AddHandler(photoView.callout, "click", delegate(MapEventArgs e) {
                        ShowPhoto(photo);
                    });
                }
                else {
                    photoView = _photoViews[photo.id];
                }

                photoView.pushpinNode = new GraphNode();
                photoView.pushpinNode.x = point.X;
                photoView.pushpinNode.y = point.Y;
                photoView.pushpinNode.moveable = false;

                photoView.calloutNode = new GraphNode();
                photoView.calloutNode.x = point.X;
                photoView.calloutNode.y = point.Y;

                GraphEdge connectorEdge = new GraphEdge(photoView.pushpinNode,
                                                        photoView.calloutNode,
                                                        10 + Math.Random() * 15);

                _graph.AddNode(photoView.pushpinNode);
                _graph.AddNode(photoView.calloutNode);
                _graph.AddEdge(connectorEdge);
            });

            Window.SetTimeout(UpdateLayout, 30);
        }
예제 #32
0
 public static MapBounds FromCorners(MapLocation northWest, MapLocation southEast) {
     return null;
 }
예제 #33
0
 public MapLocationRect(MapLocation center, int width, int height)
 {
 }