我遇到一个问题,我的地图从选项卡中滑出,目前它应该以用户位置为中心,请参阅下面的 jsfiddle:
http://jsfiddle.net/uADHv/2/
据我了解,该行:
center: coords,
应该将地图以用户当前位置为中心,但显示一个接近的随机位置实际位置但很远距离足够远,以至于在地图上看不到。
任何查看地图中心位置的 jsfiddle 链接帖子的人都可以,我很好奇它是否会在靠近他们所在位置的某个地方,或者是否会在每个人的同一个地方中心。
谢谢
I'm having a problem where my map slides out from a tab and at the moment it is supposed to be centering on the users location, see jsfiddle below:
http://jsfiddle.net/uADHv/2/
From what I understand the line:
center: coords,
should be centering the map on the users current location but is showing a random location which is close to the actual location but far enough away so that it isn't visible on the map.
Also could anyone who looks at the jsfiddle link post where the map is centering on, i'm curious to whether it will be somewhere close to where they are or if it will center in the same place for everyone.
Thanks
发布评论