|
POST
|
The following line should be outside if the async 'then' function. return d.promise; John
... View more
02-05-2015
07:36 AM
|
0
|
0
|
615
|
|
POST
|
Yohan, what I've seen in the past is the _shape property will be null if they're not in the current map extent. if you'd like to call 'moveToBack()', you should first make sure the map has finished the 'setExtent()' call. Not sure if this will work in your use case, but this is how I would typically handle this situation: this.map.setExtent(extent, true).then(lang.hitch(this, function(){
array.forEach(this.groupGraphics, lang.hitch(this, function(graphic){
graphic.getDojoShape().moveToBack();
}));
}));
... View more
01-22-2015
08:48 AM
|
0
|
1
|
1030
|
|
POST
|
Try calling .startup() on the TabContainer either after creating it or after adding the content panes tabs.startup();
... View more
01-21-2015
09:37 AM
|
0
|
1
|
842
|
|
POST
|
The Dojo framework (and thus the JS API) picks up the locale from the browser settings. You can override the browser locale in the dojoConfig settings. Please note: this setting is only read and used when the application first loads. dojo.config (dojo/_base/config) — The Dojo Toolkit - Reference Guide Internationalization (i18n) — The Dojo Toolkit - Reference Guide
... View more
01-20-2015
08:43 AM
|
1
|
0
|
700
|
|
POST
|
Bill, I guess I'm fortunate as I almost always work within the dojo/layout framework for my UIs. The dojo/layout/* containers provide events that inform me when a child pane is selected and it's within these events that I place my map creation code.
... View more
01-15-2015
04:08 PM
|
0
|
0
|
2876
|
|
POST
|
I wonder if this will work: var clonedGraphic = new Graphic(sourceGraphic.toJson()):
... View more
01-15-2015
02:36 PM
|
1
|
1
|
955
|
|
POST
|
Yes, you'll have to wait until the div you want to put your map into has an appropriate size. This sample doesn't use an iframe, but shows the basic concept. map in hidden container - JSFiddle
... View more
01-15-2015
02:32 PM
|
1
|
2
|
2876
|
|
POST
|
Does it work if you use: .hiddenContent {
visibility:hidden;
}
.visibleContent {
visibility:visible;
}
... View more
01-15-2015
11:51 AM
|
0
|
1
|
2876
|
|
POST
|
Edward, returnDistinctValues is a property on the JS API Query object, not a parameter of the url of the service, so please don't include it when creating the Query instance. The services you mention are secure services so make sure you include a reference to esri/IdentityManager so the appropriate credentials are obtained and used by the JS API before you make the request. It would help if you shared some of the JS code so we can figure out what is going on. John
... View more
12-30-2014
09:29 PM
|
0
|
3
|
1867
|
|
POST
|
Edward, do you have a jsfiddle or jsbin showing the issue? If not, do you have a rest url endpoint and query parameters that we can try it out?
... View more
12-30-2014
04:44 PM
|
1
|
5
|
1867
|
|
POST
|
From the API help; when dealing with FeatureCollection based FeatureLayers: Does not support queries that need to be performed on the server, e.g. queries with a where clause or non-extent based spatial queries. FeatureLayer | API Reference | ArcGIS API for JavaScript
... View more
12-22-2014
01:41 PM
|
0
|
7
|
1867
|
|
POST
|
If you'd like the full CSS3 color names, just require the "dojo/colors" modules and they'll be added to the Color.named list. Something kinda like this: require(["dojo/_base/Color","dojo/colors"],function(Color,colors){
console.log(Color.named);
var orangeClr = new Color(Color.named.orange);
console.log(orangeClr);
}); dojo.colors — The Dojo Toolkit - Reference Guide
... View more
12-10-2014
11:20 AM
|
1
|
0
|
1717
|
|
POST
|
Alana, performing an Identify operation on many layers can be a costly operation and not something we'd generally recommend, you might want to take a step back and figure out if there's a better way to do what you need. Regardless, here's a different way to aggregate many Identify calls using AMD style coding, this is NOT the exact code, just a guideline. Also, you might have to modify 'showIDResults' as the response structure might be different. // What about sublayer ids? Each layer might have different sublayer ids...
idParams.width = map.width;
idParams.height = map.height;
idParams.geometry = evt.mapPoint;
idParams.mapExtent = map.extent;
// arrayUtils = require("dojo/_base/array")
var executeDeferreds = arrayUtils.map(layers, function(layer) {
// assumes each layer supports IdentifyTask
var identifyTask = new IdentifyTask(layer.url);
return identifyTask.execute(idParams);
});
// all = require("dojo/promise/all")
all(executeDeferreds).then(showIDResults);
... View more
12-02-2014
01:47 PM
|
0
|
1
|
1708
|
|
POST
|
Seems like you had the right idea, just uncomment your 'visible' check inside of the resize event. Esri Map Show/Resize/Hide Issue - do less - JSFiddle
... View more
11-20-2014
08:25 AM
|
1
|
1
|
879
|
|
POST
|
Another alternative would be to change your css class names to something unique so they don't conflict with other class names.
... View more
11-12-2014
03:45 PM
|
0
|
1
|
830
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 03-07-2024 04:14 PM | |
| 1 | 02-23-2024 12:40 PM | |
| 1 | 03-01-2024 10:48 AM | |
| 2 | 08-03-2023 02:34 PM | |
| 2 | 07-19-2023 12:05 PM |
| Online Status |
Offline
|
| Date Last Visited |
10-24-2024
06:01 PM
|