• 设为首页
  • 点击收藏
  • 手机版
    手机扫一扫访问
    迪恩网络手机版
  • 关注官方公众号
    微信扫一扫关注
    公众号

C# PointLatLng类代码示例

原作者: [db:作者] 来自: [db:来源] 收藏 邀请

本文整理汇总了C#中PointLatLng的典型用法代码示例。如果您正苦于以下问题:C# PointLatLng类的具体用法?C# PointLatLng怎么用?C# PointLatLng使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。



PointLatLng类属于命名空间,在下文中一共展示了PointLatLng类的20个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的C#代码示例。

示例1: GMapMarkerCross

 public GMapMarkerCross(PointLatLng p)
     : base(p)
 {
     #if !PocketPC
      Pen = new Pen(Brushes.Red, 1);
     #else
      Pen = new Pen(Color.Red, 1);
     #endif
 }
开发者ID:LeoTosti,项目名称:x-drone,代码行数:9,代码来源:GMapMarkerCross.cs


示例2: GMapMarkerRect

        public GMapMarkerRect(PointLatLng p)
            : base(p)
        {
            Pen = new Pen(Brushes.Transparent, 5);

            // do not forget set Size of the marker
            // if so, you shall have no event on it ;}
            Size = new System.Drawing.Size(20, 20);
            Offset = new System.Drawing.Point(-Size.Width / 2, -Size.Height / 2);
        }
开发者ID:gipasoft,项目名称:Sfera,代码行数:10,代码来源:GMapMarkerRect.cs


示例3: GMarkerCross

      public GMarkerCross(PointLatLng p)
         : base(p)
      {
#if !PocketPC
         Pen = new Pen(Brushes.Red, 1);
#else
         Pen = new Pen(Color.Red, 1);
#endif
         IsHitTestVisible = false;
      }
开发者ID:prathika3692,项目名称:greatmaps,代码行数:10,代码来源:GMarkerCross.cs


示例4: GMarkerGoogle

      public GMarkerGoogle(PointLatLng p, GMarkerGoogleType type)
         : base(p)
      {
         this.Type = type;

         if(type != GMarkerGoogleType.none)
         {
            LoadBitmap();
         }
      }
开发者ID:Event38,项目名称:MissionPlanner,代码行数:10,代码来源:GMarkerGoogle.cs


示例5: GMarkerGoogle

       public GMarkerGoogle(PointLatLng p, GMarkerGoogleType type, bool showShadow = true)
         : base(p)
      {
         this.Type = type;
         this.ShowShadow = showShadow;

         if(type != GMarkerGoogleType.none)
         {
            LoadBitmap();
         }
      }
开发者ID:redmanmale,项目名称:greatmaps,代码行数:11,代码来源:GMarkerGoogle.cs


示例6: GMapMarkerTransparentGoogleGreen

      public GMapMarkerTransparentGoogleGreen(PointLatLng p)
         : base(p)
      {
         System.Reflection.Assembly ass = System.Reflection.Assembly.GetExecutingAssembly();

         String resShadow = "GMap.NET.WindowsMobile.Resources.shadow50.png";
         String resMarker = "GMap.NET.WindowsMobile.Resources.bigMarkerGreen.png";

         IGMapTransparentBitmap shadow = GMapMarkerTransparent.LoadTransparentBitmap(ass.GetManifestResourceStream(resShadow));
         IGMapTransparentBitmap marker = GMapMarkerTransparent.LoadTransparentBitmap(ass.GetManifestResourceStream(resMarker));

         bitmaps = new IGMapTransparentBitmap[] { shadow, marker };

         Size = new System.Drawing.Size(marker.Width, marker.Height);
         Offset = new System.Drawing.Point(-10, -34);
      }
开发者ID:mikhp,项目名称:greatmaps,代码行数:16,代码来源:GMapMarkerTransparentGoogleGreen.cs


示例7: GetDirections

 public DirectionsStatusCode GetDirections(out GDirections direction, PointLatLng start, IEnumerable<PointLatLng> wayPoints, bool avoidHighways, bool avoidTolls, bool walkingMode, bool sensor, bool metric)
 {
     return GetDirectionsUrl(MakeDirectionsUrl(start, wayPoints, LanguageStr, avoidHighways, avoidTolls, walkingMode, sensor, metric), out direction);
 }
开发者ID:duyisu,项目名称:MissionPlanner,代码行数:4,代码来源:GoogleMapProvider.cs


示例8: GMapMarkerCondominioLarge

 public GMapMarkerCondominioLarge(PointLatLng p) : base(p)
 {
     Size = new System.Drawing.Size(global::Gipasoft.Stabili.UI.GeoLocation.Properties.Resources.stabile_large.Width, global::Gipasoft.Stabili.UI.GeoLocation.Properties.Resources.stabile_large.Height);
     Offset = new System.Drawing.Point(-10, -34);
 }
开发者ID:gipasoft,项目名称:Sfera,代码行数:5,代码来源:GMapMarkerCondominioLarge.cs


示例9: FromLatLngToLocal

 /// <summary>
 /// return local coordinates from lat/lng
 /// </summary>
 /// <param name="latlng"></param>
 /// <returns></returns>
 public GPoint FromLatLngToLocal(PointLatLng latlng)
 {
    GPoint pLocal = Provider.Projection.FromLatLngToPixel(latlng, Zoom);
    pLocal.Offset(renderOffset);
    pLocal.OffsetNegative(compensationOffset);
    return pLocal;
 }
开发者ID:ans10528,项目名称:MissionPlanner-MissionPlanner1.3.34,代码行数:12,代码来源:Core.cs


示例10: MakeRoutingUrl

 string MakeRoutingUrl(PointLatLng start, PointLatLng end, string travelType, string language, string units)
 {
    // http://developers.cloudmade.com/projects/routing-http-api/examples/
    // http://routes.cloudmade.com/YOUR-API-KEY-GOES-HERE/api/0.3/start_point,[[transit_point1,...,transit_pointN]],end_point/route_type[/route_type_modifier].output_format[?lang=(en|de)][&units=(km|miles)]
    return string.Format(CultureInfo.InvariantCulture, UrlFormat, Key, Version, start.Lat, start.Lng, end.Lat, end.Lng, travelType, language, units);
 }
开发者ID:mikhp,项目名称:greatmaps,代码行数:6,代码来源:CloudMadeMapProvider.cs


示例11: GetPlacemarks

 public GeoCoderStatusCode GetPlacemarks(PointLatLng location, out List<Placemark> placemarkList)
 {
     return GetPlacemarkFromReverseGeocoderUrl(MakeReverseGeocoderUrl(location, LanguageStr), out placemarkList);
 }
开发者ID:duyisu,项目名称:MissionPlanner,代码行数:4,代码来源:GoogleMapProvider.cs


示例12: MakeReverseGeocoderUrl

 string MakeReverseGeocoderUrl(PointLatLng pt, string language)
 {
     return string.Format(CultureInfo.InvariantCulture, ReverseGeocoderUrlFormat, ServerAPIs, pt.Lat, pt.Lng, language);
 }
开发者ID:duyisu,项目名称:MissionPlanner,代码行数:4,代码来源:GoogleMapProvider.cs


示例13: MakeDirectionsUrl

        // The Coogle Directions API: http://tinyurl.com/6vv4cac

        string MakeDirectionsUrl(PointLatLng start, PointLatLng end, string language, bool avoidHighways, bool avoidTolls, bool walkingMode, bool sensor, bool metric)
        {
            string av = (avoidHighways ? "&avoid=highways" : string.Empty) + (avoidTolls ? "&avoid=tolls" : string.Empty); // 6
            string mt = "&units=" + (metric ? "metric" : "imperial");     // 7
            string wk = "&mode=" + (walkingMode ? "walking" : "driving"); // 8

            return string.Format(CultureInfo.InvariantCulture, DirectionUrlFormatPoint, start.Lat, start.Lng, end.Lat, end.Lng, sensor.ToString().ToLower(), language, av, mt, wk, ServerAPIs);
        }
开发者ID:duyisu,项目名称:MissionPlanner,代码行数:10,代码来源:GoogleMapProvider.cs


示例14: GetRoute

 public MapRoute GetRoute(PointLatLng start, PointLatLng end, bool avoidHighways, bool walkingMode, int Zoom)
 {
     string tooltip;
     int numLevels;
     int zoomFactor;
     MapRoute ret = null;
     List<PointLatLng> points = GetRoutePoints(MakeRouteUrl(start, end, LanguageStr, avoidHighways, walkingMode), Zoom, out tooltip, out numLevels, out zoomFactor);
     if (points != null)
     {
         ret = new MapRoute(points, tooltip);
     }
     return ret;
 }
开发者ID:duyisu,项目名称:MissionPlanner,代码行数:13,代码来源:GoogleMapProvider.cs


示例15: GMapMarker

 public GMapMarker(PointLatLng pos)
 {
    this.Position = pos;
 }
开发者ID:chinnisuraj1984,项目名称:navigational,代码行数:4,代码来源:GMapMarker.cs


示例16: GetDirections

 /// <summary>
 /// NotImplemented
 /// </summary>
 /// <param name="direction"></param>
 /// <param name="start"></param>
 /// <param name="wayPoints"></param>
 /// <param name="avoidHighways"></param>
 /// <param name="avoidTolls"></param>
 /// <param name="walkingMode"></param>
 /// <param name="sensor"></param>
 /// <param name="metric"></param>
 /// <returns></returns>
 public DirectionsStatusCode GetDirections(out GDirections direction, PointLatLng start, IEnumerable<PointLatLng> wayPoints, PointLatLng end, bool avoidHighways, bool avoidTolls, bool walkingMode, bool sensor, bool metric)
 {
     throw new NotImplementedException();
 }
开发者ID:mikhp,项目名称:greatmaps,代码行数:16,代码来源:CloudMadeMapProvider.cs


示例17: GMapMarkerGoogleRed

 public GMapMarkerGoogleRed(PointLatLng p)
    : base(p)
 {
    Size = SizeSt;
    Offset = new Point(-10, -34);
 }
开发者ID:mikhp,项目名称:greatmaps,代码行数:6,代码来源:GMapMarkerGoogleRed.cs


示例18: FromLatLngToLocal

 /// <summary>
 /// return local coordinates from lat/lng
 /// </summary>
 /// <param name="latlng"></param>
 /// <returns></returns>
 public Point FromLatLngToLocal(PointLatLng latlng)
 {
     Point pLocal = Projection.FromLatLngToPixel(latlng, Zoom);
     pLocal.Offset(renderOffset);
     return pLocal;
 }
开发者ID:helgef,项目名称:flysight,代码行数:11,代码来源:Core.cs


示例19: GetPlacemark

 public Placemark? GetPlacemark(PointLatLng location, out GeoCoderStatusCode status)
 {
     // http://msdn.microsoft.com/en-us/library/ff701713.aspx
      throw new NotImplementedException();
 }
开发者ID:prathika3692,项目名称:greatmaps,代码行数:5,代码来源:BingMapProvider.cs


示例20: MakeRouteUrl

 string MakeRouteUrl(PointLatLng start, PointLatLng end, string language, bool avoidHighways, bool walkingMode)
 {
     string opt = walkingMode ? WalkingStr : (avoidHighways ? RouteWithoutHighwaysStr : RouteStr);
     return string.Format(CultureInfo.InvariantCulture, RouteUrlFormatPointLatLng, language, opt, start.Lat, start.Lng, end.Lat, end.Lng, Server);
 }
开发者ID:duyisu,项目名称:MissionPlanner,代码行数:5,代码来源:GoogleMapProvider.cs



注:本文中的PointLatLng类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。


鲜花

握手

雷人

路过

鸡蛋
该文章已有0人参与评论

请发表评论

全部评论

专题导读
上一篇:
C# PointTrackingMode类代码示例发布时间:2022-05-24
下一篇:
C# PointFeature类代码示例发布时间:2022-05-24
热门推荐
阅读排行榜

扫描微信二维码

查看手机版网站

随时了解更新最新资讯

139-2527-9053

在线客服(服务时间 9:00~18:00)

在线QQ客服
地址:深圳市南山区西丽大学城创智工业园
电邮:jeky_zhao#qq.com
移动电话:139-2527-9053

Powered by 互联科技 X3.4© 2001-2213 极客世界.|Sitemap