ArcGIS API for JS 中的style
2014-02-27 11:05
99 查看
一个简单填充的示例(有透明效果):
图片填充:
本文出自 “独钓寒江雪” 博客,请务必保留此出处http://zhaojie.blog.51cto.com/1768828/1358495
var symbol = new SimpleFillSymbol( SimpleFillSymbol.STYLE_SOLID, new SimpleLineSymbol( SimpleLineSymbol.STYLE_SOLID, new Color([255,0,0,0.65]), 2 ), new Color([255,0,0,0.35]) );
图片填充:
// fill symbol used for extent, polygon and freehand polygon, use a picture fill symbol // the images folder contains additional fill images, other options: sand.png, swamp.png or stiple.png var fillSymbol = new PictureFillSymbol( "images/mangrove.png", new SimpleLineSymbol( SimpleLineSymbol.STYLE_SOLID, new Color('#000'), 1 ), 42, 42 );点状样式:
// markerSymbol is used for point and multipoint, see http://raphaeljs.com/icons/#talkq for more examples var markerSymbol = new SimpleMarkerSymbol(); markerSymbol.setPath("M16,4.938c-7.732,0-14,4.701-14,10.5c0,1.981,0.741,3.833,2.016,5.414L2,25.272l5.613-1.44c2.339,1.316,5.237,2.106,8.387,2.106c7.732,0,14-4.701,14-10.5S23.732,4.938,16,4.938zM16.868,21.375h-1.969v-1.889h1.969V21.375zM16.772,18.094h-1.777l-0.176-8.083h2.113L16.772,18.094z"); markerSymbol.setColor(new Color("#00FFFF"));
本文出自 “独钓寒江雪” 博客,请务必保留此出处http://zhaojie.blog.51cto.com/1768828/1358495
相关文章推荐
- Qt StyleShett 实现 Metro 风格之 - QPushButton
- vue 中动态绑定class 和 style的方法代码详解
- Qt中使用setStyleSheet对QPushButton按钮进行外观设置
- 用js实现控件的隐藏及style.visibility的使用
- UITableView的style详解
- wsdl:binding中 style: "document" 和 RPC 区别
- javascript复习2 Dom_table_style
- Java Style Thread Class in C++
- 安卓 style="?android:attr/progressBarStyleSmall"表示的含义
- android UI进阶之style和theme的使用
- 解决IE浏览器li下list-style-type…
- Google Objective-C Style Guide 中文版
- Git-----style
- android笔记之使用style.xml
- QSS使用setStyleSheet需要注意一个部件一个setStyleSheet
- Android入门第十六篇之Style与Theme
- CSS和JS标签style属性对照表
- C# FontStyle枚举的使用 (將String转换成FontStyle枚举)
- 对AttributeSet和defStyle的理解 .
- JavaScript CSS Style属性对照表