标记贴图显示不正确 [英] Marker maps not showing correct
本文介绍了标记贴图显示不正确的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
我有不同步骤的订单表单中的Google地图,这是通过隐藏的div完成的。首先,我在地图上获得灰色区域。这是通过改变这段代码来解决的:
第一:
map =新的GMap2(document.getElementById(map_canvas);
now:
map = new GMap2(document.getElementById(map_canvas),{size:new GSize(430,315)});
但现在我的地图不再居中了当我添加标记时,根据地址,标记位于谷歌右上角地图。
任何人都有解决方案吗?我知道我在V2中工作,但现在它必须工作,所以我正在创建更多时间迁移到V3
使用 javascript / v2 / reference?hl = de#GMap2.setCenterrel =nofollow> setCenter()
将地图重新居中。 I have google maps in a orderform with different steps, this is done by hidden div's. First i'm getted grey area's on maps. That is solved by changing this code
first:
map = new GMap2(document.getElementById("map_canvas");
now:
map = new GMap2(document.getElementById("map_canvas"),{ size: new GSize(430, 315) });
But now my map is not centered anymore. When i adding the marker, based on address, the marker is on right top of google maps.
Does any one has an solution for this to? i know that i'm working in V2, but for now it has to work so i'm creating more time to migrate to V3
解决方案
use setCenter()
to re-center the map.
这篇关于标记贴图显示不正确的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文