Skip to content

Commit 1843e27

Browse files
author
xujiaming
committed
解决资源列表examples部分图片加载不出来的问题 review huangqh
1 parent 216e76e commit 1843e27

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

examples/leaflet/iPortalQueryResources.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -144,7 +144,7 @@ <h5 class='panel-title text-center' data-i18n="resources.title_iPortalQueryResou
144144
<!-- 搜索 -->
145145
<div class='input-group' style="width: 220px;margin-bottom: 15px;">
146146
<span class='input-group-addon' data-i18n="resources.title_iPortalQueryResourcesSearch"></span>
147-
<input type='text' class='form-control' id='searchText' " />
147+
<input type='text' class='form-control' id='searchText' />
148148
</div>
149149
<input type="button" class="btn btn-default" data-i18n="[value]nav.examples.query" onclick="onClickQuery(true)"/>
150150
</div>
@@ -177,7 +177,7 @@ <h5 class='panel-title text-center' data-i18n="resources.title_iPortalQueryResou
177177
<script type="text/javascript" include="jquery,bootstrap-css" src="../js/include-web.js"></script>
178178
<script type="text/javascript" src="../../dist/leaflet/include-leaflet.js"></script>
179179
<script>
180-
//iportal的URL地址 或根据情况添加自己的本地iportal地址:http://localhost:8091/iportal
180+
//iportal的URL地址 或根据情况添加自己的本地iportal地址:http://localhost:8190/iportal
181181
var iPortalUrl = "https://iptl.supermap.io/iportal";
182182
//默认请求的参数
183183
var resourceCurrentPage = 1;//默认请求第一页
@@ -216,7 +216,7 @@ <h5 class='panel-title text-center' data-i18n="resources.title_iPortalQueryResou
216216
var thumbnail = resourceItem.thumbnail;
217217
// 此判断获取部分相对路径的default图片
218218
if(thumbnail.indexOf("./") === 0){
219-
thumbnail = iPortalUrl + thumbnail;
219+
thumbnail = iPortalUrl + thumbnail.replace("./","/");
220220
}
221221
var resourcesDOM = $("<div class='col-md-4 gallery-item'>" +
222222
"<div class='gallery-item-border'>" +

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy