| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent d4b71c1 commit ef458d4
33 files changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -50,8 +50,8 @@ | |||
| 50 | 50 | var includes = (targetScript.getAttribute('include') || "").split(","); | |
| 51 | 51 | var excludes = (targetScript.getAttribute('exclude') || "").split(","); | |
| 52 | 52 | if (!inArray(excludes, 'mapbox-gl')) { | |
| 53 | - inputCSS("https://api.tiles.mapbox.com/mapbox-gl-js/v0.49.0/mapbox-gl.css"); | ||
| 54 | - inputScript("https://api.tiles.mapbox.com/mapbox-gl-js/v0.49.0/mapbox-gl.js"); | ||
| 53 | + inputCSS("http://iclient.supermap.io/web/libs/mapbox-gl-js/0.48.0/mapbox-gl.css"); | ||
| 54 | + inputScript("http://iclient.supermap.io/web/libs/mapbox-gl-js/0.48.0/mapbox-gl.js"); | ||
| 55 | 55 | } | |
| 56 | 56 | if (inArray(includes, 'draw')) { | |
| 57 | 57 | inputCSS("http://iclient.supermap.io/web/libs/mapbox-gl-js/plugins/mapbox-gl-draw/1.0.9/mapbox-gl-draw.css"); | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -92,8 +92,8 @@ function createSideBarMenuItem(id, config, containAll) { | |||
| 92 | 92 | a: for (var key in config.content) { | |
| 93 | 93 | var examples = config.content[key].content; | |
| 94 | 94 | if (examples) { | |
| 95 | - for (let index = 0; index < examples.length; index++) { | ||
| 96 | - const element = examples[index]; | ||
| 95 | + for (var index = 0; index < examples.length; index++) { | ||
| 96 | + var element = examples[index]; | ||
| 97 | 97 | if (element.version === window.version) { | |
| 98 | 98 | config.content[key].hasNewExamples = true; | |
| 99 | 99 | hasNewExamples = true; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -73,7 +73,7 @@ | |||
| 73 | 73 | if (idx > CHUNK_COUNT) { | |
| 74 | 74 | return; | |
| 75 | 75 | } | |
| 76 | - var dataURL = `http://iclient.supermap.io/web/data/bigdata_beijingroads/data_${idx}.bin`; | ||
| 76 | + var dataURL = "http://iclient.supermap.io/web/data/bigdata_beijingroads/data_" + idx + ".bin"; | ||
| 77 | 77 | var xhr = new XMLHttpRequest(); | |
| 78 | 78 | xhr.open('GET', dataURL, true); | |
| 79 | 79 | xhr.responseType = 'arraybuffer'; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -73,7 +73,7 @@ | |||
| 73 | 73 | if (idx > CHUNK_COUNT) { | |
| 74 | 74 | return; | |
| 75 | 75 | } | |
| 76 | - var dataURL = `http://iclient.supermap.io/web/data/bigdata_railway_10w/data_${idx}.bin`; | ||
| 76 | + var dataURL = "http://iclient.supermap.io/web/data/bigdata_railway_10w/data_" + idx + ".bin"; | ||
| 77 | 77 | var xhr = new XMLHttpRequest(); | |
| 78 | 78 | xhr.open('GET', dataURL, true); | |
| 79 | 79 | xhr.responseType = 'arraybuffer'; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -73,7 +73,7 @@ | |||
| 73 | 73 | if (idx > CHUNK_COUNT) { | |
| 74 | 74 | return; | |
| 75 | 75 | } | |
| 76 | - var dataURL = `http://iclient.supermap.io/web/data/bigdata_roads_50w/data_${idx}.bin`; | ||
| 76 | + var dataURL = "http://iclient.supermap.io/web/data/bigdata_roads_50w/data_" + idx + ".bin"; | ||
| 77 | 77 | var xhr = new XMLHttpRequest(); | |
| 78 | 78 | xhr.open('GET', dataURL, true); | |
| 79 | 79 | xhr.responseType = 'arraybuffer'; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -73,7 +73,7 @@ | |||
| 73 | 73 | if (idx > CHUNK_COUNT) { | |
| 74 | 74 | return; | |
| 75 | 75 | } | |
| 76 | - var dataURL = `http://iclient.supermap.io/web/data/bigdata_water_10w/data_${idx}.bin`; | ||
| 76 | + var dataURL = "http://iclient.supermap.io/web/data/bigdata_water_10w/data_" + idx + ".bin"; | ||
| 77 | 77 | var xhr = new XMLHttpRequest(); | |
| 78 | 78 | xhr.open('GET', dataURL, true); | |
| 79 | 79 | xhr.responseType = 'arraybuffer'; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -74,8 +74,7 @@ | |||
| 74 | 74 | if (idx >= CHUNK_COUNT) { | |
| 75 | 75 | return; | |
| 76 | 76 | } | |
| 77 | - var dataURL = `http://iclient.supermap.io/web/data/bigdata_nytaxi/data_${idx}.bin`; | ||
| 78 | - // var dataURL = `../mapboxgl/resultData_NY/bigData_${idx}.bin`; | ||
| 77 | + var dataURL = "http://iclient.supermap.io/web/data/bigdata_nytaxi/data_" + idx + ".bin"; | ||
| 79 | 78 | var xhr = new XMLHttpRequest(); | |
| 80 | 79 | xhr.open('GET', dataURL, true); | |
| 81 | 80 | xhr.responseType = 'arraybuffer'; | |
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -48,20 +48,20 @@ | |||
| 48 | 48 | var me = this; | |
| 49 | 49 | me._div = L.DomUtil.create('div'); | |
| 50 | 50 | me._div.style.width = '420px'; | |
| 51 | - me._div.innerHTML = `<div class='panel panel-primary editPane' id='editPane'> | ||
| 52 | - <div class='panel-heading'> | ||
| 53 | - <h5 class='panel-title text-center'>` + resources.text_classificationAnalysis + `</h5></div> | ||
| 54 | - <div class='panel-body content' id='classificationBody' '> | ||
| 55 | - <div class='panel'> | ||
| 56 | - <div class='input-group'> | ||
| 57 | - <span class='input-group-addon'>` + resources.text_classificationAnalysisType + `<span data-i18n="[title]resources.text_requiredField" style='color: red;'> * </span></span> | ||
| 58 | - <select class='form-control' id='classificationAnalyzeType' name='interpolationAnalyzeType'> | ||
| 59 | - <option value='nearestOption' selected>nearestAnalyze</option> | ||
| 60 | - </select> | ||
| 61 | - </div> | ||
| 62 | - </div> | ||
| 63 | - <div class='input-group' id="nearestBody"></div> | ||
| 64 | - </div>`; | ||
| 51 | + me._div.innerHTML = "<div class='panel panel-primary editPane' id='editPane'>"+ | ||
| 52 | + "<div class='panel-heading'>"+ | ||
| 53 | + "<h5 class='panel-title text-center'>" + resources.text_classificationAnalysis + "</h5></div>"+ | ||
| 54 | + "<div class='panel-body content' id='classificationBody' >"+ | ||
| 55 | + "<div class='panel'>"+ | ||
| 56 | + "<div class='input-group'>"+ | ||
| 57 | + "<span class='input-group-addon'>" + resources.text_classificationAnalysisType + "<span data-i18n='[title]resources.text_requiredField' style='color: red;'> * </span></span>"+ | ||
| 58 | + "<select class='form-control' id='classificationAnalyzeType' name='interpolationAnalyzeType'>"+ | ||
| 59 | + "<option value='nearestOption' selected>nearestAnalyze</option>"+ | ||
| 60 | + "</select>"+ | ||
| 61 | + "</div>"+ | ||
| 62 | + "</div>"+ | ||
| 63 | + "<div class='input-group' id='nearestBody'></div>"+ | ||
| 64 | + "</div>"; | ||
| 65 | 65 | handleMapEvent(me._div, me._map); | |
| 66 | 66 | return me._div; | |
| 67 | 67 | }; | |
| Back | FazBrowse Home | New Git URL |
0 commit comments