|
|
|
|
2435
|
|
2435
|
|
2436
|
public void showInfoWindowData(final String zhan_id, final View infoWindow, final ZhanData zhanData, final Marker marker) {
|
2436
|
public void showInfoWindowData(final String zhan_id, final View infoWindow, final ZhanData zhanData, final Marker marker) {
|
2437
|
TextView mInfoWindowFast = infoWindow.findViewById(R.id.evsdk_tv_info_fast);
|
2437
|
TextView mInfoWindowFast = infoWindow.findViewById(R.id.evsdk_tv_info_fast);
|
2438
|
mInfoWindowFast.setText(zhanData.getFast_num());
|
|
|
2439
|
//infowinow中慢充数的显示
|
2438
|
//infowinow中慢充数的显示
|
2440
|
TextView mInfoWindowSlow = infoWindow.findViewById(R.id.evsdk_tv_info_slow);
|
2439
|
TextView mInfoWindowSlow = infoWindow.findViewById(R.id.evsdk_tv_info_slow);
|
2441
|
mInfoWindowSlow.setText(zhanData.getSlow_num());
|
|
|
2442
|
//infowinow中运营商的显示
|
2440
|
//infowinow中运营商的显示
|
2443
|
TextView mInfoWindowSupplier = infoWindow.findViewById(R.id.evsdk_tv_info_supplier);
|
2441
|
TextView mInfoWindowSupplier = infoWindow.findViewById(R.id.evsdk_tv_info_supplier);
|
2444
|
mInfoWindowSupplier.setText(zhanData.getSupplier());
|
|
|
2445
|
//infowinow中距离的显示
|
2442
|
//infowinow中距离的显示
|
2446
|
TextView mInfoWindowDistance = infoWindow.findViewById(R.id.evsdk_tv_info_distance);
|
2443
|
TextView mInfoWindowDistance = infoWindow.findViewById(R.id.evsdk_tv_info_distance);
|
2447
|
LatLng ll = new LatLng(Double.parseDouble(start_wei), Double.parseDouble(start_jing));
|
2444
|
LatLng ll = new LatLng(Double.parseDouble(start_wei), Double.parseDouble(start_jing));
|
|
|
|
|
2451
|
mInfoWindowDistance.setText(Util.getDistance(distance));
|
2448
|
mInfoWindowDistance.setText(Util.getDistance(distance));
|
2452
|
//infowinow中站名称的显示
|
2449
|
//infowinow中站名称的显示
|
2453
|
TextView mInfoWindowName = infoWindow.findViewById(R.id.evsdk_tv_info_name);
|
2450
|
TextView mInfoWindowName = infoWindow.findViewById(R.id.evsdk_tv_info_name);
|
2454
|
mInfoWindowName.setText(zhanData.getZhan_name());
|
|
|
|
|
2451
|
if (zhanData != null) {
|
|
|
2452
|
mInfoWindowSlow.setText(zhanData.getSlow_num());
|
|
|
2453
|
mInfoWindowFast.setText(zhanData.getFast_num());
|
|
|
2454
|
mInfoWindowName.setText(zhanData.getZhan_name());
|
|
|
2455
|
mInfoWindowSupplier.setText(zhanData.getSupplier());
|
|
|
2456
|
}
|
|
|
2457
|
|
2455
|
//infowinow中添加/删除途经点的显示
|
2458
|
//infowinow中添加/删除途经点的显示
|
2456
|
ImageView mInfoWindowDeal = infoWindow.findViewById(R.id.evsdk_iv_deal_waypoint);
|
2459
|
ImageView mInfoWindowDeal = infoWindow.findViewById(R.id.evsdk_iv_deal_waypoint);
|
2457
|
if (marker.getTitle().equals(ROUTE_POINT_ONE) || marker.getTitle().equals(ROUTE_POINT_TWO)
|
2460
|
if (marker.getTitle().equals(ROUTE_POINT_ONE) || marker.getTitle().equals(ROUTE_POINT_TWO)
|
|
|
|
|
2474
|
zhan.setPoi_jing(String.valueOf(marker.getPosition().longitude));
|
2477
|
zhan.setPoi_jing(String.valueOf(marker.getPosition().longitude));
|
2475
|
zhan.setPoi_wei(String.valueOf(marker.getPosition().latitude));
|
2478
|
zhan.setPoi_wei(String.valueOf(marker.getPosition().latitude));
|
2476
|
zhan.setZhan_id(zhan_id);
|
2479
|
zhan.setZhan_id(zhan_id);
|
2477
|
zhan.setZhan_name(zhanData.getZhan_name());
|
|
|
|
|
2480
|
if (zhanData != null) {
|
|
|
2481
|
zhan.setZhan_name(zhanData.getZhan_name());
|
|
|
2482
|
}
|
2478
|
|
2483
|
|
2479
|
list_zhong.add(zhan);
|
2484
|
list_zhong.add(zhan);
|
2480
|
Log.e("size===", list_zhong.size() + "");
|
2485
|
Log.e("size===", list_zhong.size() + "");
|