BLOG
|
All 3 of those items are required for us to adopt Pro. We use these tools on a daily basis, and cannot regress in functionality. Thanks!
... View more
03-28-2017
12:57 PM
|
2
|
0
|
13234
|
BLOG
|
Any idea when the COGO tools will be making the leap to Pro with feature parity? Without that we are unable to transition.
... View more
03-28-2017
10:14 AM
|
0
|
0
|
13234
|
POST
|
Just FYI, I've tried it with web services from a 10.2.1 web server and a 10.2.2 web server. The 10.2.1 web server works properly. It seems to be a difference between the web services, but I can't think of anything that would cause this behavior.
... View more
12-05-2016
09:46 AM
|
0
|
0
|
325
|
POST
|
I'm trying to use a web service in a desktop addin, and I'm trying to get access to the data in that web service. When I try to get the MapName string to call GetServerInfo, an exception occurs. The exception is "An event was unable to invoke any of the subscribers". I'm using ArcGIS 10.2.1 with .Net 4. Any ideas on how to get around this?
... View more
12-02-2016
12:50 PM
|
0
|
1
|
661
|
POST
|
I'm trying to print using the built in PrintingTools geoprocessing service using 10.2.1, and everything is working well with one exception. I allow the user to select one or more polygons in the map, storing the graphics in a graphics layer. I want to print those polygons on the map, and the export web map specification http://resources.arcgis.com/en/help/main/10.2/index.html#/ExportWebMap_specification/0155000004w2000000/ indicates that client side graphics layer can be included. I've built the json in the proper format (at least the geoprocessing service accepts it and returns an image properly) but the graphics layer do not show up in the image. Any idea what I'm missing or doing wrong? Thanks.
... View more
01-14-2016
06:38 AM
|
0
|
1
|
3168
|
POST
|
I'm trying to print using the built in PrintingTools geoprocessing service using 10.2.1, and everything is working well with one exception. I allow the user to select one or more polygons in the map, storing the graphics in a graphics layer. I want to print those polygons on the map, and the export web map specification http://resources.arcgis.com/en/help/main/10.2/index.html#/ExportWebMap_specification/0155000004w2000000/ indicates that client side graphics layer can be included. I've built the json in the proper format (at least the geoprocessing service accepts it and returns an image properly) but the graphics layer do not show up in the image.
... View more
01-12-2016
02:36 PM
|
0
|
0
|
2266
|
POST
|
Fabulous! With a few minor changes, this works perfectly. I've copied my final code below, but the changes I had to make are at lines 16 and 43 in your code. Basically, the response in your code (line 16) is an array of response objects, so I have added a nested forEach to get to the underlying features, and the parcel is a graphic (line 43), so I have to get the parcel.feature, geometry. Thanks so much for your help! define(["dojo/_base/declare", "dojo/promise/all", "dojo/_base/lang", "dojo/_base/array", "esri/tasks/query"],
function (declare, all, lang, array, Query) {
var sdcAddressSelector = declare(null, {
constructor: function () {
this.addresses = [];
},
addAddressesToList: function (response) {
var _this = this;
array.forEach(response, function (r) {
array.forEach(r.features, function (f) {
_this.addresses.push(f);
});
});
_this.callAPI();
},
callAPI: function () {
//api calls here
},
createQueryParams: function (layers, geom) {
var queryParamsList = [];
array.forEach(layers, lang.hitch(this, function () {
var queryParams = new Query();
queryParams.geometry = geom;
queryParams.outFields = ['*'];
queryParams.returnGeometry = false;
queryParams.outSpatialReference = esriMap.map.spatialReference;
queryParamsList.push(queryParams);
}));
return queryParamsList;
},
executeSelect: function (selectedParcels) {
mapUI.showWorking();
var _this = this;
var promises = [];
array.map(selectedParcels, lang.hitch(this, function(parcel) {
var params = this.createQueryParams(esriMap.addressServices, parcel.feature.geometry);
array.map(esriMap.addressServices, lang.hitch(this, function (layer, index) {
promises.push(layer.queryFeatures(params[index]));
}));
}));
var qPromises = new all(promises);
qPromises.then(lang.hitch(this, function (r) {
lang.hitch(this, this.addAddressesToList(r));
}), lang.hitch(this, function (err) {
console.info(err);
}));
}
});
return sdcAddressSelector;
});
... View more
05-20-2015
01:44 PM
|
1
|
0
|
2102
|
POST
|
No, as the design is to handle n+ number of parcels selected, so a loop is required. This is the challenge. To use the example you cite, I need to run the parcel and buildings queries n+ times, and wait until ALL of those finish before I continue. If it were simply a known number of queries I wouldn't have asked the question, as I already know how to do that. Thanks anyways.
... View more
05-19-2015
01:55 PM
|
0
|
3
|
2103
|
POST
|
Well, that didn't do it. Thanks for catching the missing ".then" in line 35, but my outer promise is returning before my internal promise. So my API call happens before I have all of the address points returned from the layer.queryFeature calls.
... View more
05-19-2015
09:55 AM
|
0
|
7
|
2101
|
POST
|
I'm trying to query address points from two FeatureLayer objects for one or more parcel polygons. The user will select the parcel polygons on the map, and behind the scenes, the address points will be selected. Once all the address points are selected, then I need to make an API call. I've written some code, shown below, and I'm close, but my outer "all" promise is not calling the API as expected. How do I do nested async calls like this, and have all complete before calling my API? Thanks! define(["dojo/_base/declare", "dojo/promise/all", "dojo/_base/lang", "dojo/_base/array", "esri/tasks/query"],
function (declare, all, lang, array, Query) {
var sdcAddressSelector = declare(null, {
constructor: function () {
this.addresses = [];
},
addAddressesToList: function(response) {
response = array.filter(response, function (r) {//filter out any failed tasks
return r.length > 0;
});
array.forEach(response, function (r) {
this.addresses.push(r);
});
},
callAPI: function () {
//api calls here
},
executeSelect: function (selectedParcels) {
var _this = this;
var selectList = array.map(selectedParcels, function (parcel, index) {
qry = new Query();
qry.geometry = parcel.feature.geometry;
//async loop over the address layers to get the addresses that intersect the current parcel
var addressList = array.map(esriMap.addressServices, function (layer, index) {
layer.queryFeatures(qry, lang.hitch(_this, _this.addAddressesToList));
});
return all(addressList);
});
return all(selectList, lang.hitch(this, this.callAPI));
},
});
return sdcAddressSelector;
});
... View more
05-19-2015
09:24 AM
|
0
|
9
|
6490
|
POST
|
I was able to solve the issue. What I did is wrap my content in a div with an id and assign overflow-y: auto to the id via css. Now it scrolls properly on the ipad. I don't know why the esri div with class=contentPane doesn't work, as it has overflow: auto as it's csss. I'm wondering if it's related somehow to the fact that I was using a table to control the content layout. Regardless, wrapping all the content in a div with overflow-y:auto solved it. Thanks all!
... View more
04-23-2014
01:12 PM
|
0
|
1
|
2116
|
POST
|
We had a similar problem and had to use the 3 finger slide to scroll up and down in a popup on the ipad. Thanks, Luci I'm unsure how you did this. I tried, with multitasking gestures enabled and disabled, and I can't get the popup to scroll with 3 fingers.
... View more
04-23-2014
11:58 AM
|
0
|
0
|
2116
|
POST
|
Can you test with this application in your iPad? Click on a state to display the info window. I was able to scroll/pan with this. I was also able to scroll/pan, but you're using an InfoWindowLite class, not the Popup class. I forked your fiddle here, and I can't scroll on the iPad using the Popup class.
... View more
04-23-2014
11:57 AM
|
0
|
0
|
2116
|
POST
|
Hi Shawn, I tested this in Safari on an iPad (5.1.1) and while I did not see the scroll bar, I was still able to pan down into the contents of the info window, and see all the contents there. Can you confirm if you are able to pan or scroll even without the scroll bar? -Noah I am not able to pan down into the contents of the info window using Safari 5.1.1 as well. Just to anticipate the question, my identify handler is very simple, shown below. handleIdentifyResults: function(results) {
var countOfResults = 0;
var content = "";
var _this = this;
results = array.filter(results, function (result) {//filter out any failed tasks
return result.length > 0;
});
array.forEach(results, function (result) {
for (var i = 0; i < result.length; i++) {
content += "<b>" + shared.htmlEncode(result.layerName) + "</b><br>";
content += "<table>";
for (var member in result.feature.attributes) {
content += "<tr><td>" + shared.htmlEncode(member) + ":</td><td>" +
shared.htmlEncode(result.feature.attributes[member]) + "</td></tr>";
}
content += "</table><br>";
countOfResults++;
}
});
var resultText;
if (countOfResults === 1) {
resultText = " Feature Identified";
} else {
resultText = " Features Identified";
}
mapControl.popup.setTitle(countOfResults + resultText);
mapControl.popup.setContent(content);
mapControl.popup.resize(320, 250);
mapControl.popup.show(this.clickEvt.screenPoint, map.getInfoWindowAnchor(this.clickEvt.screenPoint));
}
... View more
04-23-2014
05:43 AM
|
0
|
0
|
2116
|
Title | Kudos | Posted |
---|---|---|
1 | 05-20-2015 01:44 PM | |
2 | 04-21-2014 01:45 PM | |
2 | 03-28-2017 12:57 PM | |
1 | 03-29-2013 08:36 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|