居中显示
void showLocation(Double x, Double y) {
Drawable mBitAnimation = getResources().getDrawable(
R.drawable.icon_my_location);
PictureMarkerSymbol symbol = new PictureMarkerSymbol(mBitAnimation);
Point pt = new Point(x, y);
mLayerGps.removeAll();
if (x < 180 && x > -180 && y < 90 && y > -90) {
map.centerAt(pt, true);
}
graLoc = new Graphic(pt, symbol);
mLayerGps.addGraphic(graLoc);
}