有了需求,又得弄那MapXtreme地图了,需要增加一个道路区域监控。
折腾了一天,算是有点结果。mapxtreme
一:画线
前台JS可以通过自带的测量功能来画线,使用Command="Distance",同样双击结束画线。
上一展画线的图:

2.画区域
前台JS可以通过自带的功能来区域,使用Command="PolygonSelection",同样双击结束画区域
同样上一下图:

二:后台显示:
画线的可以直接用画线的画就行了。mapxtreme以前说过就不说了。
以下为显示多边型代码:
FeatureGeometrypt=newMultiPolygon(Layer.CoordSys,CurveSegmentType.Linear,polyPoint[bean.ID_Road.Value].ToArray());
SimpleInteriorpolyStyle=newSimpleInterior(9,System.Drawing.Color.Blue,System.Drawing.Color.Blue,true);
CompositeStylecomStyle=newCompositeStyle(polyStyle);
Featurefeature=newMapInfo.Data.Feature(Table.TableInfo.Columns);
feature.Geometry=pt;
feature.Style=comStyle;
Table.InsertFeature(feature);
这里也上一张图片:
本文来自电脑杂谈,转载请注明本文网址:
http://www.pc-fly.com/a/tongxinshuyu/article-33489-1.html
可以说这是在筛选优秀人人才
宋茜森林的精灵
高喊着防杀伤性武器入侵伊拉克