摘要: 核心代码: <script src="https://unpkg.com/gcoord@0.3.2/dist/gcoord.js"></script> <script> //主要采用 gcoord 库进行纠偏 var temppoint = gcoord.transform([116.9282,36 阅读全文
posted @ 2024-04-12 16:29 小鱼写代码的过往 阅读(67) 评论(0) 推荐(0) 编辑
摘要: 问题点:因为腾讯地图是用到加密的GCJ02火星坐标系,跟WGS84是有20-700m的偏移的,所以要用到gcoord纠偏 代码如下: <!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <meta name="viewport 阅读全文
posted @ 2024-04-12 16:25 小鱼写代码的过往 阅读(142) 评论(0) 推荐(0) 编辑
摘要: 创建时要注意 : newDataStore.setCharset(Charset.forName("GBK")); 代码如下: File newFile = new File(filepath);Map<String, Serializable> params = new HashMap<>();p 阅读全文
posted @ 2024-04-12 16:00 小鱼写代码的过往 阅读(244) 评论(0) 推荐(0) 编辑