|
POST
|
More info I've edited the official smaple Measurement | ArcGIS API for JavaScript I used my Proxy of course, and mofified the measurement definition
var measurement = new Measurement({
map: map
}, dom.byId("measurementDiv"));
measurement.startup();
measurement.on("measure-end", function (evt) {
console.debug("not really the end?")
this.setTool(evt.activeTool, false);
});
This fails in the same way. Unless told otherwise, I'm calling this one a BUG.
... View more
07-29-2014
03:08 AM
|
0
|
9
|
3988
|
|
POST
|
Hi II have a widget
var measurement = new esri.dijit.Measurement({
map: map,
defaultAreaUnit: esri.Units.SQUARE_METERS,
defaultLengthUnit: esri.Units.METERS
}, dojo.byId('measurementDiv'));
//measurement.hideTool("location");
measurement.on("measure-end", function (evt) {
console.debug("Really ended?")
this.setTool(evt.activeTool, false);
enableID();
});
measurement.startup();
Define as above. However the measure-end event is fired after each node of an area measure from the third node onwards. There follows a large error message The task does, however keep going when area is being measured. TypeError {stack: (...), message: "undefined is not a function"} "TypeError: undefined is not a function at http://x/common/init.js?123:185:14 at null.<anonymous> (http://x/arcgis_js_api/library/3.10/3.10/init.js:777:175) at h.(anonymous function).g [as onMeasureEnd] (http://x/arcgis_js_api/library/3.10/3.10/init.js:239:390) at s._showArea (http://x/arcgis_js_api/library/3.10/3.10/js/esri/dijit/Measurement.js:35:330) at s._outputArea (http://x/arcgis_js_api/library/3.10/3.10/js/esri/dijit/Measurement.js:35:181) at null.<anonymous> (http://x/arcgis_js_api/library/3.10/3.10/init.js:173:473) at h.(anonymous function).g [as onAreasAndLengthsComplete] (http://x/arcgis_js_api/library/3.10/3.10/init.js:239:390) at e._successHandler (http://x/arcgis_js_api/library/3.10/3.10/init.js:490:174) at e._areasAndLengthsHandler (http://x/arcgis_js_api/library/3.10/3.10/init.js:916:267) at http://x/arcgis_js_api/library/3.10/3.10/init.js:174:23" Strange? Or my fault? ACM UPDATE Using the older dojo.connect
dojo.connect(measurement, "onMeasureEnd", function (activeTool, geometry) {
this.setTool(activeTool, false);
enableID();
});
And the event fires, as before on the third click, for area, but doesn't have the error, and re-enables my ID task. It looks like the new widget is firing the OnMeasureEnd event each time a result for the area is required - the old tool only got the result on double click - ending the drawing. the code worked fine in 3.8 & 3.9
... View more
07-28-2014
06:58 AM
|
0
|
17
|
10417
|
|
POST
|
Jeff I just hit this issue. Please can someone elaborate on
A domain 'arcgis' account must be created to run the ArcGIS Server Windows service. If roles are being managed through LDAP or Active Directory, this domain account must be added to a group that has access to the secured services being printed. If ArcGIS Server built-in roles are being used, this new domain account can be added to the appropriate roles through Server Manager.
Our ArcGIS Server service already runs with a domain account. Our server user and roles are "ArcGIS Server Built-in" It is the bit n bold above I am having issues with. How exactly do you do that? Do I add the domain user ( domain/SVC-ArcGIS) as a user - if so, it wouldn't allow me to add the domain part. I'ma bit confused. Cheers ACM
... View more
07-25-2014
07:24 AM
|
0
|
0
|
2553
|
|
POST
|
Ah - answered my last question myself - I needed to wrap it in a esri.request.
var requestHandle = esri.request({
url:mapservice2 + "/" + layer.id + "?f=json",
handleAs: "json",
load: function (data) {
console.debug(data)
LayerDescriptions[layer.id] = data.description;
dynamicMapServiceLayer.layerInfos[layer.id].copyrightText = data.copyrightText;
},
}, { useProxy: true });
... View more
07-24-2014
05:32 AM
|
0
|
1
|
1067
|
|
POST
|
OK - I've had some spare time and found the issue. I use this code
//return the layer descriptions and © text into arrays - we use this later for the info dialog to generate hyperlinks and © text
dojo.forEach(dynamicMapServiceLayer.layerInfos, function (layer) {
var restAPIServicePage = {
url: mapservice2 + "/" + layer.id +
"?f=json&token=uO3JarsebollockswxI9ExjTj_VE5IgAHr9YKPjoE3Mn00qipj9Baxjg1s0lm1c4c", callbackParamName: "callback", load: function (data) {
LayerDescriptions[layer.id] = data.description;
dynamicMapServiceLayer.layerInfos[layer.id].copyrightText = data.copyrightText;
}
};
dojo.io.script.get(restAPIServicePage);
});
in my init function, to step throughmy layers and return the description into an array, which I use for layer specific hyperlinks in my ID task results. As you see, I've had to hard code a token here as it appears to be this bit that doesn't go via the proxy, so fails to return anything Is this the only realistic way of doing it? Cheers ACM
... View more
07-24-2014
03:40 AM
|
0
|
2
|
1067
|
|
POST
|
Off course - obvious - NOT - what's wrong with a simple X - I take it this is a iOS design thing? I think I may try it on some self confessed Apple Fan boys, see if they can get it. Many thanks. Edit - self confessed apple fan boy failed to work this out as well!
... View more
07-24-2014
01:20 AM
|
0
|
0
|
1513
|
|
POST
|
Cheers - at least I haven't missed something - realistically , at the moment, we are only having one editor out in the field. So, what do I do now to your post - in the old form I'd mark it helpful - do I have to "like" it now !
... View more
07-23-2014
02:37 AM
|
0
|
0
|
1330
|
|
POST
|
OK, am I being a numpty here, but once you have tapped on a feature , the Id results appear in the bottom. How do you then get rid of these? On the Android version there is a nice big X to close it, but nothing like that on iOS. ACM
... View more
07-23-2014
02:35 AM
|
0
|
3
|
1852
|
|
POST
|
Ah thank you. That sort of works, but the user id that gets all the way to our database is that of the ArcGIS Server account that has been stored when I set up the layer in AGOL. Anyway to get the AGOL user details the user uses on the the mobile device to get passed through? ACM
... View more
07-21-2014
04:53 AM
|
0
|
2
|
2533
|
|
POST
|
So, having established that the service hasn't got them, How do we add them?
... View more
07-18-2014
02:21 AM
|
0
|
0
|
2606
|
|
POST
|
A "me too" using 10.2.2. server and all I get recorded in the Edited by fields are "Esri_anonymous"
... View more
07-17-2014
06:03 AM
|
0
|
11
|
2533
|
|
POST
|
For my issue,I have both of those - the latest code and default geometry service set to one of mine.
... View more
07-15-2014
06:08 AM
|
0
|
0
|
3138
|
|
POST
|
Missed this option when it was added - just tried it. No difference. Just get the two Degrees, and DMS.
... View more
07-15-2014
02:08 AM
|
0
|
3
|
3138
|
|
POST
|
Sorted I hadn't converted the outline colour using the same function I used for fill colour
function hexToRgb(hex, alpha) {
var result = /^#?([a-f\d]{2})([a-f\d]{2})([a-f\d]{2})$/i.exec(hex);
return result ? {
r: parseInt(result[1], 16),
g: parseInt(result[2], 16),
b: parseInt(result[3], 16),
a: alpha
} : null;
}
this gets it into the correct format for saving a retrieving - I can't remember why!
... View more
07-14-2014
07:53 AM
|
0
|
0
|
1018
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 06-19-2026 12:29 AM | |
| 1 | 08-28-2025 01:14 AM | |
| 1 | 12-01-2023 06:07 AM | |
| 2 | 11-29-2024 04:32 AM | |
| 1 | 05-28-2024 12:50 AM |
| Online Status |
Offline
|
| Date Last Visited |
Tuesday
|