本文整理汇总了Java中org.gwtopenmaps.openlayers.client.layer.VectorOptions类的典型用法代码示例。如果您正苦于以下问题:Java VectorOptions类的具体用法?Java VectorOptions怎么用?Java VectorOptions使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
VectorOptions类属于org.gwtopenmaps.openlayers.client.layer包,在下文中一共展示了VectorOptions类的4个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: createEmptyVectorLayer
import org.gwtopenmaps.openlayers.client.layer.VectorOptions; //导入依赖的package包/类
public static VectorLayer createEmptyVectorLayer(
final VectorLayerConfig layerConfig) {
final VectorOptions vectorOptions = new VectorOptions();
vectorOptions.setProjection(layerConfig.getEpsg());
return new VectorLayer(layerConfig.getLayerName(), vectorOptions);
}
示例2: VectorLayer
import org.gwtopenmaps.openlayers.client.layer.VectorOptions; //导入依赖的package包/类
public VectorLayer(String name, VectorOptions options) {
super(name, options);
this.featureSchema = new FeatureSchema();
setVectorStyle(new VectorStyleDef());
addFeatureAddedListener();
addFeatureSelectListeners();
}
示例3: OpenLayersPOILayer
import org.gwtopenmaps.openlayers.client.layer.VectorOptions; //导入依赖的package包/类
public OpenLayersPOILayer(Map map, POILayerType layerType) {
VectorOptions opts = new VectorOptions();
opts.setMaxResolution(20.0f);
RendererOptions ropts = new RendererOptions();
ropts.setZIndexing(true);
opts.setRendererOptions(ropts);
String layerName = I18nUtils.tr(false,
"layer.poi." + layerType.toString());
if (layerName == null)
layerName = I18nUtils.tr("layer.poi.default");
layer = new Vector(layerName, opts);
layer.setDisplayInLayerSwitcher(false);
map.addLayer(layer);
mapProjectionCode = map.getProjection();
}
示例4: initVectorLayer
import org.gwtopenmaps.openlayers.client.layer.VectorOptions; //导入依赖的package包/类
/**
* Inits the vector layer.
*/
private void initVectorLayer()
{
VectorOptions vectorOption = new VectorOptions();
vectorOption.setStyle(this.createStyle());
vectorOption.setDisplayInLayerSwitcher(false);
this.vector = new Vector("Geofence PREVIEW Vector Layer", vectorOption);
this.map.addLayer(vector);
}