本文整理汇总了Java中com.google.samples.apps.iosched.io.map.model.Marker类的典型用法代码示例。如果您正苦于以下问题:Java Marker类的具体用法?Java Marker怎么用?Java Marker使用的例子?那么恭喜您, 这里精选的类代码示例或许可以为您提供帮助。
Marker类属于com.google.samples.apps.iosched.io.map.model包,在下文中一共展示了Marker类的3个代码示例,这些例子默认根据受欢迎程度排序。您可以为喜欢或者感觉有用的代码点赞,您的评价将有助于系统推荐出更棒的Java代码示例。
示例1: buildMarkers
import com.google.samples.apps.iosched.io.map.model.Marker; //导入依赖的package包/类
private void buildMarkers(ArrayList<ContentProviderOperation> list) {
Uri uri = ScheduleContractHelper
.setUriAsCalledFromSyncAdapter(ScheduleContract.MapMarkers.CONTENT_URI);
list.add(ContentProviderOperation.newDelete(uri).build());
for (String floor : mMarkers.keySet()) {
for (Marker marker : mMarkers.get(floor)) {
ContentProviderOperation.Builder builder = ContentProviderOperation.newInsert(uri);
builder.withValue(ScheduleContract.MapMarkers.MARKER_ID, marker.id);
builder.withValue(ScheduleContract.MapMarkers.MARKER_FLOOR, floor);
builder.withValue(ScheduleContract.MapMarkers.MARKER_LABEL, marker.title);
builder.withValue(ScheduleContract.MapMarkers.MARKER_LATITUDE, marker.lat);
builder.withValue(ScheduleContract.MapMarkers.MARKER_LONGITUDE, marker.lng);
builder.withValue(ScheduleContract.MapMarkers.MARKER_TYPE, marker.type);
list.add(builder.build());
}
}
}
示例2: buildMarkers
import com.google.samples.apps.iosched.io.map.model.Marker; //导入依赖的package包/类
private void buildMarkers(ArrayList<ContentProviderOperation> list) {
Uri uri = ScheduleContract
.addCallerIsSyncAdapterParameter(ScheduleContract.MapMarkers.CONTENT_URI);
list.add(ContentProviderOperation.newDelete(uri).build());
for (String floor : mMarkers.keySet()) {
for (Marker marker : mMarkers.get(floor)) {
ContentProviderOperation.Builder builder = ContentProviderOperation.newInsert(uri);
builder.withValue(ScheduleContract.MapMarkers.MARKER_ID, marker.id);
builder.withValue(ScheduleContract.MapMarkers.MARKER_FLOOR, floor);
builder.withValue(ScheduleContract.MapMarkers.MARKER_LABEL, marker.title);
builder.withValue(ScheduleContract.MapMarkers.MARKER_LATITUDE, marker.lat);
builder.withValue(ScheduleContract.MapMarkers.MARKER_LONGITUDE, marker.lng);
builder.withValue(ScheduleContract.MapMarkers.MARKER_TYPE, marker.type);
list.add(builder.build());
}
}
}
示例3: processMarkers
import com.google.samples.apps.iosched.io.map.model.Marker; //导入依赖的package包/类
private void processMarkers(java.util.Map<String, Marker[]> markers) {
for (String floor : markers.keySet()) {
if (!mMarkers.containsKey(floor)) {
mMarkers.put(floor, new ArrayList<Marker>());
}
for (Marker marker : markers.get(floor)) {
mMarkers.get(floor).add(marker);
}
}
}