POST
|
Ask your developer to add this before the script tag that loads the API: <script type="text/javascript">var djConfig = {parseOnLoad: true};</script> More info: http://docs.dojocampus.org/dojo/parser
... View more
01-12-2011
08:07 AM
|
0
|
0
|
481
|
POST
|
The current version of dojo is 1.5. Do you mean version 2.1 of the esri javascript API? The filtering select is there. Where and how are you loading the javascript API? If you could post your code that would be helpful.
... View more
01-11-2011
11:29 AM
|
0
|
0
|
481
|
IDEA
|
-->
Currently, when using the dissolve tool, and the create multi-part features option is unchecked, features in the resulting feature class that had the same dissolve field attribute all get the same value for each statistic field. Ideally, the tool should respect spatial relationships and, when you specify to not to create multi-part features, the attributes of the output features should accurately reflect what was actually dissolved and not the aggregate of all features with a common attribute. This is probably better explained as an example. Let's say I have a feature class has three features. All have the same value in the dissolve field but only two of the features are adjacent. Each feature has another attribute called foo and this field is used as a statistic field. The statistic type for foo is SUM. The values for foo are 1, 2 and 3. The two adjacent features have values of 2 and 3 for foo. When I run dissolve with create multi-part features unchecked, the two resulting features both have values of 6 for foo but the values should be 5 (for the two adjacent features that were dissolved) and 1 for the feature that is not adjacent to the other features. Two NIMs related to this request are: NIM013409 and NIM035670.
... View more
09-22-2010
11:15 AM
|
28
|
1
|
635
|
IDEA
|
Currently, using ArcGIS 10 (final), when using the "Add Basemap..." button, each basemap that is added results in a basemap layer in the TOC named "Basemap." It would improve the user experience if all basemaps added using the "Add Basemap..." button were combined into a single basemap layer.
... View more
08-10-2010
06:49 PM
|
2
|
0
|
332
|
POST
|
You need ArcEditor or ArcInfo to do replication. I think all the replication topics in the help have this line: This topic applies to ArcEditor and ArcInfo only. For instance: http://help.arcgis.com/en/arcgisserver/10.0/help/arcgis_server_java_help/index.html#/Understanding_distributed_data/0092000013r6000000/
... View more
05-25-2010
09:37 AM
|
0
|
0
|
170
|
POST
|
Have you looked at one-way geodatabase replication? http://help.arcgis.com/en/arcgisserver/10.0/help/arcgis_server_java_help/index.html#/Replication_types/0092000013qv000000/
... View more
05-25-2010
09:35 AM
|
0
|
0
|
344
|
POST
|
If you're using 10, data driven pages can do this for you: http://help.arcgis.com/en/arcgisdesktop/10.0/help/index.html#//00sr00000007000000.htm
... View more
05-25-2010
09:32 AM
|
0
|
0
|
345
|
POST
|
How about this: <!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8"/>
<meta http-equiv="X-UA-Compatible" content="IE=7" />
<title>Simple Find</title>
<link rel="stylesheet" type="text/css" href="http://serverapi.arcgisonline.com/jsapi/arcgis/2.0/js/dojo/dijit/themes/tundra/tundra.css">
<script type="text/javascript" src="http://serverapi.arcgisonline.com/jsapi/arcgis/?v=2.0"></script>
<script type="text/javascript">
dojo.require("esri.tasks.find");
var find, params;
function init() {
esri.hide(dojo.byId('loading'));
find = new esri.tasks.FindTask("http://sampleserver1.arcgisonline.com/ArcGIS/rest/services/Specialty/ESRI_StatesCitiesRivers_USA/MapServer/");
params = new esri.tasks.FindParameters();
params.layerIds = [2];
params.searchFields = ["STATE_NAME","STATE_FIPS"];
}
function doFind() {
esri.show(dojo.byId('loading'));
params.searchText = dojo.byId("searchText").value;
find.execute(params, showResults);
}
function showResults(results) {
esri.hide(dojo.byId('loading'));
var result, attribs;
var s = ["<table border=\"1\"><thead><tr style=\"background-color:#ccc;\"><td>State Name</td><td>FIPS</td><td>Population (1990)</td><td>Population (1999)</td></tr></thead><tbody id=\"states\">"];
for (var i=0, il=results.length; i<il; i++) {
result = results;
attribs = result.feature.attributes;
s.push("<tr><td>" + attribs.STATE_NAME + "</td><td>" + attribs.STATE_FIPS + "</td><td>" + attribs.POP1990 + "</td><td>" + attribs.POP1999 + "</td></tr>");
}
s.push("</tbody></table>");
dojo.byId("tbl").innerHTML = s.join("");
}
dojo.addOnLoad(init);
</script>
</head>
<body class="tundra">
Find by State Name or State FIPS: <input type="text" id="searchText" size="40" value="Kansas" />
<input type="button" value="Find" onclick="doFind()" />
<div id="loading"><img src="http://help.arcgis.com/en/webapi/javascript/arcgis/demos/map/images/loading.gif" /></div>
<div id="tbl"></div>
</body>
</html> That's the simple find task sample. The lines I added are in red.
... View more
05-25-2010
09:23 AM
|
0
|
0
|
469
|
POST
|
Can you post your broken code? Also, have you tried this way: var resizeTimer;
dojo.connect(map, 'onLoad', function(theMap) {
dojo.connect(dijit.byId('map'), 'resize', function() { //resize the map if the div is resized
clearTimeout(resizeTimer);
resizeTimer = setTimeout( function() {
map.resize();
map.reposition();
}, 500);
});
});
}
... View more
05-25-2010
09:12 AM
|
0
|
0
|
1265
|
POST
|
http://help.arcgis.com/en/webapi/javascript/arcgis/help/jshelp_start.htm#jshelp/inside_guidelines.htm#resizing_and_repositioning_the_map
... View more
05-24-2010
11:33 AM
|
0
|
0
|
1265
|
POST
|
Make queryTask a global variable (like your map, trailsCached and resizeTimer variables). Currently, you define queryTask in init() and then try to reference it in neighQuery(). This doesn't work because queryTask is not defined in neighQuery's scope.
... View more
05-21-2010
04:11 PM
|
0
|
0
|
361
|
POST
|
Put a loading image in a div or a span and make that hidden when the page loads. When your doFind() function runs, show your icon. When your showResults() function runs, hide the icon. This sample might help you too: http://help.arcgis.com/en/webapi/javascript/arcgis/demos/map/map_showloading.html
... View more
05-21-2010
12:29 PM
|
0
|
0
|
469
|
POST
|
Check out dojo.query: http://docs.dojocampus.org/dojo/query This would disable all your checkboxes: dojo.query('input').attr('disabled', 'disabled');
... View more
05-21-2010
08:31 AM
|
0
|
0
|
304
|
POST
|
Does addToMap() run? How about layerTabContent()? Use firebug and console.log statements or breakpoints to figure out where your code is stopping.
... View more
05-20-2010
01:19 PM
|
0
|
0
|
341
|
Title | Kudos | Posted |
---|---|---|
28 | 09-22-2010 11:15 AM | |
2 | 08-10-2010 06:49 PM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|