|
POST
|
Ok - so two issues now - I think it is time to call the new features in 3.10 as broken, don't you? We need a few more events to hook into and the measure end event to be just that. An event that fires when the measurement has ended - it works for the length, which returns the value after each click, but only fires the measure end event after a double click.
... View more
08-05-2014
03:31 AM
|
0
|
3
|
3817
|
|
POST
|
Jonathan Nope still broken. My code is old style code, so I have the below code in my init function
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) {
if (evt.geometry.type === "polygon") {
console.log("Really done.");
measurement.setTool(evt.toolName, false);
}
});
measurement.startup();
And it still returns a polygon after the third click, so ends the task. Cheers ACM
... View more
08-05-2014
01:27 AM
|
0
|
0
|
3817
|
|
POST
|
mmm not good - My domain updates every night with reference values that have been added to a different system.
... View more
08-01-2014
08:46 AM
|
0
|
1
|
2891
|
|
POST
|
Hi I have a Collector app. The data are held on our ArcGIS Server and published via AGOL. I have a domain that controls a reference field. I have just spent the morning getting a nice Python script that recreates the Domain daily to add new possible values. Yet, these values do not appear in Collector or when viewed in AGOL. How can I force a refresh? Cheers ACM
... View more
08-01-2014
08:24 AM
|
0
|
10
|
7672
|
|
POST
|
Hi I want to add some extra layers to my Collector app, which is to be used offline. These layers are not part of the basemap, as the are dynamic, but are not layers I want edited in Collector. I can set the webmap OK with these layers, but i cannot set it for offline mode as it doesn't like these reference layers, which are read in as an AGS map layer. Is there any way I can do this? Cheers ACM
... View more
08-01-2014
08:03 AM
|
0
|
4
|
1782
|
|
POST
|
Jonathan Thanks for that, my code now looks like
measurement.on("measure-end", function (evt) {
console.debug(evt)
if (evt.geometry.type === "polygon") {
console.log("Really done.");
}
});
But it fails - looking at the evt object (hence my console line) it is, as I thought it would be, a polygon after three nodes have been drawn - output below, first is after a single click (ie still drawing), second after a double click Object {toolName: "area", geometry: Object, target: Object} geometry: Object _centroid: null _extent: Object _partwise: null _ring: 0 rings: Array[1] spatialReference: Object type: "polygon" __proto__: Object target: Object toolName: "area" __proto__: Object basecode.js?123:252
Really done. basecode.js?123:254
Object {toolName: "area", geometry: Object, target: Object} geometry: Object _centroid: null _extent: Object _partwise: null _ring: 0 rings: Array[1] spatialReference: Object type: "polygon" __proto__: Object target: Object toolName: "area" __proto__: Object basecode.js?123:252
Really done. And adding the line I want in
this.setTool(evt.activeTool, false);
Throws a huge error, starting TypeError {stack: (...), message: "undefined is not a function"} "TypeError: undefined is not a function Only reverting to the older style event link
dojo.connect(measurement, "onMeasureEnd", function (activeTool, geometry) {
console.debug(activeTool);
console.debug(geometry);
this.setTool(activeTool, false);
enableID();
});
gets the tool disabled - but of course it disables as soon as the third node is created. And geometry type is always polygon. Would adding a Double Click event be too much to ask? Cheers ACM
... View more
07-31-2014
01:43 AM
|
0
|
7
|
3817
|
|
POST
|
Jonathan Any chance this is linked to my other issue BUG: Measurement widget measure-end event issue. - So far un-commented on? Cheers ACM
... View more
07-30-2014
01:14 AM
|
0
|
0
|
1398
|
|
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
|
3817
|
|
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
|
10114
|
|
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
|
2468
|
|
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
|
992
|
|
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
|
992
|
|
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
|
1451
|
|
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
|
1246
|
|
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
|
1790
|
| Title | Kudos | Posted |
|---|---|---|
| 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 | |
| 1 | 03-16-2023 06:46 AM |
| Online Status |
Offline
|
| Date Last Visited |
Tuesday
|