This repository has been archived by the owner on Feb 23, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 19
/
index.html
168 lines (165 loc) · 9.77 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
<!DOCTYPE html>
<html>
<head>
<title>Vector Basemap Style Editor</title>
<meta charset="utf-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no">
<meta name="mobile-web-app-capable" content="no">
<meta name="apple-mobile-web-app-capable" content="no">
<link rel="stylesheet" href="//js.arcgis.com/3.23/dojox/form/resources/CheckedMultiSelect.css">
<link rel="stylesheet" href="//js.arcgis.com/3.23/dojox/form/resources/RangeSlider.css">
<link rel="stylesheet" href="//js.arcgis.com/3.23/esri/themes/calcite/dijit/calcite.css">
<link rel="stylesheet" href="//js.arcgis.com/3.23/esri/themes/calcite/esri/esri.css">
<link rel="stylesheet" href="./css/main.css">
<link rel="stylesheet" href="./js/dijit/css/ColorSelectorDialog.css">
<link rel="stylesheet" href="./js/jsoneditor-master/dist/jsoneditor.css">
<script type="text/javascript">
var package_path = window.location.pathname.substring(0, window.location.pathname.lastIndexOf('/'));
var dojoConfig = {
async: true,
parseOnLoad: true,
packages: [
{ name: "application", location: package_path + '/js' },
{ name: "config", location: package_path + '/config' },
{ name: "arcgis_templates", location: package_path + '/..' }
]
};
</script>
<script type="text/javascript" src="//js.arcgis.com/3.23/"></script>
<script type="text/javascript">
require([
"dojo/ready",
"dojo/_base/lang",
"config/templateConfig",
"application/template",
"application/main",
"dijit/layout/BorderContainer",
"dijit/layout/TabContainer",
"dijit/layout/ContentPane",
"dijit/ConfirmDialog",
"dijit/Toolbar",
"dijit/form/Button",
"dijit/form/CheckBox",
"dijit/form/Select",
"dojox/form/CheckedMultiSelect",
"dojox/image/MagnifierLite"
], function (ready, lang, templateConfig, Template, Main) {
Main.displayMessage("Welcome...");
var myTemplate = new Template(templateConfig);
myTemplate.startup().then(function (config) {
ready(lang.hitch(this, function () {
var myApp = new Main(config);
myApp.startup();
}));
}, Main.displayMessage);
});
</script>
</head>
<body class="calcite">
<div id="main-container" data-dojo-type="dijit/layout/BorderContainer" data-dojo-props="gutters:false">
<div id="main-top-pane" data-dojo-type="dijit/layout/ContentPane" data-dojo-props="region:'top'">
<table id="app-title-section">
<tr>
<td>
<span id="app-title">Vector Basemap Style Editor <span class="beta-tag">BETA</span></span>
<span id="app-sub-title">
<a href="http://blogs.esri.com/esri/arcgis/tag/vector-basemap/" target="_blank">Esri Vector Basemaps</a>
<span> | </span>
<a href="https://www.mapbox.com/mapbox-gl-style-spec/" target="_blank">Style Reference</a>
<span> | </span>
<a href="https://github.com/jgrayson-apl/VectorBasemapStyleEditor" target="_blank">GitHub</a>
<span> | </span>
<a href="./resources/VectorBasemapStyleEditor_004/VectorBasemapStyleEditor_004.html" target="_blank">Show Me</a>
</span>
</td>
</tr>
</table>
<table id="portaluser-section"></table>
</div>
<div id="main-left-pane" data-dojo-type="dijit/layout/BorderContainer" data-dojo-props="region:'left',gutters:true,splitter:true">
<div id="main-left-top-container" data-dojo-type="dijit/layout/BorderContainer" data-dojo-props="region:'top',gutters:false,splitter:true">
<div id="main-left-top-toolbar" data-dojo-type="dijit/Toolbar" data-dojo-props="region:'top'">
<div id="create-copy-btn" data-dojo-type="dijit/form/Button" data-dojo-props="label:'Copy Esri Basemap Item',disabled:true"></div>
<div id="update-btn-node">
<div id="undo-btn" class="undo-redo-btn" data-dojo-type="dijit/form/Button" data-dojo-props="disabled:true,title:'Undo'">↶</div>
<div id="redo-btn" class="undo-redo-btn" data-dojo-type="dijit/form/Button" data-dojo-props="disabled:true,title:'Redo'">↷</div>
<div id="update-btn" data-dojo-type="dijit/form/Button" data-dojo-props="label:'Update Item',iconClass:'esri-icon-save',disabled:true"></div>
</div>
</div>
<div id="main-left-top-pane" data-dojo-type="dijit/layout/ContentPane" data-dojo-props="region:'center'">
<div id="item-list-node"></div>
</div>
</div>
<div id="main-right-pane" data-dojo-type="dijit/layout/ContentPane" data-dojo-props="region:'center'">
<div id="map-node" dir="ltr">
<div id="home-button-node"></div>
<div id="eye-tool-node" class="dijitHidden" style="text-align:center;">
<div id="eye-tool" data-dojo-type="dijit/form/ToggleButton" data-dojo-props="label:'Pick Color',iconClass:'dijitCheckBoxIcon'"></div>
<div style="padding:5px;">
<div id="find-nearest-chk" data-dojo-type="dijit/form/CheckBox"></div>
<label for="find-nearest-chk" title="If the exact color is not found, find and use the 'nearest' color based on r,g,b values...">Find Similar</label>
</div>
</div>
<div id="search-node"></div>
<div id="zoom-node" class="dijitHidden">Zoom: 1</div>
</div>
</div>
</div>
<div id="main-center-pane" data-dojo-type="dijit/layout/TabContainer" data-dojo-props="region:'center'">
<div id="full-list-container" data-dojo-type="dijit/layout/BorderContainer" data-dojo-props="title:'Style Layers',gutters:false">
<div id="full-list-toolbar" data-dojo-type="dijit/Toolbar" data-dojo-props="region:'top'">
<div id="clear-source-layer-filter" class="esri-icon esri-icon-close clear-node" title="clear all filters"></div>
<span id="select-all-filter" class="select-node dijitHidden" title="Display ALL"></span>
<span id="select-none-filter" class="select-node dijitHidden" title="Display NONE"></span>
<span data-dojo-type="dijit/ToolbarSeparator" class="dijitHidden"></span>
<!--<label for="current-zoom-chk" class="search-label">Current map zoom level:</label>-->
<label for="current-zoom-chk" class="search-label">Current Zoom Level:</label>
<div id="current-zoom-chk" data-dojo-type="dijit/form/CheckBox" data-dojo-props="checked:false"></div>
<!--<span data-dojo-type="dijit/ToolbarSeparator"></span>-->
<label for="filter-input" class="search-label">Search:</label>
<div id="filter-input" data-dojo-type="dijit/form/TextBox" data-dojo-props="intermediateChanges:true,placeHolder:'enter filter here',style:{width:'200px'}"></div>
<!--<span data-dojo-type="dijit/ToolbarSeparator"></span>-->
<span class="search-label">source-layer:</span>
<span id="source-layer-combo"></span>
<!--<span class="search-label">type:</span>-->
<!--<div id="style-layer-type-select-2" data-dojo-type="dijit/form/Select" data-dojo-props="labelAttr:'name'"></div>-->
</div>
<div id="full-list-pane" data-dojo-type="dijit/layout/ContentPane" data-dojo-props="region:'center'">
<div id="full-list-node"></div>
</div>
</div>
<div id="search-container" data-dojo-type="dijit/layout/BorderContainer" data-dojo-props="gutters:false,title:'Find By Color'">
<div id="search-options-container" data-dojo-type="dijit/layout/BorderContainer" data-dojo-props="region:'top',gutters:false">
<div id="style-layer-pane" data-dojo-type="dijit/layout/ContentPane" data-dojo-props="region:'left'">
<div class="search-label">Style Type</div>
<div id="style-layer-type-select" data-dojo-type="dojox/form/CheckedMultiSelect" data-dojo-props="dropDown:false,multiple:true,labelAttr:'name'"></div>
</div>
<div id="color-pallet-pane" data-dojo-type="dijit/layout/ContentPane" data-dojo-props="region:'center'">
<div class="search-label">Basemap Color Palette</div>
<div id="color-pallet-node"></div>
</div>
<div id="search-toolbar" data-dojo-type="dijit/Toolbar" data-dojo-props="region:'bottom'">
<div id="color-search-replace-node">
<label class="search-label">Replace</label>
<span id="replace-source-color-node" class="replace-color-pane"></span>
<label>with</label>
<span id="replace-target-color-node" class="replace-color-pane"></span>
<div id="replace-color-btn" data-dojo-type="dijit/form/Button" data-dojo-props="label:'Replace Color'"></div>
</div>
</div>
</div>
<div id="search-pane" data-dojo-type="dijit/layout/ContentPane" data-dojo-props="region:'center'">
<div id="search-results-node"></div>
</div>
</div>
<!--<div id="json-editor-container" data-dojo-type="dijit/layout/BorderContainer" data-dojo-props="title:'Style JSON',gutters:true">
<div id="json-editor-pane" data-dojo-type="dijit/layout/ContentPane" data-dojo-props="region:'center'">
<div id="json-editor-node"></div>
</div>
</div>-->
</div>
</div>
<div id="style-layer-editor-dialog" data-dojo-type="dijit/ConfirmDialog" data-dojo-props="title:'Edit Style Layer Property',closable:false"></div>
</body>
</html>