Open cccreator opened 6 years ago
app.lineLayer = new esri.layers.GraphicsLayer({id: "lineLayer"}); //高亮显示的线路图层
map.addLayer(app.lineLayer,1);
app.lineLayer.add(new esri.Graphic(geo, new esri.symbol.CartographicLineSymbol(
esri.symbol.CartographicLineSymbol.STYLE_SOLID,
new dojo.Color(lineColor), lineWidth,
esri.symbol.CartographicLineSymbol.CAP_ROUND,
esri.symbol.CartographicLineSymbol.JOIN_MITER, 5
), "routeGraphic")); //线路添加到图层上
map.addLayer(app.startAndEndStationName,0);
map.addLayer(app.lineLayer,1);
map.addLayer(app.stationLayer,2);
map.addLayer(busLayer,3);
map.addLayer(app.startAndEndStationLayer,4);
对于basemap,可以这样用: