|
POST
|
More samples https://maps.strata.solutions/eddc/test/work.html This is more or less the Esri sample with a few consoles.logs added one on the measure.end and one on the measure - remember the measure event "Fires any time the mouse pointer moves while doing a distance measurement." Look at the console after the first mouse click for a line measurement. It sends loads of "moved" values Now look at https://maps.strata.solutions/eddc/test/failmaybe.html This is the sample using 3.13. Do a line measure. After the first click, as you move the mouse the distance from the first click is outputted into the widget fine (change to feet to get some bigger numbers) HOWEVER - the console.log which fires off with the measure event is only firing when you click the mouse, not when it is moved. Not crucial as the output is working. Finally https://maps.strata.solutions/eddc/test/fail.html This is the total fail version with anything newer than 3.14 Again, length measure. One click, move the mouse - no distance until that second click, then the result only gets updated on the mouse click, rather than mouse move. output from the "measure" even is the same as the partial fail above. I hope that helps. Now time to stop for the day 🙂
... View more
11-12-2020
12:36 PM
|
0
|
1
|
2476
|
|
POST
|
No, sorry, it doesn't. On the working version you click to start the measure. Then as you move the mouse the distance from the first point to the current mouse location is dynamically calculated in the results, so changes as you move the mouse. In the non-working version you only get the node-to-node distance when you click I've just done more testing and this broke in 3.14 - this page uses 3.13 and works https://maps.strata.solutions/eddc/test/failmaybe.html The dynamic measure is import for our users as they need to see what is X metres away from a point, rather than how far are these two point from each other. So they will click, then move the mouse until the measure tool says the number they are working with. The only thing I can see in the release notes for 3.14 is "BUG-000085838: Fixed an issue where polar projection coordinates displayed incorrectly when using the measurement widget." It is even more obvious with the location tool, which will return long/lat as you move the mouse around. On the fail site https://maps.strata.solutions/eddc/test/fail.html It only returns these on a mouse click Cheers ACM
... View more
11-12-2020
11:04 AM
|
0
|
2
|
2484
|
|
POST
|
Hi I have a site. It was using 3.11, now the highest 3.30, pending some more refactoring to get it to 4.x There is a measure tool. It no longer gives a result when the mouse is moved around. Only when the mouse is clicked. It still works if I go back to 3.11 I have added this measurement.on("measure-end", function (evt) {
console.log("Really done.");
// measurement.setTool(evt.toolName, false);
enableID()
});
measurement.on("measure", function (evt) {
console.log("moved");
// measurement.setTool(evt.toolName, false);
}); According to the API ref "measure" event should be when the mouse moves "Fires any time the mouse pointer moves while doing a distance measurement. (Added at v3.11). Note: Prior to v3.16, this event only fired on single-click." Yet on my new code I only get an output when I click - so showing the pre-v3.16 behaviour. I've stripped my code back as far as I can - I had added stuff to change the default units and to add more, and still the same behaviour. I have compared my code with the sample, but can't see anything. What am I missing here? Cheers ACM Edit: I stripped the Esri sample right down and now got a working version and a broken version - the broken version uses one of our services as the basemap, so in British National Grid. And, yes, we have a Geometry service defined. http://maps.strata.solutions/eddc/test/fail.html http://maps.strata.solutions/eddc/test/work.html
... View more
11-12-2020
05:12 AM
|
0
|
5
|
2500
|
|
POST
|
I seem to have spent the last decade chasing this one, but still fighting it, usually on a Friday afternoon. We have a site, on a server, let's call the server "myserver" myserver hosts AGS so we can call stuff with "myserver/arcgis/" The site myserver hosts has an internally set name, lets say "maps" so users go to http:\\maps to see maps. Most of this is now working, but one part of the code calls a Print service. So - http://myserver/arcgis/rest/services/PrintService2/GPServer?f=json That is when the dreaded CORS error kicks in. Under http://myserver:6080/arcgis/admin/system/handlers/rest/servicesdirectory Allowed Origins is set to * In the code I have added "esri.config.defaults.io.corsEnabledServers.push("myserver");" using the short name and fully qualified name. I have tried adding an Allowed Origins part to every possible web.config file I can see. But still, I get Access to XMLHttpRequest at 'http://myserver/arcgis/rest/services/PrintService2/GPServer?f=json' from origin 'http://maps' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. I am doomed to keep seeing this error until I retire. I am losing hope of ever being able to sort it. EDIT: Amazing, "fixed" this on a Friday afternoon - I added the port - myserver:6080 - which to me looks like the issue is in the Web Adaptor. So still a question I'd love to get answered.
... View more
09-18-2020
07:24 AM
|
0
|
0
|
828
|
|
POST
|
looks like a known issue frm ages back https://bugs.dojotoolkit.org/ticket/18347
... View more
04-14-2020
02:03 AM
|
0
|
0
|
851
|
|
POST
|
Hi This is hopefully a simple thing for some Dojo guru. When I add a placeholder to a Placeholder to a text bx, like <input dojotype='dijit/form/TextBox' placeholder='Enter any part of the address' data-dojo-props='trim:true, selectOnClick:true' type='text' id='searchtext' /> The right click context menu doesn't have the "Paste" option Any ideas? Cheers ACM
... View more
04-14-2020
01:54 AM
|
0
|
1
|
885
|
|
POST
|
We currently view Pro as Alpha release quality and have no plans to move away from Desktop, it simply isn't fit for the job. It looks good, the interface brings back lost features from ArcView 3.x project files and it has potential. It just is so slow
... View more
03-21-2020
09:03 AM
|
4
|
1
|
6230
|
|
POST
|
For us, it is unusable for a daily GIS. Still. We only use it where we have to/
... View more
01-15-2020
04:49 AM
|
7
|
0
|
7298
|
|
POST
|
OK - maybe one mainly for UK users. I have tried to use the lyr files OS have provided here GitHub - OrdnanceSurvey/OSMM-Topography-Layer-stylesheets: SQL scripts & cartographic stylesheets for OS MasterMap Topog… Rendering a map of just the Topo Areas at 1:2500 takes over 10 seconds - and this is a a category break based on a single field - the numeric Style type. If I replace the OS styles with a colour ramp, it is still slow. If I apply single style, then re-apply the ArcMap random colours on the style_code it is again, fast. If I then import the OS style into this fast layer - it is slow again! And stays slow if I apply a colour ramp. However, if I do a ArcMap assigned random colors to the text field, style description, the map is drawn almost instantly Indexing the fields doesn't seem to make any difference If I apply the STYLES from the style type field to the Style Description, again it slows down. The styles aren't complex, the most complex are a few graphics on a simple fill Any UK users had similar and managed to get layer file that draws as quick as ArcMap assigned random colours? Cheers ACM
... View more
01-15-2020
04:09 AM
|
1
|
1
|
1008
|
|
POST
|
Don't you just hate it when you have a problem ,Google it, find a forum that looks interesting, only to find you've been here before and posted in it and that previous version of me has made more progress that today's version of me? Surely, someone has found a way to do a simple UK locator - all I want is a simple wild card search on a single field!
... View more
12-16-2019
12:54 PM
|
0
|
0
|
748
|
|
POST
|
OK - I think this is all sorted - I don't know how/where but my code on the old server had http://esri-gis1-oldserver/arcgis/rest/services/Utilities/Geometry/GeometryServer Where as the new server has http://esri-gis1-NEW-server/server/rest/services/Utilities/Geometry/GeometryServer I would have expected that this would have caused a 404 error and I would have noticed straight away. But instead I got the CORS error, so spent ages looking at that, rather than the real, and a lot simpler issue, of a bad URL Odd, but I'm moving on now 🙂 Thanks for the help
... View more
11-18-2019
01:16 AM
|
0
|
0
|
3635
|
|
POST
|
Doh! For some reason the geometry and other URLs are now different from my original code - and I should have been getting 404, rather than this COR error I had http://esri-gis1/arcgis/rest/services/Utilities/Geometry/GeometryServer But it is now http://esri-gis1/server/rest/services/Utilities/Geometry/GeometryServer That extra word "server" has crept in
... View more
11-13-2019
07:14 AM
|
0
|
0
|
3635
|
|
POST
|
I think my issue here https://community.esri.com/message/890827-the-end-of-2019-and-still-battling-cors-issues May be related - thoughts?
... View more
11-13-2019
04:08 AM
|
1
|
0
|
7597
|
|
POST
|
..and adding stuff to the AGS webconfig to enable * then gives errors that I have added too much in different places - Access to XMLHttpRequest at 'http://esri-gis1/server/rest/info?f=json' from origin 'http://maps' has been blocked by CORS policy: The 'Access-Control-Allow-Origin' header contains multiple values 'http://maps, *', but only one is allowed.
... View more
11-13-2019
04:05 AM
|
0
|
0
|
3635
|
|
POST
|
This is the error that never goes away and drives me nuts The site is using the latest 3.x api It does NOT use the proxy.aspx page the server is , lets say "esri-gis1" there is an internal site in the internal DSN, let's call that "maps" users access the site by using "maps" as a URL The code calls maps from esri-gis1\arcgis\rest\services...... The map page works fine. Requests are fine and if I examine the response headers for the basic requests it shows * in the Allow-Control-Allow-Origin The issues start when I call, for example I call the geometry service http://esri-gis1/arcgis/rest/services/Utilities/Geometry/GeometryServer In a task that I use to convert the local grid to Long Lat Then I get the Access to XMLHttpRequest at 'http://esri-gis1/arcgis/rest/services/Utilities/Geometry/GeometryServer/project?.........' from origin 'http://maps' has been blocked by CORS policy: No 'Access-Control-Allow-Origin' header is present on the requested resource. I got around this on the current site by using the Proxy page and adding esri.config.defaults.io.corsEnabledServers.push("esri-gis1"); But I ind the Proxy page adds more trouble than it solves. Any help please? ACM
... View more
11-13-2019
03:35 AM
|
0
|
4
|
4499
|
| 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 |
Monday
|