|
POST
|
Sorry, can't help, but I've noticed something similar today. I'm using this TOC http://www.arcgis.com/home/item.html?id=9b6280a6bfb0430f8d1ebc969276b109 and in IE and Firefox the graphics for the legend do not go via proxy page, so miss the token, and do not appear (I've tweaked the code now to add the token) in chrome, however, the source of the image looks like this src="data:image/png;base64,iVBORw0KG..<loads more like this>" and it works without the token, where as in IE it is a proper path to the image (like your example src="https://[server name]/ArcGIS/rest/services/Org/Basemap/MapServer/4/images/714F5E24"). What's going on here then?
... View more
11-07-2012
10:28 AM
|
0
|
0
|
1254
|
|
POST
|
I did read somewhere here that you don't actually need an identifier, if you leave it out one is generated. I was having similar issues with using fields I was sure had unique values. I then left the identifier out of the definition bit and everything worked. ACM
... View more
11-06-2012
11:29 AM
|
0
|
0
|
1120
|
|
POST
|
Please, if this is added, make it optional. When google Maps started doing it I spent ages trying to switch it off, I HATE it. I want the map to stop when I stop moving the mouse, not to continue on moving based on how fast I moved the mouse. Hate it. Did I mention, I don't like it?
... View more
10-25-2012
06:23 AM
|
0
|
0
|
3131
|
|
POST
|
Are your data in an SDE 10.x? AS I have been informed by esri(uk) support that that is what is required to get editing via web pages to work. ACM
... View more
10-23-2012
12:46 AM
|
0
|
0
|
1748
|
|
POST
|
Hi - I was (and still am) getting the "Unable to complete operation." error. It turns out that I simply cannot do any edits as long as I am on SDE 9.3.1 http://help.arcgis.com/en/arcgisserver/10.0/help/arcgis_server_dotnet_help/index.html#//00930000000m000000 ArcGIS Server 10 introduces feature services, which expose access to vector feature geometries and attributes. A great benefit of feature services is the ability to expose feature editing through JavaScript, Flex, and Silverlight applications. Feature services are published from map documents, and the source datasets are required to reside in a single ArcSDE geodatabase. So it is worth checking yours - we cannot upgrade as we still have a 3rd party MapObjects application ACM
... View more
10-17-2012
12:40 AM
|
0
|
0
|
3539
|
|
POST
|
Many thanks, although tried that with my version headed "/*built on 2012-08-21 14:32:39.70*/" without any luck ACM
... View more
10-15-2012
07:23 AM
|
0
|
0
|
3341
|
|
POST
|
ok - cracked the code to get all groups collapsed - as in screenshot [ATTACH=CONFIG]18426[/ATTACH] In the postcreate function find and alter as below
if (this.data._subLayerInfos) {
//acm added to collapse groups at the start
this.toggler.hide()
//end acm addition
and a bit later
//ACM also changed this line to get groups initial expand set
//dojo.addClass(this.iconNode, a ? "dijitTreeExpandoOpened" : "dijitTreeExpandoClosed")
dojo.addClass(this.iconNode, a ? "dijitTreeExpandoClosed" : "dijitTreeExpandoClosed")
So far it appears to work. The second part could be neater, but doing it this way you can see it has been changed to always return "dijitTreeExpandoClosed" ACM
... View more
10-15-2012
06:37 AM
|
0
|
0
|
3341
|
|
POST
|
It's been open for three years, so I wouldn't hold your breath.
... View more
10-15-2012
06:06 AM
|
0
|
0
|
3151
|
|
POST
|
Many thanks - so reported over 3 years ago!! So, I don't think I'll hold my breath for a fix anytime soon.
... View more
10-15-2012
02:16 AM
|
0
|
0
|
3541
|
|
POST
|
An alternative I posted here http://forums.arcgis.com/threads/68803-BUG-.visibleLayers-returns-group-layeys?p=240650#post240650 Basically I had moved away from the check boxes I had in my earlier post. Initially I tried "identifyParams.layerIds = dynamicMapServiceLayer.visibleLayers;" but that fails when you have group layyers - see post. So the function I now use is a simple check for layers and groups one function getVisibleLayers() { var visibleLayers = []; var items = dojo.map(dynamicMapServiceLayer.layerInfos, function (info, index) { layerID = info.id; if (info.visible && !info.subLayerIds) { visibleLayers.push(layerID) } }); return visibleLayers } Call in you id task code with v = getVisibleLayers(); identifyParams.layerIds = v; BTW, can anyone else (none esri staff) get the link to the bug report from Shuping Li to work? ACM
... View more
10-15-2012
01:37 AM
|
0
|
0
|
3541
|
|
POST
|
For info, whilst I still think this is a potential bug, until LAYER_OPTION_VISIBLE is fixed, I'm calling my own function to get visible layers excluding group layers - especially as I agree dynamicMapServiceLayer.visibleLayers should return all layers, including group ones, so if it is a bug, it works to start with then breaks, but currently breaks in my favour. function getVisibleLayers() { var visibleLayers = [];
var items = dojo.map(dynamicMapServiceLayer.layerInfos, function (info, index) {
layerID = info.id;
if (info.visible && !info.subLayerIds) {
visibleLayers.push(layerID)
}
}); return visibleLayers
} ACM
... View more
10-15-2012
01:31 AM
|
0
|
0
|
811
|
|
POST
|
For info, the LAYER_OPTION_VISIBLE doesn't work, it is a know bug (see post in http://forums.arcgis.com/threads/68803-BUG-.visibleLayers-returns-group-layeys?p=239911#post239911) I had the same issue as you did today - or rather the exact opposite, ID not working when I could see the features, and it was like John says, all tied up in the map extent, although I passed it the current extent I hadn't also passed the height and width. Doing this sorted my issue.
... View more
10-12-2012
12:22 PM
|
0
|
0
|
3151
|
|
POST
|
Hi I'm cyclying through the results of a find task with a line like this for (j in results[dijit.byId('layerselect').get('value')].feature.attributes) { To get the field names so my datagrid can be built dynamically from the results, regardless of layer the find is run against. Sometimes this works, when it does, the attributes of each found record look like this attributes: ObjectCHARGE_DESC: Array[1]
DATE_REGISTERED: Array[1]
INT_ID: Array[1]
OBJECTID: Array[1]
REFERENCE: Array[1]
REGISTER_ID_VERSION: Array[1]
REGISTER_PART: Array[1]
SHAPE: Array[1]
_0: 0
_RI: true
_S: a
xx: Array[1]
With the field values stored as arrays. When it fails, usually when only one thing is found it looks like this
attributes: Object
DATE_REGISTERED: "20/11/1984"
INT_ID: "191702"
OBJECTID: "7137"
REFERENCE: "S215N/002/SIDM"
REGISTER_ID_VERSION: "1"
REGISTER_PART: "3B"
SHAPE: "Polygon"
xx: "9"
__proto__: Object
With the field attributes just as text strings. my code then breaks with TypeError
arguments: Array[2]
get message: function () { [native code] }
get stack: function () { [native code] }
set message: function () { [native code] }
set stack: function () { [native code] }
type: "non_object_property_load"
__proto__: Error
Any ideas? Or even an easier way to return all the field names of a found record? Cheers ACM
... View more
10-11-2012
08:20 AM
|
0
|
0
|
802
|
|
POST
|
Without setting layerIds works fine, but then it doesn't honour the visible layers. I agree, it makes sense that you get the group IDs back, what doesn't make sense is that after you make a change from the default visibility , the dynamiclayer.visibleLayers returns an array without these in, which is what I want, but if i knew it ALWAYS returned the group Ids I could code them out until LAYER_OPTION_VISIBLE is fixed. Cheers ACM
... View more
10-11-2012
06:30 AM
|
0
|
0
|
811
|
|
POST
|
Hi I *think* this may be a bug, but please be kind if it isn't. I have a Map Service with sublayers in groups - defined in the ArcMap MXD. Because IdentifyParameters.LAYER_OPTION_VISIBLE doesn't work I use identifyParams.layerIds = dynamicMapServiceLayer.visibleLayers; However the first time this is run, the array returned by dynamicMapServiceLayer.visibleLayers contains group0 layer IDs - this causes the ID task to return very odd results. Several results are repeated (I've check the JSON in Fiddler and this is in the actual returned data, not a code glitch on my side) After a layer has been switched on (or off) the returned array by dynamicMapServiceLayer.visibleLayers returns just the real sublayers - not the group Ids and the Id task works fine Alas, this is an internal service so I can't provide the links
... View more
10-11-2012
05:52 AM
|
0
|
3
|
1652
|
| 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 |
yesterday
|