POST
|
I've implemented this sample with success, it holds the token info client side.
... View more
03-31-2014
11:29 AM
|
0
|
0
|
402
|
POST
|
...hide the REST URLs? ...unnecessary hits on those URLs You really are talking about two different, although related, issues. Others have done a pretty good job of explaining already. 1. Hiding the URLS, or hiding the ArcGIS Server 2. Avoiding the unintended use of services For #1, you can use a proxy on the server that changes the service from .../arcgis/rest/xxxx/mapserver to keep people from knowing the data source URL, but if the client (browser) is requesting the data they will still see how to hit your service, so not much is accomplished. For #2, you can secure the service with a long term token tied to the website so that people can't use it in their web applications or ArcMap desktop. However, they can still get to the data either from your site and the javascript console, or faking request headers. We think we might have people that just click identify on every feature in the map to farm the secured data 🙂 To really avoid people seeing the URLs or getting data from the service wholesale (if that is your intent), you would need to make a server-side application that requests the data server-side and then only sends them what you want them to see. They won't see where the data came from or be able to request it themselves separately. Of course a busy site will put a lot of load on the webserver.
... View more
02-07-2014
06:11 AM
|
0
|
0
|
21714
|
POST
|
I'm looking for this answer too. I have a published query layer and cannot get it to allow me to output any type of statistics. The response is "Unable to complete operation." The server logs show 'Geodatabase error: Underlying DBMS error.' DB is SQL Server 2008 R2 RTM, normal queries and identifies work. The rest page shows 'Supports Statistics: true'
... View more
01-23-2014
06:33 AM
|
0
|
0
|
812
|
POST
|
Have you looked at the network response in your browsers developer tools? You should be able to see where the request went and what response was returned. That might help you narrow it down.
... View more
11-26-2013
09:29 AM
|
0
|
0
|
651
|
POST
|
I wouldn't say it can't be done, just a matter of deciding if it's worth the effort. For example, the webmap id is just how they download (through json) the map's information, which then constructs the map. This createmap utility function mentions that instead of a webmap id you can provide the response object. So you could craft your own json response object and try putting that in the template and see if it will work.
... View more
11-06-2013
02:04 PM
|
0
|
0
|
425
|
POST
|
yeah, you don't want visibility:hidden, you want display:none
... View more
11-05-2013
12:12 PM
|
0
|
0
|
502
|
POST
|
I have what I think is a similar issue. I have a 3.7 site that uses the identity manager. In IE 8 the image symbols are not showing up for the two secured feature layers. The network traffic shows the request with a login page response. The identity manager credentials should be handing off a token in the request, but doesn't appear to be.
... View more
10-31-2013
12:38 PM
|
0
|
0
|
186
|
POST
|
If you are working with the basemap gallery, then you will have to monitor it's change events and use it's methods to get the current selected basemap.
basemapGallery.on('selection-change', function(){
alert(basemapGallery.getSelected().title);
});
You'll probably want to return the id instead of the title, since that's what the basemapGallery.select() requires.
... View more
10-23-2013
10:29 AM
|
0
|
0
|
385
|
POST
|
You could make an ESRI request to http://spatialreference.org/ Unfortunately the JSON doesn't return what you are looking for, but you could handle the GML (as xml) returned from http://spatialreference.org/ref/epsg/32611/gml/
... View more
10-23-2013
10:15 AM
|
0
|
0
|
252
|
POST
|
As far as IDEs, you might try Microsoft's WebMatrix One of the nice features are the emulators for mobile development. Also has template starter sites.
... View more
10-11-2013
12:48 PM
|
0
|
0
|
303
|
POST
|
I'm going to guess it's because the 'hidden' div has no height element yet. You could try a couple things Mess with css until it has a height, like make the div and it's container(s) 100%. Will probably be a lot of trial and error. Don't call the createEditing function till the editing tab is selected I would suggest option 2 because it reduces initial page load time, and never loads that stuff at all if the user never selects the editing tab.
... View more
10-10-2013
02:16 PM
|
0
|
0
|
463
|
POST
|
Oddly enough, in their 3.7 api mouse event example, they attach the mouse-out to the map.graphics and the mouse-over to the layer. Maybe they are already aware of the issue. Instead of changing the renderer of the graphic, you could try adding a graphic like the example, and then clearing it. http://developers.arcgis.com/en/javascript/sandbox/sandbox.html?sample=fl_hover
... View more
10-04-2013
06:30 AM
|
0
|
0
|
182
|
POST
|
Should it not be
map.on("layers-add-result", function(e) {
...
?
... View more
10-02-2013
07:10 AM
|
0
|
0
|
455
|
POST
|
Why don't you do something like function showQueryResults(results) { dom.byId("facilityDetailDiv").innerHTML = ""; var s = "", aliases = results.fieldAliases; for (var i=0, il=results.features.length; i<il; i++) { var featureAttributes = results.features.attributes; for (att in featureAttributes) { s = s + "<b>" + (aliases.hasOwnProperty(att) && aliases[att]) + ":" + featureAttributes[att] + "<br>"; } s = s + "<br>"; } dom.byId("facilityDetailDiv").innerHTML = s; } The hasOwnProperty method just safeguards that you don't try to retrieve a value for a non-existent key.
... View more
09-26-2013
12:43 PM
|
0
|
0
|
269
|
POST
|
I'm able to put line breaks in my customTextElements using "\n".
... View more
09-26-2013
12:28 PM
|
0
|
0
|
112
|
Online Status |
Offline
|
Date Last Visited |
03-21-2023
08:19 PM
|