|
POST
|
Josh, First, dojox/grid/DataGrid is depreciated. Use dgrid. The esrijs api includes dgrid. Examples of it's use can be found in the esrijs samples. Use dojo/store/Memory with dgrid. You can add as many pairs to a data item as you want (including your graphic object), not just the attributes for the columns. The row click event will return all the data, and in your case clear the graphics layer and add the graphic from the clicked row to the layer. Been awhile since I used dojo/data/ItemFileReadStore but I think the above concept could be used with it as well. But do consider switching to dgrid. It's awesome.
... View more
06-18-2014
07:35 PM
|
0
|
0
|
461
|
|
POST
|
You can also map.extent.getCenter().getLatitude();
map.extent.getCenter().getLongitude(); in a web mercator map.
... View more
06-18-2014
03:24 PM
|
1
|
0
|
6076
|
|
POST
|
Yes if you are creating an extent. https://developers.arcgis.com/javascript/jsapi/extent-amd.html
... View more
06-05-2014
09:33 AM
|
0
|
0
|
2116
|
|
POST
|
Rene...yep. I use if (this.graphics.length === 1 && this.graphics[0].geometry.type === 'point') for a generic check. I actually ran into an issue with a dataset in which the queries being made by the user regularly return multiple records at the same point. graphicsExtent also returns null in this situation but not as easy to check. I think they are considering graphicsExtent returning an extent with the point(s) at the center in these situations.
... View more
06-04-2014
02:22 PM
|
0
|
0
|
2116
|
|
POST
|
Consider moving to dgrid. It's the replacement for dojox/grid. http://dojofoundation.org/packages/dgrid/ https://github.com/sitepen/dgrid/wiki https://github.com/SitePen/dgrid
... View more
05-29-2014
08:15 AM
|
0
|
0
|
653
|
|
POST
|
map.graphics should match the sr of the map (expect in the case of web mercator where map.graphics is 4326). I'm not sure why yours does not. My guess it's because you are using a layer to set map sr. map.graphics is created when the map is constructed, i.e. before you add the first layer. Try an extent of your sr in the map constructor. In general I try to avoid using map.graphics. Try creating a graphics layer just for your id results.
... View more
05-19-2014
06:01 AM
|
0
|
0
|
1701
|
|
POST
|
Glad to help. Please mark this post as answered so others know your issue is resolved. Thanks.
... View more
05-18-2014
10:13 AM
|
0
|
0
|
660
|
|
POST
|
Why not just use the draw toolbar to add points to a graphics layer?
... View more
05-18-2014
09:39 AM
|
0
|
0
|
284
|
|
POST
|
I don't know of any out of the box verifier. But it's pretty easy to do it yourself against the service. esriRequest({
url: 'http://some_service/query',
callbackParamName: 'callback',
content: {
f: 'json',
returnGeometry: false,
returnIdsOnly: true,
where: where
}
}).then(function (r) {
if (r.objectIds) {
console.log('valid query: ' + r.objectIds.length + ' results');
} else {
console.log('valid query: 0 results');
}
}, function (e) {
console.log('invalid query', e);
});
... View more
05-17-2014
01:01 PM
|
0
|
0
|
616
|
|
POST
|
Welcome to the forum. Just a guess, but are you loading the the file from a file or via a web server? It won't work if you are loading it from a file, i.e. file:///C:/sample/index.html. If so, you need to use a local web server, use an IDE with one built in, use a real web server, etc. Then load the file via http://localhost/sample/index.html for example.
... View more
05-17-2014
12:16 PM
|
0
|
0
|
660
|
|
POST
|
You're talking about the gutters. Instead of changing css, set center border container prop "gutters:false".
... View more
05-16-2014
01:21 PM
|
0
|
0
|
1298
|
|
POST
|
Inspect the element with your browser's dev tools (i use firebug w/ firefox). It allows to see what styles are applied to an element and play around with styles in real time w/o reloading the page.
... View more
05-16-2014
12:40 PM
|
0
|
0
|
1298
|
|
POST
|
1) override with css 2) set the center region border container prop "design:'sidebar'"
... View more
05-16-2014
12:08 PM
|
0
|
0
|
1298
|
|
POST
|
For your second question, I performed a search through all of my code for '4326' and nothing was found. I also tried 'graphics.spatialReference' which came up with nothing as well. What does map.graphics.spatialReference.wkid return in console?
... View more
05-16-2014
11:16 AM
|
0
|
0
|
1701
|
| 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
|