|
POST
|
We use scripts (python toolbox) to publish our map and geoprocessing services. For most of our services, we use the default service setting. In order to set custom properties (like dynamic layers), we store the custom properties in a json config file. After the service is published, we fetch the service properties using the a call to the Admin API, edit the fetched json object using the stored file, then apply the edits by making another call to the Admin API.
... View more
01-25-2016
12:30 PM
|
1
|
0
|
2144
|
|
POST
|
I don't think you can. ArcGIS Online maps use a default for all query tasks. It looks like the app creates a buffer (actually an envelope) around the click point . I doubt it can be updated.
... View more
01-19-2016
10:15 AM
|
0
|
0
|
2061
|
|
POST
|
Could you use the elevation profile widget as an example? Something like this: http://www.arcgis.com/apps/Elevations/index.html?webmap=8dd583ea3de64e40b92ea5a261d0c6c8
... View more
09-25-2015
07:37 AM
|
0
|
0
|
1887
|
|
POST
|
Alright. Finally got it working. The key is setting window.document.dojoClick to false. Here is a jsfiddle that seems to work on all emulated devices. http://jsfiddle.net/8m8y6gea/8/
... View more
09-24-2015
02:37 PM
|
0
|
0
|
2382
|
|
POST
|
Ok, I think I tracked it down to the root of the problem. It appears to be caused by the following lines of code in "dojox/mobile/common", which is called by "dojox/mobile/View".
// tell dojo/touch to generate synthetic clicks immediately
// and regardless of preventDefault() calls on touch events
win.doc.dojoClick = true;
/// ... but let user disable this by removing dojoClick from the document
if(has("touch")){
// Do we need to send synthetic clicks when preventDefault() is called on touch events?
// This is normally true on anything except Android 4.1+ and IE10+, but users reported
// exceptions like Galaxy Note 2. So let's use a has("clicks-prevented") flag, and let
// applications override it through data-dojo-config="has:{'clicks-prevented':true}" if needed.
has.add("clicks-prevented", !(has("android") >= 4.1 || (has("ie") === 10) || (!has("ie") && has("trident") > 6)));
if(has("clicks-prevented")){
dm._sendClick = function(target, e){
// dojo/touch will send a click if dojoClick is set, so don't do it again.
for(var node = target; node; node = node.parentNode){
if(node.dojoClick){
return;
}
}
var ev = win.doc.createEvent("MouseEvents");
ev.initMouseEvent("click", true, true, win.global, 1, e.screenX, e.screenY, e.clientX, e.clientY);
target.dispatchEvent(ev);
};
}
} Looks like I might be able to override it for the map or feature layer. Or maybe the whole page. Not sure.
... View more
09-24-2015
01:57 PM
|
0
|
1
|
667
|
|
POST
|
I like the concept, but it seems like a slippery slope when it comes to implementation. I need it to behave like a map or feature layer click event. I would need to fetch the underlying graphics and code for the difference between a short click, long click, pan, etc. Doable, but a potential maintenance nightmare. I'm curious why this stopped working at version 3.11. There was a move to Dojo 1.10 at this point. I doesn't look like there is any functional difference between the the 1.9 and 1.10 version of dojo.mobile.View, so I suspect the issue is in the Javascript API. I guess I'm leaning towards rolling back to version JSAPI 3.10 or trying a different mobile framework.
... View more
09-24-2015
01:02 PM
|
0
|
0
|
667
|
|
POST
|
I noticed the errors when emulating as well. I'm not too concerned about them since they are the same for both apple and android. The problem is intermittent. Once in a while I can get a event to fire, but rarely. You can view the app I'm working on at this link: Sunrise/Sunset Times by Zone It works fine on my desktop and on IOS devices, but not on Android.
... View more
09-24-2015
12:02 PM
|
0
|
1
|
1718
|
|
POST
|
Are you refreshing the browser when you switch devices? That is required on my end. If I do so, it works in the Apple devices, but not the Samsung or Google Nexus devices.
... View more
09-24-2015
11:52 AM
|
0
|
3
|
1718
|
|
POST
|
I am trying to use the dojox.mobile framework to build a mobile friendly app. However, as soon as I add a require for "dojox/mobile/View", the map stops registering click events reliably on Android devices. It seems like it is an API issue, because if I roll back to API 3.10, it works fine. Here is a jsFiddle that demonstrates the problem: http://jsfiddle.net/f1wt0yjq/ In order to see the problem on a desktop, you will need to view it in Android device using Chromes developer tools. When you click the map using an IOS device or windows, you get a "map clicked" in the console. The same is not when using an android device.
... View more
09-24-2015
10:22 AM
|
0
|
13
|
6276
|
|
POST
|
You'll need to wait for the basemap to load before using the 'remove' function. basemapGallery.on('load',function(){
basemapGallery.remove('basemap_2');
basemapGallery.remove('basemap_9');
});
basemapGallery.startup();
... View more
09-22-2015
08:05 AM
|
1
|
0
|
1240
|
|
POST
|
Figured it out by digging into the "_canDoClientSideQuery" function associated with the feature layer. It appears as though the Query has to be of a very specific type for it to work. The Query spatialRelationship must be set to "SPATIAL_REL_INTERSECTS" and the geometry type must be an extent. This seems overly restrictive and does not appear to be documented anywhere. Here is a working fiddle: http://jsfiddle.net/nawm78kp/2/
... View more
09-11-2015
08:24 AM
|
1
|
0
|
677
|
|
POST
|
I have a an application with a feature that I'm running a selectFeatures command on. When I created the feature layer, I put it in MODE_SNAPSHOT which should make everything available via the client. According to the documentation, https://developers.arcgis.com/javascript/jsapi/featurelayer-amd.html#selectfeatures, the query should run on the client, but when I look as the NET tab in the browser I can clearly see the features getting fetched from the server. Here is jsFiddle that should illustrate the problem: http://jsfiddle.net/nawm78kp/1/ Am I missing something?
... View more
09-10-2015
01:44 PM
|
0
|
1
|
2510
|
|
POST
|
I usually work with csv's as well. No reason to create a shape file if you don't need to.
... View more
06-19-2015
07:29 AM
|
0
|
0
|
3280
|
|
POST
|
Does it need to open it in ArcMap? Depending on the format of the table, you open it to another program... from subprocess import Popen
Popen(pathToOutputTable, shell=True)
... View more
06-18-2015
03:01 PM
|
2
|
6
|
3280
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 04-21-2017 10:00 AM | |
| 1 | 09-11-2015 08:24 AM | |
| 1 | 01-25-2016 12:30 PM | |
| 1 | 05-27-2015 08:12 AM | |
| 1 | 06-09-2015 03:28 PM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:23 AM
|