没有合适的资源?快使用搜索试试~ 我知道了~
资源推荐
资源详情
资源评论
using System;
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using SilverlightApp.View;
using SuperMap.Web.Core;
using SuperMap.Web.Controls;
using SuperMap.Web.Mapping;
using SuperMap.Web.Actions;
using SuperMap.Web.Service;
using SuperMap.Web.iServerJava6R;
using SuperMap.Web.iServerJava6R.NetworkAnalyst;
namespace SilverlightApp.View
{
public partial class PathAnalystTool : UserControl
{
private const string url = "http://localhost:8090/iserver/services/map-changchun/rest/maps/长春市区图";
static Map MyMap;
static ElementsLayer elementsLayer;
static FeaturesLayer featuresLayer;
private List<Point2D> points = new List<Point2D>();
private List<Point2D> barrierPoints = new List<Point2D>();
using System.Collections.Generic;
using System.Linq;
using System.Net;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Animation;
using System.Windows.Shapes;
using SilverlightApp.View;
using SuperMap.Web.Core;
using SuperMap.Web.Controls;
using SuperMap.Web.Mapping;
using SuperMap.Web.Actions;
using SuperMap.Web.Service;
using SuperMap.Web.iServerJava6R;
using SuperMap.Web.iServerJava6R.NetworkAnalyst;
namespace SilverlightApp.View
{
public partial class PathAnalystTool : UserControl
{
private const string url = "http://localhost:8090/iserver/services/map-changchun/rest/maps/长春市区图";
static Map MyMap;
static ElementsLayer elementsLayer;
static FeaturesLayer featuresLayer;
private List<Point2D> points = new List<Point2D>();
private List<Point2D> barrierPoints = new List<Point2D>();
private int i = 0;
private int flagcolor = 0;
Pushpin[] push = new Pushpin[10];
//高亮图层在服务端以资源的形式存储
private HighlightLayer highlayer = new HighlightLayer(url);
public PathAnalystTool()
{
InitializeComponent();
}
public PathAnalystTool(Map map, ElementsLayer elementlayer, FeaturesLayer featurelayer)
{
MyMap = map;
elementsLayer = elementlayer;
featuresLayer = featurelayer;
}
private void Button_Click(object sender, RoutedEventArgs e)//添加路径点
{
DrawPoint node = new DrawPoint(MyMap);
MyMap.Action = node;
node.DrawCompleted += new EventHandler<DrawEventArgs>(node_DrawCompleted);
}
private void Button_Click_1(object sender, RoutedEventArgs e)//添加障碍点
{
flagcolor++;
DrawPoint node = new DrawPoint(MyMap);
private int flagcolor = 0;
Pushpin[] push = new Pushpin[10];
//高亮图层在服务端以资源的形式存储
private HighlightLayer highlayer = new HighlightLayer(url);
public PathAnalystTool()
{
InitializeComponent();
}
public PathAnalystTool(Map map, ElementsLayer elementlayer, FeaturesLayer featurelayer)
{
MyMap = map;
elementsLayer = elementlayer;
featuresLayer = featurelayer;
}
private void Button_Click(object sender, RoutedEventArgs e)//添加路径点
{
DrawPoint node = new DrawPoint(MyMap);
MyMap.Action = node;
node.DrawCompleted += new EventHandler<DrawEventArgs>(node_DrawCompleted);
}
private void Button_Click_1(object sender, RoutedEventArgs e)//添加障碍点
{
flagcolor++;
DrawPoint node = new DrawPoint(MyMap);
剩余12页未读,继续阅读
资源评论
我住隔壁我姓王a
- 粉丝: 88
- 资源: 25
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功