回复: 基于OpenStreetMap瓦片离线地图
#16 [coryzhang 09-12 10:16]
vs2013+qt5能运行,地图没显示,也没下载地图
#17 回 yeguoxiong 的帖子 [michaelge 09-23 19:59]
yeguoxiong:代码已上传。 (2019-04-07 12:35)
压缩包损坏了
#18 [fppxyf 05-06 21:39]
projectionmercator.h
大神 缺个头文件啊 能再发个不????
#19 [wreej0117 05-07 14:22]
m_strServerURL = Profiles::instance()->value("OSM", "ServerURL_OSM", "http://%4.tile.openstreetmap.org/%1/%2/%3.png").toString();
这一句在ServerURL_OSM值为空时,无法读取设置的默认值"http://%4.tile.openstreetmap.org/%1/%2/%3.png",因为ServerURL_OSM存在且为空,所以无法下载地图片,需要自己修改一下
感谢楼主分享
#20 回 wreej0117 的帖子 [hc1234 12-22 17:57]
wreej0117:m_strServerURL = Profiles::instance()->value("OSM", "ServerURL_OSM", "http://%4.tile.openstreetmap.org/%1/%2/%3.png").toString();
这一句在ServerURL_OSM值为空时,无法读取设置的默认值"http://%4.tile.openstreetmap.org/%1/%2/% .. (2020-05-07 14:22)
兄弟,请教一下,要改成啥呀这边,m_strServerURL这个地图源怎么加