zoukankan      html  css  js  c++  java
  • DevExpress 地图的控件使用方法

    1、放置1个dxmapcontrol1在窗体上,设置align:=alclient
    2、右键dxmapcontrol1控件,添加dxMapControl1ImageTileLayer1,设置Provider:=OpenStreetMapImageryDataProvider
    3、右键dxmapcontrol1控件,添加dxMapControl1ItemLayer1,设置MapItems,添加2个 Custom Element
    对象,并分别设置
    dxMapControl1ItemLayer1CustomElement1.Text:='DevExpress Office'
    dxMapControl1ItemLayer1CustomElement1.Location.Latitude:=34.1532
    dxMapControl1ItemLayer1CustomElement1.Location.Longitude:=-118.2555

    dxMapControl1ItemLayer1CustomElement2.Text:='Training Event'
    dxMapControl1ItemLayer1CustomElement2.Location.Latitude:=50.3305
    dxMapControl1ItemLayer1CustomElement2.Location.Longitude:=7.7300

    4、右键dxMapControl1ItemLayer1,设置MapItems,添加1个 dxMapControl1ItemLayer1Polyline1对象,在GeoPoints属性中添加两个对象:
    dxMapControlGeoPointCollection[0].Latitude:=34.1532
    dxMapControlGeoPointCollection[0].Longitude:=-118.2555

    dxMapControlGeoPointCollection[1].Latitude:=50.3305
    dxMapControlGeoPointCollection[1].Longitude:=7.7300

    5、设置属性如图所示:


    6、程序运行界面如图所示:

  • 相关阅读:
    MySQL链接超时的解决办法
    使用Axis开发Web Service程序
    Linux动态库(.so)搜索路径
    MYSQL性能调优简述
    什么是AXIS
    巧夺天工的kfifo
    双离合DSG
    实例讲解C# WebService
    如何为 MySQL 选择更合适的服务器硬件
    7 MySQL 事务与锁定命令
  • 原文地址:https://www.cnblogs.com/windel/p/7634299.html
Copyright © 2011-2022 走看看