|
POST
|
Did you also remove the reference ESRI.ArcGIS.ADF.ComReleaser?
... View more
05-01-2013
11:39 AM
|
0
|
0
|
5441
|
|
POST
|
Do any of the labels contain the characters "&" or "<"? If so, these are special characters that interfere with the formatting tags. You have to replace them with their character codes of & and < like this Function FindLabel ([LABELFIELD]) NewString = Replace([LABELFIELD],"&","&") FindLabel = "<ITA>" & NewString & "</ITA>" End Function
... View more
05-01-2013
11:32 AM
|
4
|
0
|
4454
|
|
POST
|
You can use the same syntax, but you need to add the reference ESRI.ArcGIS.ADF.Connection.Local This reference is not found in the Add ArcGIS References list, but in the full Add Reference list [ATTACH=CONFIG]23905[/ATTACH] After adding the reference, you'll have to go into its properties and manually change the Specific Version to False
... View more
05-01-2013
09:02 AM
|
0
|
0
|
5441
|
|
POST
|
Here's a working example that illustrates the issue.
... View more
04-25-2013
10:30 AM
|
0
|
0
|
1135
|
|
POST
|
In my app using the 3.4 API, I'm attempting to set the title on an infoTemplate. I've tried var infoTemplate = new esri.InfoTemplate("Title", contentString); and var infoTemplate = new esri.InfoTemplate(); var titleText = "<div>" + "Title" + "</div>" infoTemplate.setTitle(titleText); //also tried infoTemplate.setTitle("Title"); infoTemplate.setContent(contentString); but neither of those set the title. The contentString shows up properly, though.
... View more
04-25-2013
05:46 AM
|
0
|
3
|
1706
|
|
POST
|
With a little more digging, I solved it with this code var sp = feature.attributes; contentString += "<b>" + result.layerName + "</b>"; for (x in sp) { contentString += "<br/>"; contentString += x + ": " + feature.attributes ; }
... View more
04-25-2013
05:12 AM
|
0
|
0
|
869
|
|
POST
|
I'm making some progress on this by getting the attributes from the graphic. However, I'm running into a problem with the object that's returned from the line "features.attributes". The line var sp = feature.attributes; returns this object Object { OBJECTID="5", County Name= "Palm Beach County", more...} However, when I try to loop through sp with the code
var sp = feature.attributes;
contentString += result.layerName;
for (x in sp) {
contentString += "<br/>";
contentString += x;
}
the value for x is just the attribute name, not the attribute and its value. That code results in a contentString with a value of "Study Counties - SEFCRI Region Boundary<br/>OBJECTID<br/>County Name<br/>County Seat" How can I parse out the attributes object correctly?
... View more
04-25-2013
04:45 AM
|
0
|
0
|
869
|
|
POST
|
To show you an example of my previous post, this is what I get when I have use this code
dojo.connect(map, "onClick", executeIdentifyTask);
identifyTask = new esri.tasks.IdentifyTask("http://egisws02.nos.noaa.gov/ArcGIS/rest/services/biogeo/SEFCRI/MapServer");
identifyParams = new esri.tasks.IdentifyParameters();
identifyParams.tolerance = 3;
identifyParams.returnGeometry = true;
identifyParams.layerIds = layerSEFCRI.visibleLayers;
identifyParams.layerOption = esri.tasks.IdentifyParameters.LAYER_OPTION_ALL;
identifyParams.width = map.width;
identifyParams.height = map.height;
}
function executeIdentifyTask(evt) {
identifyParams.geometry = evt.mapPoint;
identifyParams.mapExtent = map.extent;
identifyParams.layerIds = layerSEFCRI.visibleLayers;
[ATTACH=CONFIG]23740[/ATTACH] When I comment the layerIds line out in the executeIdentifyTask function
dojo.connect(map, "onClick", executeIdentifyTask);
identifyTask = new esri.tasks.IdentifyTask("http://egisws02.nos.noaa.gov/ArcGIS/rest/services/biogeo/SEFCRI/MapServer");
identifyParams = new esri.tasks.IdentifyParameters();
identifyParams.tolerance = 3;
identifyParams.returnGeometry = true;
identifyParams.layerIds = layerSEFCRI.visibleLayers;
identifyParams.layerOption = esri.tasks.IdentifyParameters.LAYER_OPTION_ALL;
identifyParams.width = map.width;
identifyParams.height = map.height;
}
function executeIdentifyTask(evt) {
identifyParams.geometry = evt.mapPoint;
identifyParams.mapExtent = map.extent;
//identifyParams.layerIds = layerSEFCRI.visibleLayers; I don't get a result back. [ATTACH=CONFIG]23741[/ATTACH] As an aside, Nianwei, the visibility toggle isn't working properly if there are more than two levels of groupings. As you can see, the top most layer group "Legal and Regulatory Boundaries" is turned off. This should mean that that layer "Fishing Restrictions" isn't visible. This map service is publicly available if you'd like to check it out.
... View more
04-24-2013
08:35 AM
|
0
|
0
|
2976
|
|
POST
|
What I did in my app using the TOC widget was to set the identifyParams.layerIds in the executeIdentifyTask(evt) function. Try using
function executeIdentifyTask(evt) {
identifyParams.geometry = evt.mapPoint;
identifyParams.mapExtent = map.extent;
identifyParams.layerIds = aecam.visibleLayers;
var deferred = identifyTask.execute(identifyParams);
... View more
04-23-2013
12:51 PM
|
0
|
0
|
2976
|
|
POST
|
If you look at the IStandaloneTable reference, click on the StandaloneTable CoClass that implements it, which takes you to the list of interfaces it works with.
... View more
04-23-2013
11:31 AM
|
0
|
0
|
1134
|
|
POST
|
In my application, I have a map service containing many different layers, each containing many different fields. In the mxd file that created the service, we have hidden all the fields in each layer that don't need to be shown. When the user clicks on the map, I run the IdentifyTask and I'd like to show the user which layer is being represented in the InfoWindow when there are results from different layers. Currently, using the code var deferred = identifyTask.execute(identifyParams); deferred.addCallback(function (response) { // response is an array of identify result objects // Let's return an array of features. return dojo.map(response, function (result) { var feature = result.feature; feature.attributes.layerName = result.layerName; //var infoTemplate = new esri.InfoTemplate('${result.layerName}', "${*}"); var infoTemplate = new esri.InfoTemplate("test", "${*}"); infoTemplate.setTitle("testing"); feature.setInfoTemplate(infoTemplate); } return feature; }); gives me an InfoWindow with the layer name appended to the end of the list of fields. How can I format the infoWindow so that the layerName is at the top of the field list? Setting the title doesn't seem to have any effect. [ATTACH=CONFIG]23729[/ATTACH]
... View more
04-23-2013
11:14 AM
|
0
|
2
|
1250
|
|
POST
|
You have to use IStandaloneTable to get the tables in the TOC. You can QI to an IDataset to get its source IMxDocument pMxdoc = m_application.Document; IMap pMap = pMxdoc.FocusMap; IStandaloneTableCollection pStandAloneTableCollection = pMap; IStandaloneTable pStandalonetable = null; for (int i = 0; i <= pStandAloneTableCollection.StandaloneTableCount - 1; i++) { pStandalonetable = pStandAloneTableCollection.StandaloneTable(i); IDataset pDataset = (IDataset)pStandaloneTable; Messagebox.show(pStandalonetable.Name & ": " & pDataset.Category); }
... View more
04-23-2013
10:34 AM
|
0
|
0
|
1134
|
|
POST
|
it worked! It's the little things that get you. That's good to hear. Don't forget to click the check mark to signify your original question was answered. What is the issue you're running into with the null fields? You can check for nulls and skip them if necessary.
... View more
04-22-2013
07:52 AM
|
0
|
0
|
2788
|
| 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 |
Thursday
|