|
POST
|
You can get all the 3.5 samples by downloading the 3.5 SDK here.
... View more
08-15-2013
12:44 PM
|
0
|
0
|
556
|
|
POST
|
From the graphicsExtent help: If the extent height and width are 0, null is returned. That's the case when only one point is returned. You can test for that and set the extent for that point, like in this thread. When posting code, get into the habit of put it into a code block, using the # button above. It makes it easier to read.
... View more
08-15-2013
08:19 AM
|
0
|
0
|
2653
|
|
POST
|
Yes, that's they way I pass in the evt to a function identifyTask.execute(identifyParams, function (results) { populateTC(results, evt); }); How are you building the datagrid? Does this thread give you any ideas? And if you're going to post code, please wrap it in the block (the # button above)
... View more
08-15-2013
06:04 AM
|
0
|
0
|
729
|
|
POST
|
One was to do this is to create another data frame the size of the legend box. Put all the necessary layers into that data frame and zoom to the appropriate area. Then just position the data frame over the existing legend box.
... View more
08-15-2013
05:47 AM
|
0
|
0
|
1718
|
|
POST
|
This may not help at all, but in my project, I am running an identifyTask on the visible layers when the user clicks on the map. I use a TabContainer to hold the results, which will have a varying number of tabs, depending on how many layers are visible. Each tab contains a dGrid that shows all the results from a layer. Since each of the layers has different fields, I am building everything programmatically, with nothing hard-coded. Here's a Fiddle that show how to do that. Although the fiddle renders the tabs a little oddly, it shows the grids properly in their individual tabs.
... View more
08-13-2013
12:44 PM
|
0
|
0
|
2312
|
|
POST
|
Have you also looked at the TOC widget that nlui has built?
... View more
08-13-2013
07:48 AM
|
0
|
0
|
2277
|
|
POST
|
The layerDefinitions property can be used to filter the features of the individual layers in a map service. Take a look at the code snippet.
... View more
08-12-2013
11:20 AM
|
0
|
0
|
3036
|
|
POST
|
If you don't list what layers you want to appear in the legend in the layerInfo parameter, by default, all the layers will appear, including the basemap. The hideLayers parameter will be the sublayers for a specific layer that won't be shown. Try this:
var legend = new esri.dijit.Legend({
map : map,
layerInfos: [{layer: yourLayer}]
}, "legendDiv");
legend.startup();
... View more
08-12-2013
06:54 AM
|
0
|
0
|
2277
|
|
POST
|
I've had some issues with 3.5 and IE8 and having different results on page refreshes. It seems to me that dojo/ready function happens slightly too fast for IE8. Anyway, wrapping map initialization with a setTimeout worked for me. require([
"dojo/ready"
], function (ready) {
ready(function () {
//ie8 fix -- ready() called slightly too fast for ie8?
setTimeout(function () {
initMap(); // create map and such after short timeout
}, 10);
});
}) This has solved another problem I was having with my code where setting the map extent to a layer's extent wasn't always working correctly.
... View more
08-09-2013
04:20 AM
|
0
|
0
|
3844
|
|
POST
|
I am not pointing to GoogleMapsLayer.js to display the TOC, but to:
'http://localhost/APPS/agsjs/build/agsjs' But, this is in order to use the TOC feature with my data. If you look at the source files in http://gmaps-utility-gis.googlecode.com/svn/tags/agsjs/ and dig down into the build directory or the different releases, you'll see that there is a file GoogleMapsLayer.js located in build/agsjs/layers/. Although you may not use it, the TOC will. Therefore, you should ensure that you copy everything in the directory http://gmaps-utility-gis.googlecode.com/svn/tags/agsjs/latest/build/ to your server.
... View more
08-09-2013
04:16 AM
|
0
|
0
|
3087
|
|
POST
|
When you post code, could you please put them in the wrapper (the # in the formatting tools)? It make the code much easier to read. The centerAndZoom method take either a zoom factor or level. I think that since you're providing it with a factor of 0.001, it's going to zoom in farther each time you click on a row. Try setting it to a zoom level instead (which appears do be what you're doing when you're zooming to the initial map extent). Or you could test if the map is at a certain scale (getScale) or level (getLevel) and use centerAt instead of centerAndZoom.
... View more
08-06-2013
11:10 AM
|
0
|
0
|
777
|
|
POST
|
That sample is now located here: https://developers.arcgis.com/en/javascript/jssamples/map_showloading.html
... View more
08-02-2013
07:55 AM
|
0
|
0
|
2189
|
|
POST
|
The ESRI.ArcGIS.ADF assembly was replaced at 10.0 by several assemblies. See the help documentation under the heading of New Assemblies. For example, if you're using comReleaser, you'll have to load the ESRI.ArcGIS.ADF.Connection.Local assembly. The assemblies ESRI.ArcGIS.Geoprocessor and ESRI.ArcGIS.GeoprocessorUI (I couldn't see a ESRI.ArcGIS.GeoprocessorLib assembly) have to be loaded using Add Reference instead Add ArcGIS Reference. This is also true for any of the toolboxes (DataManagementTools, etc.).
... View more
08-01-2013
09:19 AM
|
0
|
0
|
1552
|
|
POST
|
Take a look at this post over in StackOverflow. Additionally, Dojo now recommends that you switch over to dGrid for Dojo 1.7 and beyond.
... View more
07-31-2013
10:33 AM
|
0
|
0
|
1570
|
|
POST
|
Ken, initialExtent is the extent of the mxd when published. Try fullExtent, which is the extent of the data. map.setExtent(layerDynamic.fullExtent, true); Thanks Ben, but I do want the initial extent rather than the full extent of the service. And in the case of this particular service, the initial extent is not that much different than the full extent Initial Extent: XMin: -14166895.9892999 YM in: 5762234.783315 XMax: -13598348.0746001 YMax: 6211946.863385 Spatial Reference: 102100 (3857) Full Extent: [INDENT] XMin: -14015721.4263 YMin: 5782676.2415 XMax: -13749522.6376 YMax: 6191505.4052 Spatial Reference: 102100 (3857) [/INDENT]
... View more
07-31-2013
04:54 AM
|
0
|
0
|
1590
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 02-04-2025 06:39 AM | |
| 1 | 05-01-2026 08:26 AM | |
| 1 | 04-10-2026 12:01 PM | |
| 1 | 04-13-2026 09:11 AM | |
| 1 | 10-11-2023 06:18 AM |
| Online Status |
Offline
|
| Date Last Visited |
Wednesday
|