本文整理汇总了Java中org.primefaces.model.map.MapModel类的典型用法代码示例。如果您正苦于以下问题:Java MapModel类的具体用法?Java MapModel怎么用?Java MapModel使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
MapModel类属于org.primefaces.model.map包,在下文中一共展示了MapModel类的15个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的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;
}
示例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;
}
示例3: getSimpleModel
import org.primefaces.model.map.MapModel; //导入依赖的package包/类
public MapModel getSimpleModel() {
return simpleModel;
}
示例4: getAdvancedModel
import org.primefaces.model.map.MapModel; //导入依赖的package包/类
public MapModel getAdvancedModel() {
return advancedModel;
}
示例5: getEmptyModel
import org.primefaces.model.map.MapModel; //导入依赖的package包/类
public MapModel getEmptyModel() {
return emptyModel;
}
示例6: getAdvancedModel
import org.primefaces.model.map.MapModel; //导入依赖的package包/类
public MapModel getAdvancedModel() {
return advancedModel;
}
示例7: getSimpleModel
import org.primefaces.model.map.MapModel; //导入依赖的package包/类
public MapModel getSimpleModel() {
return simpleModel;
}
示例8: getPolylineModel
import org.primefaces.model.map.MapModel; //导入依赖的package包/类
public MapModel getPolylineModel() {
return polylineModel;
}
示例9: getPolygonModel
import org.primefaces.model.map.MapModel; //导入依赖的package包/类
public MapModel getPolygonModel() {
return polygonModel;
}
示例10: getCircleModel
import org.primefaces.model.map.MapModel; //导入依赖的package包/类
public MapModel getCircleModel() {
return circleModel;
}
示例11: getRectangleModel
import org.primefaces.model.map.MapModel; //导入依赖的package包/类
public MapModel getRectangleModel() {
return rectangleModel;
}
示例12: getEmptyModel
import org.primefaces.model.map.MapModel; //导入依赖的package包/类
public MapModel getEmptyModel() {
return emptyModel;
}
示例13: getDraggableModel
import org.primefaces.model.map.MapModel; //导入依赖的package包/类
public MapModel getDraggableModel() {
return draggableModel;
}
示例14: getMapa
import org.primefaces.model.map.MapModel; //导入依赖的package包/类
public MapModel getMapa() {
return mapa;
}
示例15: setMapa
import org.primefaces.model.map.MapModel; //导入依赖的package包/类
public void setMapa(MapModel mapa) {
this.mapa = mapa;
}