POST
|
Where can I download a local copy of the Esri Maps for SharePoint JavaScript and HTML files. I want to update my configuration to point at a local copy: The EsriMapsWebRoot is the URL that hosts the Esri Maps for SharePoint JavaScript and HTML files. The default URL is http://la.arcgis.com, but, if necessary, you can use this property to specify a local copy of the files to allow the product to work within your firewall. Cheers
... View more
06-26-2014
03:01 PM
|
0
|
3
|
3984
|
POST
|
When trying to do a search in Esri Maps for Sharepoint 2.1, I'm getting this error message. The reason is that I have a different basemap setup in a different projection and when I used the search after editing to fins a location it doesn't put a point on the map because it's in another projection. [ATTACH=CONFIG]32423[/ATTACH] Is there anyway to get this to project onto the map properly?
... View more
03-22-2014
05:44 PM
|
0
|
0
|
1709
|
POST
|
In the current version if you've got a text field, you can set the "Allow NULL Values" field property to No and this will make the field required in collector. For domain values though it doesn't seem to work.
... View more
03-10-2014
05:52 PM
|
2
|
0
|
192
|
POST
|
I'm wondering if it's possible in the current or future release of Collector to do a reverse geocode to populate a field. So what I want is to get the location of the point captured to populate onto a field. So basically do a reverse geocode of address points based on the persons location and populate a field in the feature service. Is that a feature people are interested in?
... View more
03-05-2014
05:55 PM
|
0
|
2
|
1073
|
POST
|
Maybe get the XY coordinates of the geocoded point then do an identify on each of the layers that you'd like to test and see if any results are returned.
... View more
02-16-2014
10:19 PM
|
0
|
0
|
211
|
POST
|
You mean displaying the distance of the line / area of the polygon as you move it? Yeah this can be done. I've done it in Flex and Silverlight before anyway. Have a look at this one in Flex - http://test1.ecan.govt.nz/ViewerDemonstrations/index.html?config=config-drawing.xml When start digitising a line it says how long it is. Maybe look at the code for that to get some ideas. You just need to listen to mouse movements and query the geometry service to update dynamic text.
... View more
02-16-2014
10:16 PM
|
0
|
0
|
288
|
POST
|
Yeah I did manage to get it working. This is the function I used. // Locate the closest feature function getClosestFeature(evt) { // Setup the report progress bar and show it $("#closestFeatureLoadBar").progressbar({ value: false }); $("#closestFeatureLoadBar").show(); // Clear previous grpahics app.map.graphics.clear(); // Get the map click point and add it as a location var inPoint = new esri.geometry.Point(evt.mapPoint.x, evt.mapPoint.y, app.map.spatialReference); var location = new esri.Graphic(inPoint, configOptions.markerSymbol); // Add map click to map app.map.graphics.add(location); // Push map click into incident parameter var features = []; features.push(location); var incidents = new esri.tasks.FeatureSet(); incidents.features = features; // Get the facility features from the map service var dataLayer = new esri.tasks.DataFile({ url: configOptions.facilitiesURL + "/query?where=1%3D1&returnGeometry=true&outFields=*&f=json" }); // Setup the parameters for the closest facility var closestFacilityParams = { "incidents": incidents, "facilities": dataLayer, "cutoff": configOptions.cutOffTime, "route_shape": "True Shape", "populate_directions": true, "directions_language": "en", "directions_distance_units": "Meters", "directions_style_name": "NA Desktop" } // Setup closest facility task // If service is secure get token var closestFacilityTask; if (configOptions.closestFacilityService.secure === "true" || configOptions.closestFacilityService.secure === true) { // Make the request getToken(configOptions.closestFacilityService.tokenURL, configOptions.closestFacilityService.username, configOptions.closestFacilityService.password, function (token) { closestFacilityTask = new esri.tasks.Geoprocessor(configOptions.closestFacilityService.url + "?token=" + token); closestFacilityTask.outSpatialReference = app.map.spatialReference; // Submit the closest facility tool task closestFacilityTask.submitJob(closestFacilityParams, completeCallback); }); } else { closestFacilityTask = new esri.tasks.Geoprocessor(configOptions.closestFacilityService.url); closestFacilityTask.outSpatialReference = app.map.spatialReference; // Submit the closest facility tool task closestFacilityTask.submitJob(closestFacilityParams, completeCallback, taskFailed); } // When task is complete function completeCallback(jobInfo) { // If job completed successfully if (jobInfo.jobStatus !== "esriJobFailed") { // When route and directions returned closestFacilityTask.getResultData(jobInfo.jobId, "output_routes", getRoute); closestFacilityTask.getResultData(jobInfo.jobId, "output_directions", getDirections); } // If failed else { // Show the error message - Get from job info messages alert(configOptions.errorMessageText + jobInfo.messages[6].description); } // Hide progress bar $("#closestFeatureLoadBar").hide(); // Go back to identify mode clickmode = 'identify'; changeCursor(clickmode); } // Get route result function getRoute(result) { // For each of the features returned $.each(result.value.features, function () { // Add facility to map var layerOID = this.attributes.FacilityID; var queryTask = new esri.tasks.QueryTask(configOptions.facilitiesURL); var query = new esri.tasks.Query(); query.where = "OBJECTID = " + layerOID; query.outSpatialReference = app.map.spatialReference; query.returnGeometry = true; query.outFields = ["*"]; queryTask.execute(query, function (results) { // For each of the results returned $.each(results.features, function () { var facility = new esri.Graphic(this.geometry, configOptions.markerSymbol); // Add point to map app.map.graphics.add(facility); }); }); // Add the route to the map var route = new esri.geometry.Polyline(this.geometry); var graphic = new esri.Graphic(route, configOptions.routeLineSymbol); app.map.graphics.add(graphic); // Zoom to feature and expand out extent var extent = graphic.geometry.getExtent(); app.map.setExtent(extent.expand(configOptions.routeZoomBuffer)); }); } // Get directions result function getDirections(result) { // For each of the features returned var directionsText = ""; var count = 0; $.each(result.value.features, function () { var directions = this.attributes.Text; var distance = Math.round(this.attributes.DriveDistance * 100) / 100; var time = Math.round(this.attributes.ElapsedTime * 100) / 100; // If not the first line then add paragraph and directions if (count != 0) { directionsText = directionsText + "</br></br><B>" + directions + "</B>"; // Add in distance and time if necessary if (distance > 0) { directionsText = directionsText + "</br>" + distance + " metres"; } if (time > 0) { directionsText = directionsText + "</br>" + time + " minutes"; } } // Add starting text else { directionsText = directionsText + "<B>Starting from your location</B>"; } count = count + 1; }); // // Populate and show info window - Desktop version if (currentPage.indexOf("map") != -1) { app.map.infoWindow.hide(); // Size of infoWindow app.map.infoWindow.resize(configOptions.infowWindowSize[0], configOptions.infowWindowSize[1]); app.map.infoWindow.setTitle("Directions"); // Set location of info window var screenPoint = new esri.geometry.ScreenPoint((app.map.width / 1.5), (app.map.height / 2)); // Set info window content app.map.infoWindow.setContent("<div id='directionsContent'></div>"); $("#directionsContent").append(directionsText); app.map.infoWindow.show(screenPoint, app.map.getInfoWindowAnchor(screenPoint)); } } }
... View more
02-06-2014
11:40 AM
|
0
|
0
|
545
|
POST
|
I've noticed that the register web adaptor through the REST API doesn't seem to be working e.g. Go to this url - http://server:port/arcgis/admin/system/webadaptors/register to register the web adaptor, fill in these settings: url - http://servername/arcgis servername - servername machine IP - HTTP port - 80 Admin enabled - true Click submit and it registers, but when I go to http://servername/arcgis/rest/services it shows "no server nodes", but when I register through the web adaptor ui it works fine (http://servername/arcgis/webadaptor). Also noticed that the fields required in the REST API are different to what is documented here - http://resources.arcgis.com/en/help/server-admin-api/index.html?registerWebAdaptor.html
... View more
02-03-2014
03:39 PM
|
0
|
0
|
4132
|
POST
|
I'm just wondering if it's possible in python to change the selectable layers in a map document. I've built a python add-in that allows a user to select a group layer and when they select that group layer only the layers in that group layer will be selectable. I can't seem to find a way to do it. I mean you can do it manually by setting all the layers want to be selectable in ArcMap, but is there anyway to do this through python?
... View more
02-03-2014
11:56 AM
|
0
|
0
|
540
|
POST
|
I've developed a tool that looks at logs to get stats around services etc. and just wondering what I can do around cached map services to get stats. When I look at the logging for any map service that is cached there isn't a lot there whereas dynamic services log the extents that were queries etc. (Logging set to FINE). So not sure if I can get response times/queries for a cached map service somehow?
... View more
12-11-2013
03:31 PM
|
0
|
0
|
1377
|
POST
|
Ok managed to get this to work. It was a combination of things that was causing it to not work correctly. I've managed to create a feature collection, load in the features to be analysed to this feature collection and send it to the service. Then I get a feature collection back and can add that to the map, so had to write a bit of code to get that to work.
... View more
12-11-2013
03:21 PM
|
0
|
0
|
251
|
POST
|
Ok, so now I'm getting a different error: ERROR 000735: analysisLayer: Value is required Also, with this sample: http://developers.arcgis.com/en/javascript/samples/analysis_hotspot/ I've tried with a couple of accounts (a developer account and an ArcGIS for organisations account) and it didn't work, then I tried with another account (another ArcGIS for organisations account) and it did work, so pretty confused how to use these services.
... View more
12-10-2013
12:23 PM
|
0
|
0
|
251
|
POST
|
I'm trying to use one of the spatial analysis services from a javascript app I've built, but having some issues. I'd like to use this service: https://developers.arcgis.com/en/rest/analysis/api-reference/find-hot-spots.htm And have a ArcGIS Online developer account. I basically have some code to request a token and send it with a featureset to this service and this is the reponse I get back from the service:
inputs: {}
jobId: "j8c0cb0dbe6814e5b9ec3b29e8885da8f"
jobStatus: "esriJobFailed"
messages: [{type:esriJobMessageTypeError,�?�},�?�]
0: {type:esriJobMessageTypeError,�?�}
description: "{"messageCode": "AO_100007", "message": "FindHotSpots failed."}"
type: "esriJobMessageTypeError"
1: {type:esriJobMessageTypeError, description:Failed to execute (FindHotSpots).}
description: "Failed to execute (FindHotSpots)."
type: "esriJobMessageTypeError"
2: {type:esriJobMessageTypeError, description:Failed.}
description: "Failed."
type: "esriJobMessageTypeError"
results: {}
it's pretty vague, so I don't where it's going wrong, whether my inputs are wrong or what? Anyone know?
... View more
12-09-2013
05:22 PM
|
0
|
2
|
440
|
POST
|
Hi Carlos, What does it say in the web debugger? Do you want to post some of your code.
... View more
11-30-2013
10:24 PM
|
0
|
0
|
156
|
POST
|
I'm trying to load the Javascript API dynamically, so basically what I'm trying to do is load the jQuery library then once that has loaded, load the ArcGIS JS library, like this: <script type="text/javascript" src="libraries/jQuery/1.10.1/jquery-1.10.1.min.js"></script>
<script type="text/javascript" src="libraries/jQueryUI/1.10.3/jquery-ui.min.js"></script>
<script type="text/javascript">
<!-- When jQuery has loaded -->
$(document).ready(function () {
// Show the progress bar
$("#appLoadBar").progressbar({
value: false
});
$.getScript('http://js.arcgis.com/3.7compact');
});
Doesn't seem to work though. Anyone have any experience with something like this?
... View more
10-05-2013
05:18 PM
|
0
|
0
|
480
|
Title | Kudos | Posted |
---|---|---|
1 | 07-04-2013 02:38 PM | |
1 | 04-02-2013 02:10 PM | |
1 | 02-21-2013 11:14 AM | |
2 | 03-10-2014 05:52 PM | |
1 | 07-09-2012 07:49 PM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|