|
POST
|
Hi I'm trying hard to switch off my ArcIMS internal browser based mapping now that I am happy with my JSAPI version. However, some users are reporting speed issues. I think some of this is down to putting requests in for services that have not been used for a while, so I'm looking at the timeout setting on the server. We have "The maximum time a client can use a service" this is defined as "The amount of time between when a client gets a reference to a service and when it releases it is the usage time" So on this one two questions. In this context is a client a end user with a web browser, or the Connection between the IIS and ArcGIS server. Secondly, does this get reset after this time regardless of use? Then we have "maximum time an idle instance can be kept running" I think I understand this, say I have a service with aerial photos, someone uses it. Then for the next X seconds the server keeps it active. If no-one uses it in that time it closes it down. If a new request is made after that it may take longer for the server to wake up - is that right? So, what recommendations do people have for these settings to ensure that during the working day users don't have to wait longer than they should for a response? ACM
... View more
09-26-2013
07:18 AM
|
0
|
0
|
2245
|
|
POST
|
OK - nothing in the logs and straight requests for legend work every time, so time for a classic hack/bodge (sorry) In the TOC.js I've changed the error routine of _getLegendInfo to call itself again
error: dojo.hitch(this, this._getLegendInfo)
WRONG on SO many levels I know, but as I have a captive user base with known map services AND this issue happens less than 1 in 5 requests then it seems to work without adding much overhead at all. If it breaks later, I'll simply cry and curl up in a corner somewhere. ACM
... View more
09-11-2013
05:21 AM
|
0
|
0
|
2017
|
|
POST
|
One thing I was about to post anyway, the dynamic services it fails on contain ONLY raster images. I was also about to dig into the server logs too. I'll post back if I find anything Many thanks ACM Edit - in fact one of the services isn't all raster - so please ignore. However the one service that is all NON-raster never fails this way.
... View more
09-11-2013
04:02 AM
|
0
|
0
|
2017
|
|
POST
|
Hi I am using Nianwei Liu's TOC - however sometimes the expand tree graphic isn't appearing. I have several dynamic map services and add them all into the TOC. Mostly this is fine. However when it fails I get "Unable to generate legends: zzzzz?Unable to connect to Host: zzzzz Port: -1?Please verify the Service URL specified is correct :- http://zzzzz/arcgis/services/LIVEinternal/aerials/MapServer?" This happens about 20% of startups. The Dynamic Service is there and at other times it is fine. I can see why it breaks the TOC, as without any legends it can't build up the child nodes in functon _createRootLayerNode as there is a IF statement that relies on a renderer being present. Cheers ACM
... View more
09-11-2013
03:06 AM
|
0
|
4
|
2770
|
|
POST
|
We do not have plans to add a "layer list" or "table of contents" widget to manage map layers and sublayers. We've resisted adding this to the API because we don't want to encourage building generic, kitchen sink style viewers. I realize that we (Esri) do not have a consistent story on this as we still provide generic viewers for other platforms/technologies. We're open to discussing it further, but I personally agree with anti-viewer, anti-portal sentiments that some have expressed online for the past couple of years (most recent example). Derek - the thing about that link you post, the main thing that jumps out at me, right in the title is the word "ONLINE" My main app is to replace and ArcIMS app, which in turn replaced a non-ESRI GIS desktop app (with per seat cost) for our INTERNAL users. As it is internal I have control over browser choice, training documentation, I can talk to all the users. The users have a finite set of requirements and use my application daily. They don't "discover" it. They are not looking for " a single layer". They don't then leave. They know what layers they need and know the broad category these layers may live in. I have, at last count, over 100 layers. I have a user base ranging from 16 to over 70 in age, probably still skewed towards the older end - in other words Digital Immigrants, not Digital Natives. For some the use of any IT doesn't come easy. Having all my layers in nice groups that match their expectations is a must. For ArcIMS this was achieved using David Bollingers TOC in my new one it is using Nianwei Liu's. Both do an excellent job. Esri should re-examine exactly what people are using their products for. ACM
... View more
09-11-2013
12:13 AM
|
0
|
0
|
3532
|
|
POST
|
🙂 Looks good - I'll try it tomorrow - right now I'm having fun with inserting directly into unversioned SDE tables using SQL and getting me geometries and geographies all mixed up - may have to post to a different forum! Many thanks Edit - couldn't wait (plus SQL not working) so tried it and works, marked as answered. Many thanks
... View more
09-09-2013
07:12 AM
|
0
|
0
|
2770
|
|
POST
|
Thanks- I found that last week, but couldn't follow it - I'll have another go now.
... View more
09-09-2013
02:15 AM
|
0
|
0
|
2770
|
|
POST
|
Yep - I think I'd got to the same conclusion, however that's where my skills end. The grid is defined so -
<table dojotype="dojox.grid.DataGrid" jsid="grid1" id="grid1" autoheight="10" rowsperpage="160" rowselector="10px">
<thead>
<tr>
<th field="Address" width="160px">Address
</th>
<th field="PAO_FROM" formatter="PAOFormat" width="160px">PAO_FROM
</th>
</tr>
</thead>
</table> and then later populated like this
//Create data object to be used in store
var data = {
identifier: "OBJECTID",
label: "LSData",
items: items
};
//Create data store and bind to grid.
store1 = new dojo.data.ItemFileReadStore({
data: data
});
console.debug(store1)
dijit.byId("keycontainer").selectChild(dijit.byId("results"));
grid1.setStore(store1); with items being the results dataset from the find task - however, right from when I view the attributes of the results it appears like
PAO_FROM: Array[1]
0: "19"
length: 1
despite the service definition stating
PAO_FROM ( type: esriFieldTypeSmallInteger , alias: PAO_FROM )
AS mentioned in the first post, I did find some reference to cellType when creating the dojodatagrid, but no fll list of types. Cheers ACM
... View more
09-09-2013
12:27 AM
|
0
|
0
|
2770
|
|
POST
|
Thanks, but that still sorts it 001 010 011 002 I'll check out the dgrid next work day, but this is really for the last touch to an almost finished product - the next version I'll look at new stuff + making all AMD. The results are actually from a find results set. Is there any way that I can sort that object based on an attribute before it gets attached to the data grid? Cheers ACM
... View more
09-07-2013
04:35 AM
|
0
|
0
|
2770
|
|
POST
|
Hi I'm failing to sort a datagrid, that has results from a query task, numerically. There is a field, that the service has defined as an integer, however it gets sorted in the datagrid as text (so I get 1,10,11,12,2,21,22 rather than 1,2,10,11,12,21,22) I have tried adding a formatter on the grid like function PAOFormat(item) { var link = Number(item) + 0 ; return link; } But that fails - changing it to Number(item) + 100 does indeed add 100- to the number, so how do I tell it to be a number cell. I have seen there is a celltype property, but I can't find a full list of cell types the best I have found is cellTypeThe type of cell in the column. Allowable cell types include dojox.grid.cells.Bool dojox.grid.cells.Select Any ideas? ACM
... View more
09-06-2013
07:25 AM
|
0
|
9
|
6287
|
|
POST
|
Yep - you had to add a query statement for some reason in the layer, but 1=1 (ie everything) did the trick. I think build 2.4 did it. On the other hand if you had grouped lots of attribute, (say cad feature = Building, Garage, Shed) as one style, the TOC would break them out again.
... View more
09-06-2013
04:13 AM
|
0
|
0
|
2615
|
|
POST
|
Nianwei Liu - this may be a caching/IIS/IE thing but my users are mentioning that sometime the expand button (the little cross) vanishes from collapsed TOCs - I've yet to be able to repeat this, but when it does happen a clear of the IE cache seems to work. Has anyone else had these issues? Cheers ACM
... View more
09-06-2013
02:02 AM
|
0
|
0
|
2615
|
|
POST
|
🙂 Now why didn't anyone at Esri state the above - so, in Microsoft term, "This behaviour is by design" The "bug" should remain through, but be changed to say "make the documentation clear"
... View more
09-05-2013
02:31 AM
|
0
|
0
|
3707
|
|
POST
|
I gave it a good try, but for now defeated. I worked out my wkid issue was something to do with my local 3.5 - running it with esr 3.6 moved on to the next errors - a shed load of parser issues. So, I will put this aside for now, and concentrate on stuff my users are asking for - like a constrained Floatingpane 🙂 Thanks for the help so far - at least I have a better understanding. ACM
... View more
09-04-2013
05:18 AM
|
0
|
0
|
2027
|
|
POST
|
Yep - Hjelmeland has been PMing me with lots of suggestions - on the last go we took working code of his and dropped my map service in. It worked on his code. The only difference I can see is if I examine the map object, on the working code we have spatialReference: Object
latestWkid: 27700
wkid: 27700
__proto__: Object
updating: false
width: 1680
wrapAround180: fal On mine spatialReference: Objectwkid: 27700
__proto__: Object
updating: false
width: 1435
wrapAround180: false
for the SpatialReference object - you'll notice the additional "latestWkid" attribute. Cheers ACM Edit nearly there - my code was a horrid mix of legacy and AMD, and I had a new AMD style chunk basically doing the same stuff I'd inserted ages back. Removing this gives me an overview map (breaks loads of other stuff until I reinsert it al in the right place) Edit #2 No idea - a brief glimpse was lost again 😞 will still work on it.
... View more
09-03-2013
06:10 AM
|
0
|
0
|
2027
|
| 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
|