【发布时间】:2014-09-29 08:16:39
【问题描述】:
我正在尝试集成 fullPage.js 和 google map api,但它似乎不起作用。
下面是我正在尝试集成的google map api和fullpage.js的示例jsFiddle。
我想要创建的结果与此类似,因为您注意到谷歌地图(充当背景)嵌入到 fullpage.js(示例图像只是一张编辑过的图片)
id="canvass" 是我的谷歌地图
<div id="canvass"></div>
那么这是我的第一部分,包括几张幻灯片。
<div class="section" id="section1">
<div class="slide">
<div id="canvass"></div>
<img src="images/index_images/BG_Slide.png" width="750" height="200"/>
<p>
<strong>MULTI-MACH INTERNATIONAL (PHILS)</strong> has been one of the Philippines leading players in the supply and distribution of leading<br>brands of various foodservice equipment from various parts of the world (esp. Europe, USA, and Japan) that are known and endorsed<br>by respected international consultants and renown practitioners in food service and construction fields.
</p>
</div>
<div class="slide">
<p><strong>MULTI-MACH INTERNATIONAL (PHILS)</strong> has been one of the Philippines leading players in the supply and distribution of leading<br>brands of various foodservice equipment from various parts of the world (esp. Europe, USA, and Japan) that are known and endorsed<br>by respected international consultants and renown practitioners in food service and construction fields.</p>
</div>
<div class="slide">
<p><strong>MULTI-MACH INTERNATIONAL (PHILS)</strong> has been one of the Philippines leading players in the supply and distribution of leading<br>brands of various foodservice equipment from various parts of the world (esp. Europe, USA, and Japan) that are known and endorsed<br>by respected international consultants and renown practitioners in food service and construction fields.</p>
</div>
<div class="slide">
<p>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Possimus, nam dolorem enim quod placeat tempore praesentium nobis quam maxime eum?<br>Lorem ipsum dolor sit amet, consectetur adipisicing elit. Voluptatum facere excepturi minus corrupti nesciunt dolorum!<br>by respected international consultants and renown practitioners in food service and construction fields.</p>
</div>
以下是我试图获得这种结果的尝试。
- 将其放在第一部分的第一张幻灯片上。我想它会充当背景
- 创建另一个专门用于仅显示谷歌地图的部分(我只是在测试它,但它似乎也不起作用)
您对我做错了什么有任何想法,或者它真的与 fullpage.js 不兼容吗?请注意,我使用的是 codeigniter。
【问题讨论】:
标签: google-maps integration fullpage.js