POST
|
Try to move the parser.parse outside the ready function. As per the doc dojo/ready — The Dojo Toolkit - Reference Guide it says, its has been replaced by AMD API. so you dont exactly need to use ready unless there is a special requirement. I also see you are loading a huge list of objects in the require. try to avoid it, load only the ones you are going to use are used in Html. I understand you are migrating from legacy to AMD style. try to be more modulaized and divide the code into smaller modules and widgets. Hope it was helpful.
... View more
05-26-2015
07:05 AM
|
1
|
0
|
1162
|
POST
|
It shouldn't matter which projection system you use. The 1.5 and 1.1 is a factor like 1.5 times the existing width. its a matter for selecting the correct factor for your need.
... View more
05-22-2015
01:50 PM
|
0
|
2
|
1049
|
POST
|
What is this ready function?. Can you share the code. It should be as Tim shown below require
... View more
05-22-2015
01:45 PM
|
0
|
0
|
1162
|
POST
|
I believe it is the first thing you need to call before all the other dijits and widgets initialization. There are many ways to setup the dojo config you can use the legacy way like this <script>
dojoConfig= {
parseOnLoad: false,
async: true
};
</script> of use script tag <script src="http://js.arcgis.com/3.13/ " data-dojo-config="parseOnLoad: false, async: 1">
</script> Read more here: Configuring Dojo with dojoConfig - Dojo Toolkit Tutorial
... View more
05-22-2015
10:51 AM
|
0
|
0
|
1162
|
POST
|
I did not understand what exactly you meant by symbol cutoff. If you are saying that both the points are not clearly visible then, that is because you are taking the pionts extent. just use vFeaturesExtent = vFeaturesExtent.expand(1.5); that should make the points visble at properly
... View more
05-22-2015
10:41 AM
|
1
|
5
|
1049
|
POST
|
I check the implementation for 3.13 api and there is no reference of start or num. My guess is good as yours, Its still being implemented. Wonder why they have it updated in the document.
... View more
05-21-2015
10:08 AM
|
0
|
0
|
2791
|
POST
|
The Query object has property num which takes in values for the number of records to be returned. It should be used alson with start. check the api reference for Query object.
... View more
05-21-2015
08:06 AM
|
1
|
8
|
2791
|
POST
|
You can not query on multiple layers at the same time. What you could do is query on each layers and combine the results together using the dojo/promise/all as discussed in this thread How to nest dojo async calls and wait until all are complete Only instead of layer.queryFeatures your need to use QueryTask for each of the layers.
... View more
05-21-2015
07:06 AM
|
1
|
0
|
3120
|
POST
|
Glad, I could help. you could help me by updating the status of this discussion.
... View more
05-21-2015
06:45 AM
|
0
|
0
|
407
|
POST
|
Your Basemap are they a single layer or multiplelayers with isReference=true?
... View more
05-19-2015
10:08 AM
|
1
|
1
|
854
|
POST
|
Try this... 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 addressList.promise;
});
return all(selectList).then(lang.hitch(this, this.callAPI)));
},
});
return sdcAddressSelector;
});
... View more
05-19-2015
09:47 AM
|
1
|
8
|
2531
|
POST
|
You can use ComboBox or FilteringSelect and set the property hasDownArrow to false. that way the dropdown will look like textbox and will provide you autocomplete option. I hope you dont have too many records to populate in the dropdown.
... View more
05-19-2015
08:54 AM
|
1
|
2
|
407
|
POST
|
the variable clickListener has to be outside the method. as the reference will be gone when the on click event is raised.
... View more
05-19-2015
08:24 AM
|
1
|
1
|
998
|
POST
|
Are you sure. It works for me when I remove the margin 1% from the html page.
... View more
05-19-2015
07:30 AM
|
0
|
1
|
1231
|
Title | Kudos | Posted |
---|---|---|
1 | 03-24-2017 07:15 AM | |
1 | 09-13-2016 06:27 AM | |
1 | 05-21-2015 08:06 AM | |
1 | 12-16-2015 05:43 AM | |
1 | 07-20-2015 09:33 AM |
Online Status |
Offline
|
Date Last Visited |
2 weeks ago
|