浏览代码

Setting asset id from hashUrl

Petter 4 年之前
父节点
当前提交
d819b91682
共有 1 个文件被更改,包括 5 次插入1 次删除
  1. 5 1
      example/ionExample.js

+ 5 - 1
example/ionExample.js

@@ -141,7 +141,11 @@ function reinstantiateTiles() {
 
 	let url = hashUrl || '../data/tileset.json';
 
-	url = isInt( hashUrl ) ? hashUrl : url;
+	if ( hashUrl ) {
+
+		params.ionAssetId = isInt( hashUrl ) ? hashUrl : '';
+
+	}
 
 	if ( tiles ) {