/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/simpleags.js (6935B)
var map, ov, iw, svc, marker; function init() { var myOptions = { zoom: 4, center: new google.maps.LatLng(40, -100), mapTypeId: google.maps.MapTypeId.ROADMAP, draggableCursor: 'default' } map = new google.maps.Map(document.getElementById("map_canvas"), myOptions); loadMapService(); google.maps.event.addListener(map, 'click', function(e) { doIdentify(e.latLng); }); google.maps.event.addListener(map, 'zoom_changed', updateTOC); google.maps.event.addListener(gmaps.ags.Util, 'jsonpstart', function() { document.getElementById('working').style.visibility = 'visible'; }); google.maps.event.addListener(gmaps.ags.Util, 'jsonpend', function() { document.getElementById('working').style.visibility = 'hidden'; }); } function loadMapService() { var el = document.getElementById('svc'); var s = el.options[el.selectedIndex].text; var url = 'http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/' + s; if (ov != null) { if (ov instanceof gmaps.ags.MapOverlay) { ov.setMap(null); } else if (ov instanceof gmaps.ags.MapType) { map.overlayMapTypes.removeAt(0); } ov = null; } svc = new gmaps.ags.MapService(url); google.maps.event.addListener(svc, 'load', function() { var bnds = svc.getInitialBounds(); if (bnds) { if (bnds.getSouthWest().lng() > bnds.getNorthEast().lng()) { map.setCenter(new google.maps.LatLng(40, -100)); map.setZoom(4); } else if (!bnds.contains(map.getCenter())){ map.fitBounds(bnds); } } var op = document.getElementById('op').value; if (svc.singleFusedMapCache) { ov = new gmaps.ags.MapType(svc, { opacity: op }); map.overlayMapTypes.insertAt(0, ov); } else { ov = new gmaps.ags.MapOverlay(svc, { opacity: op }); ov.setMap(map); } var svcInfo = 'This is a dynamic map svc. You can turn on/off individual layers using the check box.' if (svc.singleFusedMapCache) { svcInfo = 'This is a cached map svc. You can NOT turn on/off individual layers.' } document.getElementById('svcInfo').innerHTML = svcInfo; document.getElementById('svcDesc').innerHTML = svc.description + '
Copyright:' + svc.copyrightText; var clickOpts = ' '; }); } /** * Create layer list. */ function updateTOC() { if (ov && svc.hasLoaded()) { var toc = ''; var scale = 591657527.591555 / (Math.pow(2, map.getZoom()));//591657527.591555 is the scale at level 0 var layers = svc.layers; for (var i = 0; i < layers.length; i++) { var layer = layers[i]; var inScale = layer.isInScale(scale); toc += '
'; if (layer.subLayerIds) { toc += layer.name + '(group)
'; } else { if (layer.parentLayer) { toc += '    '; } toc += ''; } toc += '
'; } document.getElementById('toc').innerHTML = toc; } } /** * Check the visibility of layers and refresh map */ function setLayerVisibility() { var layers = svc.layers; for (var i = 0; i < layers.length; i++) { var el = document.getElementById('layer' + layers[i].id); if (el) { layers[i].visible = (el.checked === true); } } ov.refresh(); } function onClickOptionChanged() { if (marker != null) { doIdentify(marker.getPosition()); } } function doIdentify(location) { if (!location) return; if (iw) { iw.close(); } var layerOpt = document.getElementById('clickOpts').value; if (ov && svc.hasLoaded()) { var params = { geometry: location, layerOption: layerOpt || 'top', tolerance: 5, bounds: map.getBounds(), width: map.getDiv().offsetWidth, height: map.getDiv().offsetHeight, returnGeometry: false }; svc.identify(params, function(res, err) { if (err) { alert(err.message + '\n' + err.details.join('\n')); } else if (res.results) { processIdentifyResults(res, location); } }); } } function processIdentifyResults(res, ll) { var html = ''; if (res.results) { html += 'Total # of Results:' + res.results.length; for (var i = 0, c = res.results.length; i < c; i++) { var r = res.results[i]; if (i > 0) { html += '
'; } html += '
Result #' + (i + 1) + ': ' + r.value + '
'; html += ''; html += '
From layer: ' + r.layerName + '
'; var a = r.feature.attributes; for (var x in a) { if (a.hasOwnProperty(x)) { html += ''; html += ''; var val = a[x]; val = (val === null || typeof val === 'undefined') ? '' : '' + val; html += ''; } } html += '
' + x + '' + val + '
'; } //document.getElementById('info').innerHTML = html; if (!iw) { iw = new google.maps.InfoWindow(); } iw.setContent(html); iw.setPosition(ll); iw.open(map); if (marker == null) { marker = new google.maps.Marker({ position: ll, map: map }); } else { marker.setPosition(ll); } } } function setOVOpacity(op){ if (ov) { ov.setOpacity(op); } } window.onload = init; window['setLayerVisibility'] = setLayerVisibility; window['loadMapService']= loadMapService; window['setOVOpacity'] = setOVOpacity;