public class CldMapSdkUtils
extends java.lang.Object
限定符和类型 | 字段和说明 |
---|---|
static int |
MIN_CLICK_DELAY_TIME |
构造器和说明 |
---|
CldMapSdkUtils() |
限定符和类型 | 方法和说明 |
---|---|
static void |
animaZoomIn(Context context)
地图缩小方法
|
static void |
animaZoomOut(Context context)
地图放大方法
|
static HPWPoint |
convertLatLng2Point(LatLng latLng)
将LatLng对象转换为HPWPoint对象
|
static boolean |
doubleClick()
防止双击
|
static double |
FormatLatlog(double f)
保留小数点后6位数
|
static java.lang.String |
getAuthValue(Context context)
获取授权值
|
static StateListDrawable |
getBackGroundListDrawable(int normal,
int focus,
int click,
int disable) |
static int |
getDensityDpi()
密度因子dpi
|
static float |
getDisplayScale()
获取分辨率缩放比例
|
static Drawable |
getDrawable(HWPRInfo resInfo) |
static Drawable |
getDrawableByID(int id)
更加图片id获取图片
|
static DisplayMetrics |
getScreenDisplay()
获取屏幕分辨率
|
static boolean |
initValue(java.lang.String sdcardRootPath,
java.lang.String appFolderName,
java.lang.String apiKeyValue,
CldMap.NaviInitListener naviInitListener)
判断初始值是否正确
|
static boolean |
isPortraitScreen()
是否为竖屏
|
static void |
zoomToSpan(java.util.List<LatLng> latLngs)
缩放到合适比例,将传入的点坐标都显示出来
|
static void |
zoomToSpanByPoints(java.util.List<HPWPoint> points)
缩放到合适比例,将传入的点坐标都显示出来
|
public static final int MIN_CLICK_DELAY_TIME
public static java.lang.String getAuthValue(Context context)
public static float getDisplayScale()
public static int getDensityDpi()
public static Drawable getDrawableByID(int id)
id
- public static Drawable getDrawable(HWPRInfo resInfo)
public static StateListDrawable getBackGroundListDrawable(int normal, int focus, int click, int disable)
public static boolean isPortraitScreen()
public static DisplayMetrics getScreenDisplay()
public static void zoomToSpan(java.util.List<LatLng> latLngs)
latLngs
- public static void zoomToSpanByPoints(java.util.List<HPWPoint> points)
points
- public static boolean doubleClick()
public static void animaZoomIn(Context context)
context
- public static void animaZoomOut(Context context)
context
- public static HPWPoint convertLatLng2Point(LatLng latLng)
latLng
- public static boolean initValue(java.lang.String sdcardRootPath, java.lang.String appFolderName, java.lang.String apiKeyValue, CldMap.NaviInitListener naviInitListener)
sdcardRootPath
- - 系统SD卡根目录路径appFolderName
- - 应用在SD卡中的目录名apiKeyValue
- - 鉴权key值naviInitListener
- - 凯立德导航初始化监听器public static double FormatLatlog(double f)
double
- f