/
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/project.js
(2575B)
var map, svc, iw, pt; //gmaps.ags.Config.proxyUrl = '/proxy/proxy.ashx'; function init() { var myOptions = { zoom: 15, center: new google.maps.LatLng(61.18, -149.86), mapTypeId: google.maps.MapTypeId.ROADMAP, draggableCursor: 'default' } map = new google.maps.Map(document.getElementById("map_canvas"), myOptions); svc = new gmaps.ags.GeometryService('http://sampleserver1.arcgisonline.com/arcgis/rest/services/Geometry/GeometryServer'); google.maps.event.addListener(map, 'click', function(evt) { projectTo(evt.latLng); }); iw = new google.maps.InfoWindow({ maxWidth: 200, content: 'Click map to project the clicked point to Alaska Albers Feet Projection', position: map.getCenter() }); iw.open(map); } function projectToLatLng() { var params = { geometries: [pt], geometryType: gmaps.ags.GeometryType.POINT, inSpatialReference: 2964, outSpatialReference: 4326 }; svc.project(params, function(projectResults, err) { if (!err) { //projectResults.geometries is array of array var marker = projectResults.geometries[0][0]; var latlng = marker.getPosition(); alert(latlng.toString()); } else { alert(err.message + err.details.join(',')); } }); } function projectTo(latlng) { // NAD_1927_Alaska_Albers_Feet: // PROJCS["NAD_1927_Alaska_Albers_Feet",GEOGCS["GCS_North_American_1927",DATUM["D_North_American_1927",SPHEROID["Clarke_1866",6378206.4,294.9786982]],PRIMEM["Greenwich",0.0],UNIT["Degree",0.0174532925199433]],PROJECTION["Albers"],PARAMETER["False_Easting",0.0],PARAMETER["False_Northing",0.0],PARAMETER["Central_Meridian",-154.0],PARAMETER["Standard_Parallel_1",55.0],PARAMETER["Standard_Parallel_2",65.0],PARAMETER["Latitude_Of_Origin",50.0],UNIT["Foot_US",0.3048006096012192]] if (latlng) { var params = { geometries: [latlng], outSpatialReference: 2964, inSpatialReference: 4326 } svc.project(params, function(results, err) { if (!err) { pt = results.geometries[0]; var html = latlng.toString() + '<br/><b>NAD_1927_Alaska_Albers</b><p> x: ' + pt.x + ', <br/> y: ' + pt.y; html += '<br><input type="button" value="Back to LatLong" onclick="projectToLatLng();" />'; iw.setPosition(latlng); iw.setContent(html); iw.open(map); } else { alert(err.message + err.details.join(',')); } }); } } window.onload = init; window['projectToLatLng'] = projectToLatLng;
Save
cmd:
run