|
POST
|
First, I'd like to echo Roberts and Chris' comments about diching silferlight as soon a possible. Assuming that you just can't right now, there is an old Flex trick/hack that might work for you. You could, possibly, load up your Silverlight code/object in a floating div that you place in you startup html. It is possible, using the technique that Chris mentioned to communicate between you Silverlight Div and your JS code. Its klugy, but possible.
... View more
02-01-2016
08:01 AM
|
1
|
0
|
1042
|
|
POST
|
We handle this by changing the text over the cursor. esri.bundle.toolbars.draw.addPoint = "Click to add Point"; Not sure what the exact item is for the measure tools.
... View more
01-29-2016
09:25 AM
|
0
|
0
|
1935
|
|
POST
|
If you launch your F12 tools and look at the network traffic - Does it show anything? In particular look at the response back from the server when the update goes in. Often it comes back with a 200 but there is an error in the response JSON.
... View more
01-29-2016
09:18 AM
|
0
|
0
|
518
|
|
POST
|
MS SQL has Geometry functions that might be helpful if you didn't want to preform the calc on the client side. Select shape.STArea() as Area from sde.COUNTIES
... View more
01-29-2016
07:37 AM
|
1
|
1
|
2452
|
|
POST
|
Make sure your url params line up with what your pulling in. var map; require(["esri/map", "esri/urlUtils", "esri/SpatialReference","esri/geometry/Extent", "dojo/domReady!"], function(Map, urlUtils, SpatialReference, Extent) { map = new Map("map", { basemap: "topo", center: [-122.45, 37.75], zoom: 13 }); // Fake URL to show the params use your document.location.href code below var urlObject = esri.urlToObject("http://your.server.com?xmin=-8526390.734225096&ymin= 4433687.484863019&xmax=-8518747.031396376&ymax=4437389.903420679"); // Define your vars - I believe they were only scoped to the if {} var xmin, ymin, xmax, ymax; if (urlObject.query) { if (urlObject.query.xmin) { xmin = urlObject.query.xmin; } if (urlObject.query.xmax) { xmax = urlObject.query.xmax; } if (urlObject.query.ymin) { ymin = urlObject.query.ymin; } if (urlObject.query.ymax) { ymin = urlObject.query.ymax; } var spatialRef = new SpatialReference({ wkid: 102100 }); // I'm not sure of the exact json syntax (the wksid is a little weird) so I use the constructor var urlPassedExtent = new Extent(xmin, ymin, xmax, ymax,spatialRef); } });
... View more
01-28-2016
03:55 PM
|
1
|
4
|
2119
|
|
BLOG
|
Every day I come here trying to be as smart as Robert. Not today...
... View more
01-28-2016
12:16 PM
|
3
|
0
|
1848
|
|
POST
|
I came across this issue yesterday and it took a bit to figure out. Thought I would post it here to aid others. We have two ArcGis servers and a web adapter setup. ArcGis servers on running on the default cluster. When I submitted a print job, I received the following error on all my MapServices. Unable to complete operation. Error executing tool.: Layer "layer1": Unable to connect to map server at http://.... Turned out the two user that the ArcGis servers were running under did not have permission to see the Web adapter server. Once I added the ArcGis NT User to the group that has access to the Web Adapter server, all was well.
... View more
01-28-2016
11:46 AM
|
1
|
0
|
1804
|
|
POST
|
Well, you need to use some sort of back end to "catch" the log message. The client will post it back to A server. It doesn't have to be that particular installation, it could be anywhere. But at some point you need to put some server code up somewhere. I don't think you need to change templates however. You would need to modify the current template (ie add the js startup code) and add the proper init stuff to your web.config. The simplest solution might be to just have a separate site to just catch the logs. You could then use whatever back end was simplest for you. You will still need to modify the template to add your jsnlog init code and link in the lib.
... View more
01-25-2016
10:48 AM
|
0
|
0
|
1465
|
|
POST
|
That is exactly what our UI guys did to start playing around with custom templates.
... View more
01-19-2016
02:41 PM
|
0
|
1
|
703
|
|
POST
|
I had an odd issue that sounds kinda familiar. Somehow our default cluster got hosed. I had to open up each service, drop down the ddl for the clusters and select Default. It was already selected, but for whatever reason, it needed to be selected again. But, it sounds like you have having issues even publishing. You might try re-creating the default cluster.
... View more
01-18-2016
01:14 PM
|
0
|
0
|
1078
|
|
POST
|
I don't think there is anything out of the box. eSearch widget [ rscheitlin/eSearch · GitHub ] is probably the closest. It allows for a search based on a geometry drawn by the user. I think what your looking for is a Query. It can accept a geometry and return features found with in. Query | API Reference | ArcGIS API for JavaScrip Or possibly a relationship query. RelationshipQuery | API Reference | ArcGIS API for JavaScript This sample seems close - You simply replace your circle geometry with your polygon. Select with Feature Layer | ArcGIS API for JavaScript All of the above would take some programming.
... View more
01-18-2016
08:15 AM
|
1
|
1
|
755
|
|
POST
|
Could you - - Use the "Create a custom widget" example to create a blank widget. - Use drag n drop or "upload file" to move the KML to your server. - Open up a kmllayer [KML | ArcGIS API for JavaScript ] and point it to the file you just pushed. A lot of JS code for you to write I know. I know of no widget that currently does anything like that. I have never tried pointing a KMLLayer at a local file. There is a remote chance that might just work.
... View more
01-14-2016
08:11 AM
|
2
|
0
|
691
|
|
POST
|
I might try creating a different TOC. If you populated your TOC apart from the map you could then control when the layer was added to the map, only prompting the login when a secure service was added. Level of effort would depend on how much you were using the Digit/toc Functionality. If your just toggling visibility on 6 layers, I might roll my own and have it add the layers if not currently present. There is probably a cleaver way to get the digit/toc to do that as well. I wonder if you faked out its LayerInfo array, perhaps give it a url that is not secure, then flip it first time pressed to the actual url. ... Some random duck tape thoughts ... [0] unsecureUrl [1] unsecureUrl(fake) but switched to proper secureUrl when first pressed [2] unsecureUrl ....
... View more
01-14-2016
07:35 AM
|
0
|
0
|
664
|
|
POST
|
What about something like: index.html { window.MyPostData = {}; window.addEventListener("message", onMessageReceived, false); function onMessageReceived(aEvent) { window.MyPostData = aEvent.myResultsInterestedIn; dojo.topic("myapp/postDataReady"); } } myWidget.js { onStartup: function(){ if (window.MyPostData === {}) { dojo.topic.subscribe("myapp/postDataReady", function(){ call_Init }); }else{ call_Init() } } }
... View more
01-13-2016
08:28 AM
|
0
|
1
|
1522
|
|
POST
|
The short answer is yes. You can publish an MXD with your feature class to an ArcGis server and it will have a url that will serve up that feature class. It will also allow editing and updating if you wish. Publish features—ArcGIS Online Help | ArcGIS
... View more
01-11-2016
02:52 PM
|
0
|
0
|
647
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 09-16-2025 09:54 AM | |
| 1 | 05-12-2014 01:47 PM | |
| 1 | 06-22-2017 08:13 AM | |
| 1 | 02-12-2018 09:03 AM | |
| 1 | 01-28-2016 03:55 PM |
| Online Status |
Offline
|
| Date Last Visited |
09-25-2025
06:49 AM
|