为什么天奥维地图 经纬度偏移可以不偏移

11-23【使用心得】百度地图今天是不是挂了,无法缩放了?_百度地图吧_百度贴吧
&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&&签到排名:今日本吧第个签到,本吧因你更精彩,明天继续来努力!
本吧签到人数:0成为超级会员,使用一键签到本月漏签0次!成为超级会员,赠送8张补签卡连续签到:天&&累计签到:天超级会员单次开通12个月以上,赠送连续签到卡3张
11-23【使用心得】百度地图今天是不是挂了,无法缩放了?收藏
应该是你手机或软件的问题重启一下
我电脑上的百度地图也没办法缩放
Ctrl+Shift+R ,重新加载当前网页而不使用缓存内容; Ctrl+F5;或&Shift+F5, 重新加载当前页,但忽略缓存内容。
登录百度帐号推荐应用
为兴趣而生,贴吧更懂你。或介绍款地图轨迹无偏移的骑行软件吧
查看:4428 | 回复:2
国外的一些软件像cyctastic、roadbike、Cyclemeter都用过,功能都比较丰富,感觉 cyctastic有中文界面 较为好用。但是都有一个问题就是上运动轨迹显示有偏移,这一点让人很不爽。。
前两天发现了一款国内软件叫咕咚运动,没想到地图轨迹显示无偏移,只是统计功能略显简单,只有基本的平均速度、消耗卡路里什么的,纠结于地图偏移的骑友可以下载用用。
江西周边推荐
当季热门推荐
还是没有可用于诺基亚贝拉系统的。
安卓运动伴侣
绑定QQ账号,轻松分享到QQ空间与腾讯微博openlayers加载天地图代码
查看: 14389|
摘要: 虽然天地图采用的是经纬度直投,配色等等方面不和大家口味。但是还是有不少优点的,具体问题不在陈述。只做基于openlayers扩展,加载天地图数据源具体代码如下:
js代码:OpenLayers.Layer.TiandituLayer = OpenLay ...
虽然天地图采用的是经纬度直投,配色等等方面不和大家口味。但是还是有不少优点的,具体问题不在陈述。只做基于openlayers扩展,加载天地图数据源具体代码如下:
[代码]js代码:OpenLayers.Layer.TiandituLayer = OpenLayers.Class(OpenLayers.Layer.Grid, {
mapType: null,
mirrorUrls: null,
topLevel: null,
bottomLevel: null,
topLevelIndex: 0,
bottomLevelIndex: 20,
topTileFromX: -180,
topTileFromY: 90,
topTileToX: 180,
topTileToY: -270,
isBaseLayer: true,
initialize: function (name, url, options) {
options.topLevel = options.topLevel ? options.topLevel : this.topLevelI
options.bottomLevel = options.bottomLevel ? options.bottomLevel : this.bottomLevelI
options.maxResolution = this.getResolutionForLevel(options.topLevel);
options.minResolution = this.getResolutionForLevel(options.bottomLevel);
var newArguments = [name, url, {},
OpenLayers.Layer.Grid.prototype.initialize.apply(this, newArguments);
clone: function (obj) {
if (obj == null) {
obj = new OpenLayers.Layer.TiandituLayer(this.name, this.url, this.options);
obj = OpenLayers.Layer.Grid.prototype.clone.apply(this, [obj]);
getURL: function (bounds) {
var level = this.getLevelForResolution(this.map.getResolution());
var coef = 360 / Math.pow(2, level);
var x_num = this.topTileFromX & this.topTileToX ? Math.round((bounds.left - this.topTileFromX) / coef) : Math.round((this.topTileFromX - bounds.right) / coef);
var y_num = this.topTileFromY & this.topTileToY ? Math.round((bounds.bottom - this.topTileFromY) / coef) : Math.round((this.topTileFromY - bounds.top) / coef);
var type = this.mapT
if (type == "EMap") {
if (level &= 1 && level &= 10) {
type = "A0512_EMap";
} else if (level == 11 || level == 12) {
type = "B0627_EMap1112";
} else if (level &= 13 && level &= 18) {
type = "siwei0608";
if (type == "ESatellite") {
if (level &= 1 && level &= 10) {
type = "sbsm0210";
} else if (level == 11 || level == 12 ||level == 13) {
type = "e"+
}else if (level == 14){
type = "eastdawnall";
}else if (level &= 15 && level &= 18) {
type = "sbsm1518";
//以下2个已经失效
if(type == "EDEM"){
type = "J07098";
if(type == "EAddress"){
type = "wfs";
var url = this.
if (this.mirrorUrls != null) {
url = this.selectUrl(x_num, this.mirrorUrls);
return this.getFullRequestString({
selectUrl: function (a, b) {
return b[a % b.length]
getLevelForResolution: function (res) {
var ratio = this.getMaxResolution() /
if (ratio & 1) return 0;
for (var level = 0; ratio / 2 &= 1;) {
ratio /= 2;
getResolutionForLevel: function (level) {
return 360 / 256 / Math.pow(2, level);
getMaxResolution: function () {
return this.getResolutionForLevel(this.topLevelIndex)
getMinResolution: function () {
return this.getResolutionForLevel(this.bottomLevelIndex)
addTile: function (bounds, position) {
var url = this.getURL(bounds);
return new OpenLayers.Tile.Image(this, position, bounds, url, this.tileSize);
CLASS_NAME: "OpenLayers.Layer.TiandituLayer"
[代码]js代码:map = new OpenLayers.Map("map",mapOptions);
var tianditulayer = new OpenLayers.Layer.TiandituLayer("A0512_EMap",
"/DataServer",{
mapType:'EMap',
topLevel: 1,
bottomLevel: 18,
maxExtent: (new OpenLayers.Bounds(-180, -90, 180, 90)).transform(new OpenLayers.Projection("EPSG:4326"),map.getProjectionObject()),
mirrorUrls:["/DataServer","/DataServer","/DataServer","/DataServer","/DataServer","/DataServer","/DataServer"]
map.addLayer(tianditulayer);
其中服务地址如下
全球 1:100 万地理底图
/services/A0512_EMap
全国 1:25 万公开版数字 地形图
/services/B0627_EMap1112
全国车载导航
/services/siwei0608
全球 250 米卫星影像 (MODIS)
/services/sbsm0210
全国 15 米卫星影像 (ETM)
全国 2.5 米卫星影像 (P5)
/services/e11
地级城市 0.6 米卫星影像& &(QuickBird 、 WorldView I 、 WorldView II)
/services/sbsm1518
数字高程模型
全球 90X90 米数字高程模型
/services/J07098
全球 1:100 万地名地址
全国 1:25 万地名地址
全国车载导航地名地址 效果如下
刚表态过的朋友 ()
我按照你这么写的怎么不可以呢,能不能指教一下?
Powered byArcGIS读取天地图_百度文库
两大类热门资源免费畅读
续费一年阅读会员,立省24元!
ArcGIS读取天地图
上传于|0|0|文档简介
&&ArcGIS读取天地图
阅读已结束,如果下载本文需要使用1下载券
想免费下载本文?
定制HR最喜欢的简历
下载文档到电脑,查找使用更方便
还剩4页未读,继续阅读
定制HR最喜欢的简历
你可能喜欢}

我要回帖

更多关于 google地图偏移修正 的文章

更多推荐

版权声明:文章内容来源于网络,版权归原作者所有,如有侵权请点击这里与我们联系,我们将及时删除。

点击添加站长微信