/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/buffer.js (3175B)
var map, svc, iw, skip; var poly, map; var markers = []; var buffers = []; var path = new google.maps.MVCArray(); // If very complex geometry then it's a good idea to set up your proxy. //gmaps.ags.Config.proxyUrl = '/proxy/proxy.ashx'; function init() { var myOptions = { zoom: 15, center: new google.maps.LatLng(35.23, -80.84), mapTypeId: google.maps.MapTypeId.ROADMAP, mapTypeControlOptions: { mapTypeIds: [google.maps.MapTypeId.ROADMAP] } } map = new google.maps.Map(document.getElementById("map_canvas"), myOptions); poly = new google.maps.Polygon({ strokeWeight: 3, fillColor: '#5555FF' }); poly.setMap(map); poly.setPaths(new google.maps.MVCArray([path])); google.maps.event.addListener(map, 'click', addPoint); svc = new gmaps.ags.GeometryService('http://sampleserver3.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer'); iw = new google.maps.InfoWindow({ maxWidth: 250, content: 'Draw polygon by:', position: map.getCenter() }); iw.open(map); } function addPoint(event) { // maybe a V3 bug: map click event should not triger by poly click if (iw) { iw.close(); iw = null; } path.insertAt(path.length, event.latLng); var marker = new google.maps.Marker({ position: event.latLng, map: map, draggable: true }); markers.push(marker); marker.setTitle("#" + path.length); google.maps.event.addListener(marker, 'click', function() { marker.setMap(null); for (var i = 0, I = markers.length; i < I; i++) { if (markers[i] == marker) { markers.splice(i, 1); path.removeAt(i); break; } } doBuffer(); }); google.maps.event.addListener(marker, 'dragend', function() { for (var i = 0, I = markers.length; i < I; i++) { if (markers[i] == marker) { path.setAt(i, marker.getPosition()); break; } } doBuffer(); }); doBuffer(); } function doBuffer() { if (markers.length > 2) { for (var i = 0; i < buffers.length; i++) { buffers[i].setMap(null); } buffers.length = 0; var params = { geometries: [poly], bufferSpatialReference: 102113,//gmaps.ags.SpatialReference.WEB_MERCATOR, distances: [500, 1000], unit: 9001, unionResults: true, overlayOptions:{clickable:false} }; svc.buffer(params, function(results, err) { if (!err) { var g; for (var i = 0, I = results.geometries.length; i < I; i++) { for (var j = 0, J = results.geometries[i].length; j < J; j++) { g = results.geometries[i][j]; g.setMap(map); buffers.push(g); } } } else { alert(err.message + err.details.join(',')); } }); } } function closeWin(){ if (iw) { iw.close(); } } window.onload = init; window['closeWin'] = closeWin;