换成用 PointF PointF p = new PointF(116.305671f, 39.966051f); //6位小数后面要加f 表示转float,否则报错 转载于:https://www.cnblogs.com/wdw31210/p/9679595.html