mirror of
https://github.com/Esri/offline-editor-js.git
synced 2025-12-15 15:20:05 +00:00
renamed button
This commit is contained in:
parent
986060c875
commit
0ea538760f
@ -102,7 +102,7 @@
|
||||
<div id="header-div">
|
||||
<div id="input-container">
|
||||
<input type="file" id="file-input" name="files[]" accept="application/zip"/>
|
||||
<input type="text" id="url-input" value="Beirut.zip" />
|
||||
<input type="text" id="url-input" value="http://andygup.github.io/tpk-layer-js/Beirut.zip" />
|
||||
<button id="url-btn">Get file via url</button>
|
||||
</div>
|
||||
<div id="header-title">TPKLayer demo</div>
|
||||
@ -126,7 +126,7 @@
|
||||
require(["esri/map","tpk/TPKLayer","tpk/zip","dojo/on","dojo/_base/window","dojo/domReady!"],
|
||||
function(Map,TPKLayer,zip,on,win) {
|
||||
var map;
|
||||
var fileInput,tpkLayer, urlInput;
|
||||
var fileInput,tpkLayer, urlInputBtn;
|
||||
|
||||
var loading = dojo.byId("loader-gif");
|
||||
var getFileBtn = dojo.byId("url-btn");
|
||||
@ -181,8 +181,8 @@
|
||||
*/
|
||||
function initGetRemoteFile(){
|
||||
getFileBtn.innerHTML = "Get file via url";
|
||||
urlInput = document.getElementById("url-btn");
|
||||
urlInput.onclick = function(){
|
||||
urlInputBtn = document.getElementById("url-btn");
|
||||
urlInputBtn.onclick = function(){
|
||||
var xhrRequest = new XMLHttpRequest();
|
||||
xhrRequest.open("GET", "Beirut.zip", true);
|
||||
xhrRequest.responseType = "blob";
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user