上一篇实现了demo的地图最近设施点路径分析,本篇新增台风轨迹,截图如下:
下面简单介绍相关知识点:
警戒线 |
警戒线坐标集合:
var lineArr24=[[127,34],[127,21],[110,15]];//24小时警戒线坐标集合var lineArr48=[[132,34],[132,15],[105,0]];//48小时警戒线集合
线符号样式SimpleLineSymbol:
var symbol24 = new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID, new dojo.Color([255,0,0]), 1);var symbol48 = new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_DASHDOTDOT, new dojo.Color([255,255,153]), 1);
台风操作面板 |
台风路径符号 |
点符号PictureMarkerSymbol
var TFQ_Symbol=new esri.symbol.PictureMarkerSymbol(getRootPath()+'content/images/weather/typhoon.png', 40, 40)
线符号SimpleLineSymbol:
var T_Symbol=new esri.symbol.SimpleFillSymbol(esri.symbol.SimpleFillSymbol.STYLE_SOLID, new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_SOLID, new dojo.Color([255, 165, 0]), 0.01), new dojo.Color([255,20,147, 0.35]));var Line_symbol= new esri.symbol.SimpleLineSymbol(esri.symbol.SimpleLineSymbol.STYLE_DASHDOTDOT, new dojo.Color([255,215,0]), 1);
扇形风圈 |