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

前台JS可以通过自带的功能来区域,使用Command="PolygonSelection",同样双击结束画区域
同样上一下图:
二:后台显示:
画线的可以直接用画线的画就行了。以前说过就不说了。
以下为显示多边型代码:
显示多边型代码
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-28178-1.html
速度高
搞不懂他们连鉴定对象是谁都不知道还要鉴定什么
我就静静的的看着你们抢