|
POST
|
Hi I'm trying to hack about with the query tasks to get a YEs/No reply to a simple question - does the point passed to a page fall within our area I have code like (x & y get defined earlier from URL parameters) function checkus() {
queryTask = new esri.tasks.QueryTask("http://<our server>/ArcGIS2/rest/services/eforms2/MapServer/0");
var point = new esri.geometry.Point(x, y, new esri.SpatialReference({wkid:27700}));
query = new esri.tasks.Query();
query.returnGeometry = false;
query.geometry = point
query.outFields = ["admin_name"];
queryTask.execute(query);
dojo.connect(queryTask, "onComplete", function (results) {
if (results.features.length>0) {
alert("In Our Area");
}
else {
window.location = "NoUs.asp"
}
}
);
}
I am trying to insert a variable inside the the bit that looks for the number of records returned, but try as I can, I can't get the variable to be global, as soon as that part finishes, so, it appears does the variable. I must be doing something totally daft here. Cheers ACM
... View more
03-20-2012
06:08 AM
|
0
|
5
|
2107
|
|
POST
|
Hi I'm passing two parameters to a map, car number plate and date. It fails - Date on its own works - the debug is; layerDefinitions: Array[1] 0: "time>'2012-02-16'" Car Reg (twice to prove the AND works) also works layerDefinitions: Array[1] 0: "vehreg='BF58UJJ' and vehreg='BF58UJJ'" But car Reg and date fails, with a "TypeError" layerDefinitions: Array[1] 0: "time>'2012-02-16' and vehreg='BF58UJJ'" I'm using the latest (2.7) version of the API in compact mode. Any ideas? Cheers ACM
... View more
02-24-2012
02:24 AM
|
0
|
0
|
924
|
|
POST
|
many thanks - I'll take a good look at that next year, it seems to be a good starting point Cheers ACM
... View more
12-23-2011
03:30 AM
|
0
|
1
|
2741
|
|
POST
|
Steve - two days before Christmas and I am running down for the year - any chance you could post what you did? I was after exactly the same. I've got to e-write my ArcIMS code next year, and replacing IDs with names was a crucial step in my old IMS stuff - also generously written by someone else! Many thanks ACM
... View more
12-23-2011
01:21 AM
|
0
|
0
|
2741
|
|
POST
|
Tom I've just had a quick look at your print routine and it is great - it brings back a floating page thingy that we lost from our old GIS when we moved to esri, so some of our old hands will love it. Has anyone got it working in the Javascript API yet? My skills are only developing at the moment and I've never looked at flex at all. Cheers ACM
... View more
12-14-2011
03:57 AM
|
0
|
0
|
660
|
|
POST
|
I think I have answered my own question, but as I couldn't find it documented anywhere I thought I'd post for future reference. (feel free to point me to where it is documented if I am wrong) It appears that if you do not enable "web access" for your map service the legend widget fails. Looking at the Chrome diagnostic, the actual image URL seems to be http://utility.arcgis.com/sharing/tools/legend?soapUrl=http%3A//<my domain name>/ArcGIS2/services/locate1/MapServer&returnbytes=true&f=json&callback=dojo.io.script.jsonp_dojoIoScript3._jsonpCallback Which seems to confirm what I discovered after a lot of grief, no web access, no legend. ACM Edit- Doh! IT is documented, I just didn't fully understand it. If the layers are version 10 or lower the legend is created using the ArcGIS.com legend service. In order to use the ArcGIS.com legend service your map service needs to be publicly accessible and your application must be able to access ArcGIS.com.
... View more
11-22-2011
03:46 AM
|
0
|
0
|
881
|
|
POST
|
Ah, that'll be it then :cool: another good reason to get my code sorted, so I can move to 10 (currently shifting an ArcGIS Image Server Service off ArcIMS, in order for me to migrate the rest to 10, before moving the rest of my stuff to AGS)
... View more
11-21-2011
11:13 PM
|
0
|
0
|
468
|
|
POST
|
If available ..any reason why this wouldn't be available - it doesn't seem to be on my map services - is it a setting somewhere I have missed? Cheers ACM
... View more
11-21-2011
05:41 AM
|
0
|
0
|
2662
|
|
POST
|
Hi Two questions - my ArcGISDynamicMapServiceLayer is set to 150 dpi/PNG24, yet my overview map is coming out at 96 dpi? Is there any way of controling this? Secondly, when I print in IE8 - even with .esriOverviewMap .ovwHighlight {
border: solid 2px #004F00 !important;
background-color: transparent !important; The extent rectangle on the overview map is a solid rectangle. Chrome works fine. Is this an IE issue? Cheers ACM
... View more
11-21-2011
05:02 AM
|
0
|
2
|
950
|
|
POST
|
Tech support was able to reproduce the problem and it has been logged as a bug - NIM068764. AAAArrrggghhhh - all afternoon I've struggled with this, just about to give up when I cam e to the conclusion the FIND didn't play nice with event layers, then I found it was a bug. Doh!
... View more
11-18-2011
07:27 AM
|
0
|
0
|
1656
|
|
POST
|
Update - I tried the same code, but on my personal domain, and it works fine - which seems to point at some sort issue internal issue. But, 😄 it has enabled me to get permission to "test" IE8 on my PC (8 is as far as we can go until we move off XP) - as not only do I have this issue, but I had another scripting issue that just failed on IE7.
... View more
11-16-2011
11:51 PM
|
0
|
0
|
1318
|
|
POST
|
😮 Doh! Note to self - when re-using code from Esri examples and other places, make sure you don't call stuff twice. I'd re-used some older code wit a scale bar, but had stripped out the initial definition, so it didn't work, then added the whole lot back in - result 2 bars, one metric the other "american" - Note to Esri, here in England we are trying very hard to use metric 😄
... View more
11-16-2011
11:31 PM
|
0
|
0
|
1219
|
|
POST
|
Just a done a quick check and I can't see any major differences - so my next suspect is our ISA firewall - when our ISA chap returns next week I'll get him to trace my PC -often the cause of issues with calling remote stuff - there may be some sort of wacky "only download so many streams of data" setting.
... View more
11-16-2011
05:56 AM
|
0
|
0
|
1318
|
|
POST
|
Watch this space - the app is internal, but I work on it at home as well - last nights home version works fine! I'll send the current version home to publish on my personal site later today. In the mean time I'll have a look at what dojo.requires I added today! Cheers ACM
... View more
11-16-2011
05:53 AM
|
0
|
0
|
1318
|
|
POST
|
Hi When a user first uses a page of mine, which uses API 2.5, it hangs when initially loading, before it gets as far as the CSS, so all the items are showing unstyled. Event logs show Hanging application iexplore.exe, version 7.0.6000.17103, hang module hungapp, version 0.0.0.0, hang address 0x00000000. Killing iexplorer and starting again and it all works fine. Deleting temp internet files causes this to happen a second time. I'm guessing it is some conflict with the downloading of all the API code at once. Any ideas? ACM
... View more
11-16-2011
05:44 AM
|
0
|
5
|
1711
|
| 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 |
9 hours ago
|