7
在开放街道地图和paperfold css animation工作。Could not克隆使用jQuery克隆地图的图像瓷砖
我已经把地图在
<section class="comment" style="height:250px;">
<p> <div id="demoMap" style="height:250px;"></div></p>
</section>
但它不能显示完整的地图。我不知道确切的原因,但我猜想,在js库无法克隆地图的瓷砖。
createFold: function(j, topHeight, bottomHeight){
var offsetTop = -j*topHeight;
var offsetBottom = -this.height+j*topHeight+this.foldHeight;
return $('<div>').addClass('fold').append(
$('<div>').addClass('top').css('height', topHeight).append(
$('<div>').addClass('inner').css('top', offsetTop).append(this.content.clone())
).add($('<div>').addClass('bottom').css('height', bottomHeight).append(
$('<div>').addClass('inner').css('bottom', offsetBottom).append(this.content.clone())
))
);
},
那么将有一种方法来克隆地图的瓷砖或我会出错。如果是的话我怎么能达到这个...