SuperMap iObjects Java 11i 范例程序说明
地图属性(MapProperty)  

范例简介

示范设置地图的各种属性,展示显示效果。

示例数据

安装目录\SampleData\City\Changchun.smwu

关键类型/成员

控件/类 方法 事件
Map getBackgroundStyle、getScale、getCenter、getCoordUnit、setColorMode、setAntialias、setClipRegion、setClipRegionEnabled、setCustomBounds、setCustomBoundsEnabled、setAngle、setTextAngleFixed MapDrawnEvent

使用步骤

  1. 通过工具栏上的相应按钮控制地图的背景颜色、背景网格是否显示、颜色模式、反走样、设置当前视图为剪裁区、设置当前视图为自定义范围、旋转角度;
  2. 在标题栏和状态栏分别显示地图名和地图中心坐标;

范例程序位置

安装目录\SampleCode\MapProperty\


  版权所有© 北京超图软件股份有限公司。保留所有权利。