DELPHI盒子
!实时搜索: 盒子论坛 | 注册用户 | 修改信息 | 退出
检举帖 | 全文检索 | 关闭广告 | 捐赠
技术论坛
 用户名
 密  码
自动登陆(30天有效)
忘了密码
≡技术区≡
DELPHI技术
lazarus/fpc/Free Pascal
移动应用开发
Web应用开发
数据库专区
报表专区
网络通讯
开源项目
论坛精华贴
≡发布区≡
发布代码
发布控件
文档资料
经典工具
≡事务区≡
网站意见
盒子之家
招聘应聘
信息交换
论坛信息
最新加入: szliyu112358
今日帖子: 52
在线用户: 11
导航: 论坛 -> DELPHI技术 斑竹:liumazi,sephil  
作者:
男 dalas (dalas) ★☆☆☆☆ -
普通会员
2022/1/13 16:42:14
标题:
我有GPS坐标,请教如何用DELPHI调用百度地图 浏览:1709
加入我的收藏
楼主: 我有GPS坐标,请教如何用DELPHI调用百度地图,在地图上标记出来,并且多个点连成轨迹
----------------------------------------------
-
作者:
男 tuesdays (Tuesday) ▲▲▲▲△ -
普通会员
2022/1/13 17:24:00
1楼: 用腾讯的.  文档齐全.
----------------------------------------------
delphi界写python最强, python界写delphi最强. 写自己的代码, 让别人去运行.
作者:
男 dalas (dalas) ★☆☆☆☆ -
普通会员
2022/1/13 18:51:00
2楼: 腾讯地图开发包哪里有下载?
----------------------------------------------
-
作者:
男 emailx45 (emailx45) ▲▲▲▲△ -
普通会员
2022/1/13 21:03:22
3楼: https://intl.cloud.tencent.com/document/api


Map Sdk Loader, Supports Tencent Map and Baidu Map

sample:
https://morioh.com/p/fca4872d4e0d


LoadMap
Map SDK loader, supports Tencent map and Baidu map, and can be used for vue and react projects.

Baidu map can choose to use react-baidu-maps , vue-baidu-map

installation
npm install load-map --save
use
Import  LoadMap  from  'the Load-the Map' ; 
LoadMap . the Load ( { 
    MapKey : 'XXXXX' ,  // you apply the Key 
    Version:  '2.exp' ,  // map version, 
    url : 'HTTPS: //map.qq. com/api/js' ,  // The URL of the map SDK, does not include the query part 
    query : { } ,  // Load the map SDK, additional URL query part (Baidu map has type: webgl) 
} ) . then ( sdk  =>  { 
    // qqmapEl is the container of Tencent map 
    // myOptions The configuration of Tencent map 
    new  sdk . maps . Map(qqmapEl, myOptions);
})
parameter
load method,
Load the map SDK, return Promise, the parameter in the success callback is SDK

mapKey:
[String] Required, the key applied by the map platform
version:
[String] map version, Tencent map (for example: 2.exp), Baidu map (for example: 1.0)
url:
[Map] String SDK’s URL, Tencent map (for example: 'https://map.qq.com/api/js') defaults, Baidu map (for example: 'https://api.map.baidu.com/api')
query:
[Object] Load map SDK, additional URL query part, Tencent map does not require configuration, Baidu map JavaScript API GL version{type: 'webgl'}
Download Details:
Author: lydxwj

Source Code: https://github.com/lydxwj/LoadMap
----------------------------------------------
The higher the degree, the greater the respect given to the humblest!RAD 11.3
作者:
男 janker (janker) ★☆☆☆☆ -
盒子活跃会员
2022/1/13 21:08:05
3楼: IE的网上有DEMO,Edge的就不知道了.
大体是
1、设计一个页面(html),用于加载百度地图,页面里设计好脚本功能脚本,比如添加删除标记功能、鼠标点击事件脚本等等
2、DELPHI里用TWebBrowser加载这个页面,用浏览器的execScript()来执行脚本动作。
3、用一个定时器(比如时长200MS)来获取鼠标在地图上的点击坐标(这个不知道有没有更好的办法)
4、如果需要,添加更改地图的接口的JS文件(这样只能用离线方式了)

如果没做过,多参考百度地图的DEMO和教程,挺麻烦的,不熟悉JS和HTML的更麻烦....
----------------------------------------------
-
作者:
男 emailx45 (emailx45) ▲▲▲▲△ -
普通会员
2022/1/13 21:14:02
4楼: 腾讯位置服务
腾讯地图开放平台
 北京市海淀区腾讯北京总部大楼
 http://lbs.qq.com

https://github.com/TencentLBS
----------------------------------------------
The higher the degree, the greater the respect given to the humblest!RAD 11.3
作者:
男 janker (janker) ★☆☆☆☆ -
盒子活跃会员
2022/1/13 21:14:08
4楼: 多年前做过的一个自定义地图标记的离线运用,源文件也不知道在哪了,倒是在CSDN上记录了一点东西:
https://mp.csdn.net/mp_blog/creation/editor/45392635
----------------------------------------------
-
作者:
男 pcplayer (pcplayer) ★☆☆☆☆ -
普通会员
2022/1/14 1:16:27
5楼: 多年前,在 FireMonkey 的手机 APP 里面,使用浏览器调用百度地图,用 JS 去操作,成功了的,可以把 GPS 数据放进去打点。
----------------------------------------------
-
作者:
男 grjs_2004 (grjsITname) ★☆☆☆☆ -
盒子活跃会员
2022/1/14 10:02:59
6楼: 可以调用百度地图API来实现GPS坐标定位!N年前就玩过了,自己琢磨一下,很容易的!
----------------------------------------------
Everyone will to do best!
作者:
男 xfyhs (袁華松) ▲▲▲▲▲ -
普通会员
2022/1/22 12:55:08
7楼: 这个好像是跟GPS取的坐标跟地图坐标有偏差会造成不准,我这边以前找相关的有找到一个单元可以转换好想,我去翻一下看看
----------------------------------------------
-
作者:
男 xfyhs (袁華松) ▲▲▲▲▲ -
普通会员
2022/1/22 13:06:10
8楼: 这个是之前在网上找的,可以把手机GPS获取的坐标转换成地图坐标
此帖子包含附件:xfyhs_202212213610.rar 大小:1,828B
----------------------------------------------
-
信息
登陆以后才能回复
Copyright © 2CCC.Com 盒子论坛 v3.0.1 版权所有 页面执行101.5625毫秒 RSS