/
home
/
desid573
/
phewl.desidrivers.com.au
/
v3-utility-library-master
/
arcgislink
/
examples
/
/home/desid573/phewl.desidrivers.com.au/v3-utility-library-master/arcgislink/examples
mkdir
upload
Name
Size
Mode
Actions
arcgisonline.html
1166
0644
edit
dl
rm
arcgisonline.js
1513
0644
edit
dl
rm
arcgisonline_all_compiled.html
1098
0644
edit
dl
rm
arcgisonline_compiled.js
20069
0644
edit
dl
rm
arcgisonline_lib_compiled.html
1175
0644
edit
dl
rm
buffer.html
1174
0644
edit
dl
rm
buffer.js
3175
0644
edit
dl
rm
buffer_all_compiled.html
1096
0644
edit
dl
rm
buffer_compiled.js
13481
0644
edit
dl
rm
buffer_lib_compiled.html
1183
0644
edit
dl
rm
combined.html
1201
0644
edit
dl
rm
combined.js
891
0644
edit
dl
rm
combined_all_compiled.html
1123
0644
edit
dl
rm
combined_compiled.js
21786
0644
edit
dl
rm
combined_lib_compiled.html
1210
0644
edit
dl
rm
coverarea.html
1196
0644
edit
dl
rm
coverarea.js
2384
0644
edit
dl
rm
coverarea_all_compiled.html
1118
0644
edit
dl
rm
coverarea_compiled.js
12427
0644
edit
dl
rm
coverarea_lib_compiled.html
1205
0644
edit
dl
rm
directionbuffer.html
3622
0644
edit
dl
rm
dynamap.html
1200
0644
edit
dl
rm
dynamap.js
717
0644
edit
dl
rm
dynamap_all_compiled.html
1122
0644
edit
dl
rm
dynamap_compiled.js
18558
0644
edit
dl
rm
dynamap_lib_compiled.html
1209
0644
edit
dl
rm
dynatype.html
1191
0644
edit
dl
rm
dynatype.js
699
0644
edit
dl
rm
dynatype_all_compiled.html
1113
0644
edit
dl
rm
dynatype_compiled.js
18510
0644
edit
dl
rm
dynatype_lib_compiled.html
1200
0644
edit
dl
rm
find.html
1770
0644
edit
dl
rm
find.js
3453
0644
edit
dl
rm
find_all_compiled.html
1692
0644
edit
dl
rm
find_compiled.js
14451
0644
edit
dl
rm
find_lib_compiled.html
1779
0644
edit
dl
rm
geocode.html
1176
0644
edit
dl
rm
geocode.js
2592
0644
edit
dl
rm
geocode_all_compiled.html
1098
0644
edit
dl
rm
geocode_compiled.js
13532
0644
edit
dl
rm
geocode_lib_compiled.html
1185
0644
edit
dl
rm
hosts.html
1198
0644
edit
dl
rm
hosts.js
782
0644
edit
dl
rm
hosts_all_compiled.html
1120
0644
edit
dl
rm
hosts_compiled.js
18486
0644
edit
dl
rm
hosts_lib_compiled.html
1207
0644
edit
dl
rm
hourglass.html
1416
0644
edit
dl
rm
hourglass.js
1257
0644
edit
dl
rm
hourglass_all_compiled.html
1338
0644
edit
dl
rm
hourglass_compiled.js
18383
0644
edit
dl
rm
hourglass_lib_compiled.html
1425
0644
edit
dl
rm
layerdef.html
1186
0644
edit
dl
rm
layerdef.js
1677
0644
edit
dl
rm
layerdef_all_compiled.html
1108
0644
edit
dl
rm
layerdef_compiled.js
18480
0644
edit
dl
rm
layerdef_lib_compiled.html
1195
0644
edit
dl
rm
layerquery.html
1183
0644
edit
dl
rm
layerquery.js
2974
0644
edit
dl
rm
layerquery_all_compiled.html
1105
0644
edit
dl
rm
layerquery_compiled.js
13069
0644
edit
dl
rm
layerquery_lib_compiled.html
1192
0644
edit
dl
rm
layervis.html
1503
0644
edit
dl
rm
layervis.js
1355
0644
edit
dl
rm
layervis_all_compiled.html
1425
0644
edit
dl
rm
layervis_compiled.js
18376
0644
edit
dl
rm
layervis_lib_compiled.html
1512
0644
edit
dl
rm
libapp.html
1928
0644
edit
dl
rm
libapp.js
2881
0644
edit
dl
rm
libapp_all_compiled.html
1321
0644
edit
dl
rm
libapp_compiled.js
14877
0644
edit
dl
rm
libapp_lib_compiled.html
1408
0644
edit
dl
rm
maptypeoverlay.html
1192
0644
edit
dl
rm
maptypeoverlay.js
559
0644
edit
dl
rm
maptypeoverlay_all_compiled.html
1114
0644
edit
dl
rm
maptypeoverlay_compiled.js
18397
0644
edit
dl
rm
maptypeoverlay_lib_compiled.html
1201
0644
edit
dl
rm
mercator.html
1191
0644
edit
dl
rm
mercator.js
677
0644
edit
dl
rm
mercator_all_compiled.html
1113
0644
edit
dl
rm
mercator_compiled.js
18431
0644
edit
dl
rm
mercator_lib_compiled.html
1200
0644
edit
dl
rm
nexus.html
1352
0644
edit
dl
rm
nexus2.html
1494
0644
edit
dl
rm
nexus_h.jpg
17819
0644
edit
dl
rm
nexus_v.jpg
18265
0644
edit
dl
rm
opacity.html
4806
0644
edit
dl
rm
project.html
1179
0644
edit
dl
rm
project.js
2575
0644
edit
dl
rm
project_all_compiled.html
1101
0644
edit
dl
rm
project_compiled.js
12814
0644
edit
dl
rm
project_lib_compiled.html
1188
0644
edit
dl
rm
reverse.html
1176
0644
edit
dl
rm
reverse.js
1707
0644
edit
dl
rm
reverse_all_compiled.html
1098
0644
edit
dl
rm
reverse_compiled.js
13070
0644
edit
dl
rm
reverse_lib_compiled.html
1185
0644
edit
dl
rm
routebarriers.html
2961
0644
edit
dl
rm
routebarriers.js
3575
0644
edit
dl
rm
routebarriers_all_compiled.html
2883
0644
edit
dl
rm
routebarriers_compiled.js
13246
0644
edit
dl
rm
routebarriers_lib_compiled.html
2970
0644
edit
dl
rm
routebarrier_compiled.js
19110
0644
edit
dl
rm
simpleags.html
4174
0644
edit
dl
rm
simpleags.js
6935
0644
edit
dl
rm
simpleags_all_compiled.html
4092
0644
edit
dl
rm
simpleags_compiled.js
26665
0644
edit
dl
rm
simpleags_lib_compiled.html
4183
0644
edit
dl
rm
stateplane.html
1340
0644
edit
dl
rm
stateplane.js
1652
0644
edit
dl
rm
stateplane_all_compiled.html
1262
0644
edit
dl
rm
stateplane_compiled.js
19318
0644
edit
dl
rm
stateplane_lib_compiled.html
1349
0644
edit
dl
rm
Edit:
/home/desid573/phewl.desidrivers.com.au/v3-utility-library-master/arcgislink/examples/geocode.js
(2592B)
var map, geocoder, iw, markers, form; function init() { var myOptions = { zoom: 4, center: new google.maps.LatLng(40, -100), mapTypeId: google.maps.MapTypeId.ROADMAP } map = new google.maps.Map(document.getElementById("map_canvas"), myOptions); geocoder = new gmaps.ags.GeocodeService('http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Locators/ESRI_Geocode_USA/GeocodeServer'); google.maps.event.addListenerOnce(geocoder, 'load', function() { var fields = geocoder.addressFields; form = ''; for (var i = 0; i < fields.length; i++) { form += fields[i].alias + ': <input type=text size=25 id="' + fields[i].name + '"/><br/>'; } form += '<input type="button" onclick="geocode()" value="Geocode!"/>'; iw = new google.maps.InfoWindow({ maxWidth: 200, content: form, position: map.getCenter() }); iw.open(map); }); } function geocode() { if (markers) { for (var i = 0; i < markers.length; i++) { markers[i].setMap(null); } markers.length = 0; } /* * inputs = { Address: '380 new york st', State: 'CA', City: 'redlands', Zip: '92373' } */ var inputs = {}; var fields = geocoder.addressFields; for (var i = 0; i < fields.length; i++) { inputs[fields[i].name] = document.getElementById(fields[i].name).value; } geocoder.findAddressCandidates({ inputs: inputs }, function(results) { markers = []; if (results.candidates) { for (var i = 0, c = results.candidates.length; i < c; i++) { var marker = createMarker(results.candidates[i]); marker.setMap(map); markers.push(marker); if (i == 0) { map.setCenter(marker.getPosition()); map.setZoom(15); google.maps.event.trigger(marker, 'click'); } } } }); } function createMarker(gc) { var html = 'Matched Address:' + gc.address + '<br/>' + 'Score:' + gc.score + '<br/>'; if (gc.attributes) { var attrs = gc.attributes; for (var x in attrs) { if (attrs.hasOwnProperty(x)) { html += x + attrs[x] + '<br/>'; } } } var latlng = gc.location; var marker = new google.maps.Marker({ title: gc.address, position: latlng }); google.maps.event.addListener(marker, 'click', function() { iw.setContent(form + '<br/>' + html); iw.setPosition(latlng); iw.open(map); }); return marker; } window.onload = init; window['geocode'] = geocode;
Save
cmd:
run