/home/desid573/phewl.desidrivers.com.au/v3-utility-library-master/arcgislink/examples
NameSizeModeActions
arcgisonline.html11660644editdlrm
arcgisonline.js15130644editdlrm
arcgisonline_all_compiled.html10980644editdlrm
arcgisonline_compiled.js200690644editdlrm
arcgisonline_lib_compiled.html11750644editdlrm
buffer.html11740644editdlrm
buffer.js31750644editdlrm
buffer_all_compiled.html10960644editdlrm
buffer_compiled.js134810644editdlrm
buffer_lib_compiled.html11830644editdlrm
combined.html12010644editdlrm
combined.js8910644editdlrm
combined_all_compiled.html11230644editdlrm
combined_compiled.js217860644editdlrm
combined_lib_compiled.html12100644editdlrm
coverarea.html11960644editdlrm
coverarea.js23840644editdlrm
coverarea_all_compiled.html11180644editdlrm
coverarea_compiled.js124270644editdlrm
coverarea_lib_compiled.html12050644editdlrm
directionbuffer.html36220644editdlrm
dynamap.html12000644editdlrm
dynamap.js7170644editdlrm
dynamap_all_compiled.html11220644editdlrm
dynamap_compiled.js185580644editdlrm
dynamap_lib_compiled.html12090644editdlrm
dynatype.html11910644editdlrm
dynatype.js6990644editdlrm
dynatype_all_compiled.html11130644editdlrm
dynatype_compiled.js185100644editdlrm
dynatype_lib_compiled.html12000644editdlrm
find.html17700644editdlrm
find.js34530644editdlrm
find_all_compiled.html16920644editdlrm
find_compiled.js144510644editdlrm
find_lib_compiled.html17790644editdlrm
geocode.html11760644editdlrm
geocode.js25920644editdlrm
geocode_all_compiled.html10980644editdlrm
geocode_compiled.js135320644editdlrm
geocode_lib_compiled.html11850644editdlrm
hosts.html11980644editdlrm
hosts.js7820644editdlrm
hosts_all_compiled.html11200644editdlrm
hosts_compiled.js184860644editdlrm
hosts_lib_compiled.html12070644editdlrm
hourglass.html14160644editdlrm
hourglass.js12570644editdlrm
hourglass_all_compiled.html13380644editdlrm
hourglass_compiled.js183830644editdlrm
hourglass_lib_compiled.html14250644editdlrm
layerdef.html11860644editdlrm
layerdef.js16770644editdlrm
layerdef_all_compiled.html11080644editdlrm
layerdef_compiled.js184800644editdlrm
layerdef_lib_compiled.html11950644editdlrm
layerquery.html11830644editdlrm
layerquery.js29740644editdlrm
layerquery_all_compiled.html11050644editdlrm
layerquery_compiled.js130690644editdlrm
layerquery_lib_compiled.html11920644editdlrm
layervis.html15030644editdlrm
layervis.js13550644editdlrm
layervis_all_compiled.html14250644editdlrm
layervis_compiled.js183760644editdlrm
layervis_lib_compiled.html15120644editdlrm
libapp.html19280644editdlrm
libapp.js28810644editdlrm
libapp_all_compiled.html13210644editdlrm
libapp_compiled.js148770644editdlrm
libapp_lib_compiled.html14080644editdlrm
maptypeoverlay.html11920644editdlrm
maptypeoverlay.js5590644editdlrm
maptypeoverlay_all_compiled.html11140644editdlrm
maptypeoverlay_compiled.js183970644editdlrm
maptypeoverlay_lib_compiled.html12010644editdlrm
mercator.html11910644editdlrm
mercator.js6770644editdlrm
mercator_all_compiled.html11130644editdlrm
mercator_compiled.js184310644editdlrm
mercator_lib_compiled.html12000644editdlrm
nexus.html13520644editdlrm
nexus2.html14940644editdlrm
nexus_h.jpg178190644editdlrm
nexus_v.jpg182650644editdlrm
opacity.html48060644editdlrm
project.html11790644editdlrm
project.js25750644editdlrm
project_all_compiled.html11010644editdlrm
project_compiled.js128140644editdlrm
project_lib_compiled.html11880644editdlrm
reverse.html11760644editdlrm
reverse.js17070644editdlrm
reverse_all_compiled.html10980644editdlrm
reverse_compiled.js130700644editdlrm
reverse_lib_compiled.html11850644editdlrm
routebarriers.html29610644editdlrm
routebarriers.js35750644editdlrm
routebarriers_all_compiled.html28830644editdlrm
routebarriers_compiled.js132460644editdlrm
routebarriers_lib_compiled.html29700644editdlrm
routebarrier_compiled.js191100644editdlrm
simpleags.html41740644editdlrm
simpleags.js69350644editdlrm
simpleags_all_compiled.html40920644editdlrm
simpleags_compiled.js266650644editdlrm
simpleags_lib_compiled.html41830644editdlrm
stateplane.html13400644editdlrm
stateplane.js16520644editdlrm
stateplane_all_compiled.html12620644editdlrm
stateplane_compiled.js193180644editdlrm
stateplane_lib_compiled.html13490644editdlrm
Edit: /home/desid573/phewl.desidrivers.com.au/v3-utility-library-master/arcgislink/examples/find.js (3453B)
var results = [], map, service, iw; 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); service = new gmaps.ags.MapService("http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Specialty/ESRI_StatesCitiesRivers_USA/MapServer"); google.maps.event.addListenerOnce(service, 'load', function() { document.getElementById('find').disabled = false; }); google.maps.event.addListener(gmaps.ags.Util, 'jsonpstart', function() { document.getElementById('busy').style.visibility = 'visible'; }); google.maps.event.addListener(gmaps.ags.Util, 'jsonpend', function() { document.getElementById('busy').style.visibility = 'hidden'; }); iw = new google.maps.InfoWindow(); } // find results ... function find(q) { removeOverlays(); if (iw) iw.close(); document.getElementById('results').innerHTML = ''; var exact = document.getElementById('exact').checked; var params = { returnGeometry: true, searchText: q, contains: !exact, layerIds: [0, 2], // city, state searchFields: ["CITY_NAME", "NAME", "SYSTEM", "STATE_ABBR", "STATE_NAME"], sr: 4326 }; service.find(params, processFindResults); } function processFindResults(rs) { var fs = rs.results; for (var i = 0, c = fs.length; i < c; i++) { processFindResult(fs[i]); } } function processFindResult(res) { var feat = res.feature; var ovs = feat.geometry; var a = feat.attributes; var title = res.layerName + ':' + res.foundFieldName + ' = ' + res.value + '
'; var html = '
'; html += '' + title + ''; for (var x in a) { if (a.hasOwnProperty(x)) { html += x + ': ' + a[x] + '
'; } } html += '
'; for (var j = 0, jc = ovs.length; j < jc; j++) { var ov = ovs[j]; google.maps.event.addListener(ov, 'click', function() { var latlng = ov.getPosition ? ov.getPosition() : getPolyCenter(ov); iw.setContent(html); iw.setPosition(latlng); iw.open(map); }); results.push(ov); ov.setMap(map); } var side = document.getElementById('results'); var row = '
' + title + '
' side.innerHTML += row; } function highlight(i) { var ov = results[i]; if (ov) { google.maps.event.trigger(ov, 'click'); } } function getPolyCenter(poly) { var paths, path, latlng; var lat = 0; var lng = 0; var c = 0; paths = poly.getPaths(); for (var j = 0, jc = paths.getLength(); j < jc; j++) { path = paths.getAt(j); for (var k = 0, kc = path.getLength(); k < kc; k++) { latlng = path.getAt(k); lat += latlng.lat(); lng += latlng.lng(); c++; } } if (c > 0) { return new google.maps.LatLng(lat / c, lng / c); } return null; } function removeOverlays() { if (results) { for (var i = 0; i < results.length; i++) { results[i].setMap(null); } results.length = 0; } } window.onload = init; window['find'] = find; window['highlight']= highlight;