Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit db0e173

Browse files
【example】更新iportal例子
1 parent de815f9 commit db0e173

File tree

3 files changed

+17
-12
lines changed

3 files changed

+17
-12
lines changed

‎examples/js/tokengenerator.js‎

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
window.exampleToken = "PisX2NS9DsMKnnNzs6lg5WzjwZqvH2zXcizVYuBG0L0MvPrnBafdbATturwemCbsdUMHvIfItEBVCAcgubl-UNDHMsJU_XJWanQN65xaOUj_xMCsSTkKn26WFWLgvKBy";
22
window.iportalToken ="YDXLzgADk20EZ4PWXFn7FW-TvWJtAQGR4SQk3bXCkyhvv_7NhFJ8AEdyVk4BaYDO39bo4oLEC4bXorZ6qIJDxQ.."
3+
window.iportalKey ="S3XYMe6UVH3rWPNbM979PybI"

‎examples/leaflet/iPortalSecurity.html‎

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -247,13 +247,13 @@ <h4 data-i18n="resources.title_iPortalSecurity"></h4>
247247
//SuperMap.Support.cors = false;
248248
$(document).ready(function () {
249249
$("#loginUrl_iportal").val("http://localhost:8090/iportal");
250-
$("#tokenServiceUrl_iportal").val("https://iportal.supermap.io/iportal/web/services/707656630");
251-
$("#token_iportal").val("_Bo_ksR9DC56MvnAXc6liuhAdWmmt1SuoLX758QIeBJUvteLqHqUeeHnQ6OU0i0VBoN5FjNP_SOQ2o1xyudBjA..");
250+
$("#tokenServiceUrl_iportal").val("https://iportal.supermap.io/iportal/web/services/925052030");
251+
$("#token_iportal").val(window.iportalToken);
252252

253-
$("#serviceUrl_iportal").val("http://support.supermap.com.cn:8099/ywutslmu/iserver/services/map-china400/rest/maps/China_4326");
254-
$('#key_iportal').val("CBIrkfXEAjydLrfp364qgM3P");
255-
$("#serviceUrlMap_iportal").val("http://support.supermap.com.cn:8099/ywutslmu/iserver/services/map-china400/rest/maps/China_4326");
256-
$('#mapKey_iportal').val("CBIrkfXEAjydLrfp364qgM3P");
253+
$("#serviceUrl_iportal").val("https://iportal.supermap.io/portalproxy/rz0fn8kv/iserver/services/map-ChinaProvinces/rest/maps/ChinaProvinces");
254+
$('#key_iportal').val(window.iportalKey);
255+
$("#serviceUrlMap_iportal").val("https://iportal.supermap.io/portalproxy/rz0fn8kv/iserver/services/map-ChinaProvinces/rest/maps/ChinaProvinces");
256+
$('#mapKey_iportal').val(window.iportalKey);
257257

258258
});
259259

@@ -321,6 +321,7 @@ <h4 data-i18n="resources.title_iPortalSecurity"></h4>
321321
return;
322322
}
323323
L.supermap.SecurityManager.destroyToken(serviceUrl);
324+
L.supermap.SecurityManager.destroyKey(serviceUrl);
324325
L.supermap.SecurityManager.registerToken(serviceUrl, key);
325326
requestService(serviceUrl);
326327
}
@@ -339,6 +340,7 @@ <h4 data-i18n="resources.title_iPortalSecurity"></h4>
339340
if (!checkUrl(serviceUrl)) {
340341
return;
341342
}
343+
L.supermap.SecurityManager.destroyToken(serviceUrl);
342344
L.supermap.SecurityManager.destroyKey(serviceUrl);
343345
L.supermap.SecurityManager.registerKey(serviceUrl, key);
344346
requestService(serviceUrl);

‎examples/openlayers/iPortalSecurity.html‎

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -246,13 +246,13 @@ <h4 data-i18n="resources.title_iPortalSecurity"></h4>
246246
//SuperMap.Support.cors = false;
247247
$(document).ready(function () {
248248
$("#loginUrl_iportal").val("http://localhost:8090/iportal");
249-
$("#tokenServiceUrl_iportal").val("https://iportal.supermap.io/iportal/web/services/707656630");
250-
$("#token_iportal").val("_Bo_ksR9DC56MvnAXc6liuhAdWmmt1SuoLX758QIeBJUvteLqHqUeeHnQ6OU0i0VBoN5FjNP_SOQ2o1xyudBjA..");
249+
$("#tokenServiceUrl_iportal").val("https://iportal.supermap.io/iportal/web/services/925052030");
250+
$("#token_iportal").val(window.iportalToken);
251251

252-
$("#serviceUrl_iportal").val("http://support.supermap.com.cn:8099/ywutslmu/iserver/services/map-china400/rest/maps/China_4326");
253-
$('#key_iportal').val("CBIrkfXEAjydLrfp364qgM3P");
254-
$("#serviceUrlMap_iportal").val("http://support.supermap.com.cn:8099/ywutslmu/iserver/services/map-china400/rest/maps/China_4326");
255-
$('#mapKey_iportal').val("CBIrkfXEAjydLrfp364qgM3P");
252+
$("#serviceUrl_iportal").val("https://iportal.supermap.io/portalproxy/rz0fn8kv/iserver/services/map-ChinaProvinces/rest/maps/ChinaProvinces");
253+
$('#key_iportal').val(window.iportalKey);
254+
$("#serviceUrlMap_iportal").val("https://iportal.supermap.io/portalproxy/rz0fn8kv/iserver/services/map-ChinaProvinces/rest/maps/ChinaProvinces");
255+
$('#mapKey_iportal').val(window.iportalKey);
256256
});
257257

258258
/*登录*/
@@ -318,6 +318,7 @@ <h4 data-i18n="resources.title_iPortalSecurity"></h4>
318318
return;
319319
}
320320
ol.supermap.SecurityManager.destroyToken(serviceUrl);
321+
ol.supermap.SecurityManager.destroyKey(serviceUrl);
321322
ol.supermap.SecurityManager.registerToken(serviceUrl, key);
322323
requestService(serviceUrl);
323324
}
@@ -336,6 +337,7 @@ <h4 data-i18n="resources.title_iPortalSecurity"></h4>
336337
if (!checkUrl(serviceUrl)) {
337338
return;
338339
}
340+
ol.supermap.SecurityManager.destroyToken(serviceUrl);
339341
ol.supermap.SecurityManager.destroyKey(serviceUrl);
340342
ol.supermap.SecurityManager.registerKey(serviceUrl, key);
341343
requestService(serviceUrl);

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /