/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/layerquery.js (2974B)
var map = null; // keep track of highlight for devices without mouse var highlighted = null; var iw = null; var hStyle = { fillColor: '#883333', fillOpacity: 0.35, strokeColor: '#FF0000', strokeWeight: 3, zIndex: 100, strokeOpacity: 1 }; var style = { fillColor: '#333388', fillOpacity: 0.35, strokeColor: '#FFFFFF', strokeWeight: 1, strokeOpacity: 1, zIndex: 0 }; function init() { var myOptions = { zoom: 6, center: new google.maps.LatLng(43, -106), mapTypeId: google.maps.MapTypeId.ROADMAP }; map = new google.maps.Map(document.getElementById("map_canvas"), myOptions); var url = 'http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Demographics/ESRI_Census_USA/MapServer'; var layer = new gmaps.ags.Layer(url + '/3'); var params = { returnGeometry: true, where: "STATE_NAME = 'Utah'", outFields: ["NAME", "POP2000", "POP2007", "POP00_SQMI", "POP07_SQMI"], overlayOptions: style }; layer.query(params, processResultSet); } function processResultSet(rs) { var fs = rs.features; for (var i = 0, c = fs.length; i < c; i++) { setupFeature(fs[i]); } } function setupFeature(feat) { var a = feat.attributes; var html = "
" + a['NAME'] + "
" + "2000 Population: " + a['POP2000'] + "
" + "2000 Population per Sq. Mi.: " + a['POP00_SQMI'] + "
" + "2007 Population: " + a['POP2007'] + "
" + "2007 Population per Sq. Mi.: " + a['POP07_SQMI'] + '
'; var g = feat.geometry[0];//V3 supports multiple rings, so should have only 1 element var latlng = getPolyCenter(g); g.setMap(map); google.maps.event.addListener(g, 'mouseover', function() { highlight(g, html, latlng); }); google.maps.event.addListener(g, 'mouseout', function() { g.setOptions(style); if (iw) { iw.close(); } }); google.maps.event.addListener(g, 'click', function() { highlight(g, html, latlng); }); } 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 highlight(g, html, latlng) { if (highlighted) { highlighted.setOptions(style); } g.setOptions(hStyle); highlighted = g; if (!iw) { iw = new google.maps.InfoWindow({ content: html, position: latlng, maxWidth: 240 }); } else { iw.setContent(html); iw.setPosition(latlng); } iw.open(map); } window.onload = init;