|
POST
|
Matt Driscoll What about dynamic sublayer control?
... View more
06-30-2015
04:56 PM
|
0
|
2
|
1455
|
|
POST
|
Hosting the API locally has resolved the issue. It had been working, but evidently the network security system decided the request for mutableWorker.js was unsafe and started blocking it.
... View more
06-30-2015
09:28 AM
|
1
|
0
|
1306
|
|
POST
|
You can certainly us it outside of CMV Simon. Here's the docs: Layer Control - CMV So CMV has some secret sauce which creates the LayerInfos array for layers loaded with CMV. You'll need to do that yourself. The docs explain it. It uses Font Awesome, the iconic font and CSS toolkit so you need to have it loaded. Quick tip: the layer property of a layerInfo object accepts either a layer object or layer id. If you are giving your layers ids (and you should) you can just use layer ids. Which is handy when you might not have the layer objects in the same scope.
... View more
06-30-2015
09:17 AM
|
1
|
4
|
1455
|
|
POST
|
None of the api js files are being requested through proxy. Only services. The request for mutableWorker.js fails without any meaningful error the same way services which are not requested without proxy fail.
... View more
06-26-2015
02:27 PM
|
0
|
2
|
1306
|
|
POST
|
Simply trying to use geometryEngineAsync. Works fine in development and on servers I've tested it on. The production environment is accessed via remote desktops of some kind of enterprise environment. As a result service requests (layers, queries etc) all have to be run through proxy regardless if it's a local service or in the wild. Those requests fail without proxy via the api, but work directly in the browser. When geometryEngineAsync is used for the first time it requests mutableWorker.js. And just like services the GET request fails via the api but the file is accessible directly in the browser via url. My question is the result of the fact the same vague GET request failure seen with unproxied services is the same one when geometryEngineAsync requests mutableWorker.js and fails. After some discussions we're just gonna start hosting the api locally to see if that resolves the issue. The long term goal is to just do dojo builds anyway.
... View more
06-26-2015
01:36 PM
|
0
|
4
|
1306
|
|
POST
|
Strange question...but does the api GET mutableWorker.js via esri/request? Replacing geom service requests with geometryEngineAsync. Testing app deployment on highly restrictive internal network which has required all requests for services, queries, etc to go through proxy for some reason above my pay grade. Can access http://js.arcgis.com/3.13compact/esri/workers/mutableWorker.js via browser but api request fails. Thought? Ideas? Esri JS Team? Thanks
... View more
06-25-2015
11:49 AM
|
0
|
6
|
4132
|
|
POST
|
one out of two ain't bad thanks and keep up the good work
... View more
06-03-2015
05:02 PM
|
0
|
0
|
922
|
|
POST
|
Kelly Hutchins Can I expect dstore and dgrid 0.4.0 in 3.14? (fingers crossed)
... View more
06-03-2015
12:03 PM
|
0
|
2
|
922
|
|
POST
|
Ryan, My experience with querying lots of objectIds is the same as yours...slow, if not fail or timeout. The easiest solution is to increase the max records of the service if able. AGS 10.3 has pagination which would be slightly less easy but still pretty easy. ArcGIS REST API
... View more
05-29-2015
08:06 AM
|
1
|
0
|
554
|
|
POST
|
I guess I don't understand why you need deferreds when the geom service methods return deferreds themselves. Something like: var promises = [];
array.forEach(layer.featureSet.features, function (feat) {
promises.push(this.geometryService.simplify([feat.geometry]));
}, this);
all(promises).then(callback, errback); And the same for areasAndLengths.
... View more
05-28-2015
11:41 AM
|
1
|
1
|
1804
|
|
POST
|
I was asking because feature layers are easier yet. You don't need to make a call to the legend endpoint. All the methods and props are right there in the renderer classes. You're on the right track with svg. You can create surfaces and svg using 'dojox/gfx'. Here are the methods for that.
... View more
05-28-2015
11:08 AM
|
1
|
1
|
2648
|
|
POST
|
Hey Chris are you talking about feature or dynamic layers?
... View more
05-28-2015
10:41 AM
|
0
|
3
|
2648
|
|
POST
|
The legend json can be gotten via an esriRequest to https://SERVER/arcgis/rest/services/SERVICE/legend Example of a single layer legend info: {
"layerId": 0,
"layerName": "City Limits",
"layerType": "Feature Layer",
"minScale": 0,
"maxScale": 0,
"legend": [{
"label": "",
"url": "d81c20bbbe11d1b64ebe9ad98f2e9062",
"imageData": "iVBORw0KGgoAAAANSUhEUgAAABQAAAAUCAYAAACNiR0NAAAAAXNSR0IB2cksfwAAAAlwSFlzAAAOxAAADsQBlSsOGwAAADFJREFUOI1jYaAyYKGZgf/+7WugxCAmJqcGFAOpBUYNHDVw1MBRA+lsIKw8o5qB1AIA8kUFF7zjdA0AAAAASUVORK5CYII=",
"contentType": "image/png",
"height": 20,
"width": 20
}]
} The "layerId" and "legend.url" properties can then be use to form a url for img src. In the above example: https://SERVER/arcgis/rest/services/SERVICE/MapServer/0/images/d81c20bbbe11d1b64ebe9ad98f2e9062 with aforementioned properties in bold. Gets a bit more complicated with categories and renderers. cmv-app/legendUtil.js at master · cmv/cmv-app · GitHub here's a utility class I use. It's written to back a specific widget but has examples of the requests and handling the responses.
... View more
05-28-2015
09:54 AM
|
1
|
0
|
2648
|
|
POST
|
Jerry Garcia Looks like deferred hell to me. Here's my take on that problem all with 2 sever calls and no deferreds: constructor: function () {
this.geometryService = new GeometryService(this.geometryServiceURL);
this.areasAndLengthParams = lang.mixin(new AreasAndLengthsParameters(), {
lengthUnit: GeometryService.UNIT_FOOT,
areaUnit: GeometryService.UNIT_ACRES,
calculationType: 'geodesic'
});
},
validate: function (layer) {
var geometries = [];
array.forEach(layer.featureSet.features, function (feat) {
geometries.push(feat.geometry);
});
this.geometryService.simplify(geometries, lang.hitch(this, '_simplifyResult'), lang.hitch(this, '_simplifyError'));
},
_simplifyResult: function (results) {
this.areasAndLengthParams.polygons = results;
this.geometryService.areasAndLengths(this.areasAndLengthParams, lang.hitch(this, '_areasAndLengthsResult', results), lang.hitch(this, '_areasAndLengthsError'));
},
_simplifyError: function (error) {
// handle error
},
_areasAndLengthsResult: function (simplifiedGeometries, results) {
// i'm making a HUGE assumption here the array of areas is in the same order as geometries passed to areasAndLengths
array.forEach(simplifiedGeometries, function (simpGeom, idx) {
var acres = Math.floor(result.areas[idx]);
// do your check here
}, this);
},
_areasAndLengthsError: function (error) {
// handle error
} Also check out esri/geometry/geometryEngineAsync | API Reference | ArcGIS API for JavaScript . It's all on the client now.
... View more
05-27-2015
05:22 PM
|
0
|
3
|
1804
|
|
POST
|
Cedar is great b/c it works with feature services right out of the gate. Chartist - Simple responsive charts is another option. Need to code a bit more to create your data series but light-weight with no dependencies.
... View more
05-26-2015
01:11 PM
|
1
|
0
|
1711
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 06-18-2013 06:56 AM | |
| 1 | 06-30-2015 09:17 AM | |
| 1 | 10-12-2013 07:14 AM | |
| 1 | 02-05-2014 11:05 AM | |
| 1 | 05-28-2015 11:41 AM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:23 AM
|