本文整理汇总了Java中org.primefaces.model.map.MapModel类的典型用法代码示例。如果您正苦于以下问题:Java MapModel类的具体用法?Java MapModel怎么用?Java MapModel使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
MapModel类属于org.primefaces.model.map包,在下文中一共展示了MapModel类的16个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于我们的系统推荐出更棒的Java代码示例。
示例1: getMarkersModel
import org.primefaces.model.map.MapModel; //导入依赖的package包/类
public MapModel getMarkersModel() {
String origin = getCode(cargo.getOrigin());
String dest = getCode(cargo.getDestination());
String lastKnowLoc = cargo.getLastKnowLocation().getUnLocode().getIdString();
if (origin != null && !origin.isEmpty()) {
markersModel.addOverlay(new Marker(getPortLatLng(origin), "Origin: " + cargo.getOrigin()));
}
if (dest != null && !dest.isEmpty()) {
markersModel.addOverlay(new Marker(getPortLatLng(dest), "Final destination: " + cargo.getDestination()));
}
if (lastKnowLoc != null && !lastKnowLoc.isEmpty() && !lastKnowLoc.toUpperCase().contains("XXXX")) {
String lastKnownLocName = cargo.getLastKnowLocation().getName();
markersModel.addOverlay(new Marker(getPortLatLng(lastKnowLoc), "Last known location: " + lastKnownLocName));
}
return markersModel;
}
开发者ID:m-reza-rahman,项目名称:pragmatic-microservices-lab,代码行数:21,代码来源:Track.java
示例2: createComponent
import org.primefaces.model.map.MapModel; //导入依赖的package包/类
@Override
public Object createComponent(String widgetId) {
this.widgetId = widgetId;
GMap gmap = new GMap();
gmap.setCenter(defaultCoordinate.getLat()
+ "," + defaultCoordinate.getLng());
gmap.setZoom(13);
gmap.setType("HYBRID");
gmap.setStyle("width:600px; height:400px");
MapModel mapModel = new DefaultMapModel();
for (LatLng coord : coordinates) {
mapModel.addOverlay(new Marker(coord));
}
gmap.setModel(mapModel);
return gmap;
}
开发者ID:rcandidosilva,项目名称:paas-iot-platform,代码行数:23,代码来源:UILocationComponent.java
示例3: getSimpleModel
import org.primefaces.model.map.MapModel; //导入依赖的package包/类
public MapModel getSimpleModel() {
return simpleModel;
}
开发者ID:ddRPB,项目名称:rpb,代码行数:4,代码来源:CollaborationBean.java
示例4: getAdvancedModel
import org.primefaces.model.map.MapModel; //导入依赖的package包/类
public MapModel getAdvancedModel() {
return advancedModel;
}
开发者ID:zanti09,项目名称:AAL,代码行数:4,代码来源:EstablecimientosCercanosVista.java
示例5: getEmptyModel
import org.primefaces.model.map.MapModel; //导入依赖的package包/类
public MapModel getEmptyModel() {
return emptyModel;
}
开发者ID:zanti09,项目名称:AAL,代码行数:4,代码来源:EstablecimientoVista.java
示例6: getAdvancedModel
import org.primefaces.model.map.MapModel; //导入依赖的package包/类
public MapModel getAdvancedModel() {
return advancedModel;
}
开发者ID:websphere,项目名称:PrimefacesShowcase,代码行数:4,代码来源:MapBean.java
示例7: getSimpleModel
import org.primefaces.model.map.MapModel; //导入依赖的package包/类
public MapModel getSimpleModel() {
return simpleModel;
}
开发者ID:websphere,项目名称:PrimefacesShowcase,代码行数:4,代码来源:MapBean.java
示例8: getPolylineModel
import org.primefaces.model.map.MapModel; //导入依赖的package包/类
public MapModel getPolylineModel() {
return polylineModel;
}
开发者ID:websphere,项目名称:PrimefacesShowcase,代码行数:4,代码来源:MapBean.java
示例9: getPolygonModel
import org.primefaces.model.map.MapModel; //导入依赖的package包/类
public MapModel getPolygonModel() {
return polygonModel;
}
开发者ID:websphere,项目名称:PrimefacesShowcase,代码行数:4,代码来源:MapBean.java
示例10: getCircleModel
import org.primefaces.model.map.MapModel; //导入依赖的package包/类
public MapModel getCircleModel() {
return circleModel;
}
开发者ID:websphere,项目名称:PrimefacesShowcase,代码行数:4,代码来源:MapBean.java
示例11: getRectangleModel
import org.primefaces.model.map.MapModel; //导入依赖的package包/类
public MapModel getRectangleModel() {
return rectangleModel;
}
开发者ID:websphere,项目名称:PrimefacesShowcase,代码行数:4,代码来源:MapBean.java
示例12: getEmptyModel
import org.primefaces.model.map.MapModel; //导入依赖的package包/类
public MapModel getEmptyModel() {
return emptyModel;
}
开发者ID:websphere,项目名称:PrimefacesShowcase,代码行数:4,代码来源:MapBean.java
示例13: getDraggableModel
import org.primefaces.model.map.MapModel; //导入依赖的package包/类
public MapModel getDraggableModel() {
return draggableModel;
}
开发者ID:websphere,项目名称:PrimefacesShowcase,代码行数:4,代码来源:MapBean.java
示例14: getMapa
import org.primefaces.model.map.MapModel; //导入依赖的package包/类
public MapModel getMapa() {
return mapa;
}
开发者ID:LM25TTD,项目名称:autotrack,代码行数:4,代码来源:ControllerVeiculo.java
示例15: setMapa
import org.primefaces.model.map.MapModel; //导入依赖的package包/类
public void setMapa(MapModel mapa) {
this.mapa = mapa;
}
开发者ID:LM25TTD,项目名称:autotrack,代码行数:4,代码来源:ControllerVeiculo.java
示例16: getSimpleModel
import org.primefaces.model.map.MapModel; //导入依赖的package包/类
/**
* Returns the map object
* @return the map object
*/
public MapModel getSimpleModel() {
return simpleModel;
}
开发者ID:McBrosa,项目名称:MapChat,代码行数:8,代码来源:MarkersView.java
注:本文中的org.primefaces.model.map.MapModel类示例整理自Github/MSDocs等源码及文档管理平台,相关代码片段筛选自各路编程大神贡献的开源项目,源码版权归原作者所有,传播和使用请参考对应项目的License;未经允许,请勿转载。 |
请发表评论