|
POST
|
Just out of interest the old ArcIMS viewer had a pixelTolerance - I am fairly sure it was used for this purpose.
... View more
08-11-2014
04:41 PM
|
0
|
0
|
2164
|
|
POST
|
Yes - the SEC7128 error only happens after clicking on the reload button. The first page load shows the map.
... View more
08-10-2014
11:43 PM
|
0
|
0
|
793
|
|
POST
|
The documentation states that layerInfos is an object array so your should be able to pass them in using a modified version of your code:
var layerInfos = [
{
'featureLayer': petroFieldsFL,
'showAttachments': false,
'isEditable': true,
'fieldInfos': [ {'fieldName': 'SERVICE_ID', 'isEditable':true, 'tooltip': 'Current Status', 'label':'Status:'} ]
},
{
'featureLayer': otherFL,
'showAttachments': false,
'isEditable': true,
'fieldInfos': [ {'fieldName': 'OTHER_ID', 'isEditable':true, 'tooltip': 'Some Tooltip', 'label':'Some Label:'} ]
}
];
var attInspector = new AttributeInspector({
layerInfos:layerInfos
}, domConstruct.create("div"));
Also, this Multiple Attribute Inspectors | ArcGIS API for JavaScript sample connects each layer to a new attribute inspector dynamically which is possibly an alternate approach to your problem. Owen Spatial XP
... View more
08-10-2014
03:43 PM
|
0
|
2
|
913
|
|
POST
|
Hi Steve, Check out my last post on this thread: How to save the user's graphic to feature class? A new map instance already has a map.graphics.graphics.length > 0 so this may be messing with your visibility setting code. Not sure why there is a single graphic but you could test for it as it has the coordinates 0, 0: It would be good if someone from ESRI could elaborate on this. Owen Spatial XP
... View more
08-08-2014
04:16 PM
|
0
|
0
|
2023
|
|
POST
|
The symbology options for date fields seem to be very limited. Basically the same options you get with unique value renderers. You could use multiple layers (using the same underlying data source) with definition queries to specifiy date ranges and then create you symbology for each layer.. In what context are you trying to symbolize your dates? - for example within a range, before or after a certain date.
... View more
08-07-2014
09:19 PM
|
1
|
3
|
4199
|
|
POST
|
To access ArcToolbox click on the button in the main toolbar: This should open the ArcToolbox window that contains all of the toolboxes - including the Conversion Tools and Spatial Analyst Tools. As Dan mentioned, the Conversion Tools contains a To Raster toolbox that you can use to create a new raster from a feature (Feature to Raster). Also, as Xander points out the Spatial Analyst toolbar changed a lot from ArcGIS 9x to 10x. Do the examples in your book show a different Spatial Analyst toolbar than the images in my previous post?
... View more
08-07-2014
09:07 PM
|
1
|
0
|
1547
|
|
POST
|
Do you mean the feature labels? To change the orientation of labels go right-click on your layer and select Properties then the Labels tab. There is a button Placement Properties: The parallel or curved options should make the labels match the stream directions.
... View more
08-07-2014
08:52 PM
|
2
|
1
|
1776
|
|
POST
|
Check out these results when flipping features and text: As Xander says as soon as you flip text you end up with a mirror image that does not make much sense. The flip both example is the same as rotating text 180 degrees: Generally, text that is upside-down (at any angle) becomes hard to read. Mirrored text is even harder to read.
... View more
08-07-2014
08:39 PM
|
1
|
0
|
1776
|
|
POST
|
When I run this in IE 11 it gives the error you mention. The IE console log also shows some more information: SEC7128: Multiple Access-Control-Allow-Origin headers are not allowed for CORS response. When I look this error up the following MSDN site has more information: Console error messages in F12 developer tools (Windows) SEC7129 "Multiple Access-Control-Allow-Credentials headers are not allowed for CORS response. " The response header contained multiple Access-Control-Allow-Credentials headers. This is a server-side error. The server should return a single Access-Control-Allow-Credentials header. Report this error to the developer in charge of the server-side resource. This appears to be an issue with your server setup. Interestingly, running your file locally in Chrome gives no errors. Owen Spatial XP
... View more
08-06-2014
11:54 PM
|
0
|
2
|
793
|
|
POST
|
Hi Joshua, This may be an issue with the version on the ArcGIS Server that you are running more than the API version. I have noticed that some example code I created works with a 10.2 server but not with a 10.0 server (both are ESRI sample servers). Example 1 - 10.2 LayerDrawingOptions Example 2 - 10.0 LayerDrawingOptions The code is the same - the only change is the different layer id on the old server. It would be good if someone else can confirm the server version is the issue. Also, make sure that your JS code doesn't mix the old style coding pattern with the new AMD module loading pattern. For example:
var drawingOptions = new esri.layers.LayerDrawingOptions();
Should just be:
var drawingOptions = new LayerDrawingOptions();
Regards, Owen Spatial XP
... View more
08-06-2014
10:48 PM
|
0
|
0
|
864
|
|
POST
|
You could create a variable to check if the draw toolbar is active:
var isDrawing = false;
When you activate the draw toolbar update this variable to true:
tb.activate(tool);
isDrawing = true;
When you deactivate the draw toolbar update this variable to false:
tb.deactivate();
isDrawing = false;
Now you can use the map click event:
map.on("click", function(evt){
// Check if user is drawing
if (isDrawing) {
// Add your code here...
}
});
I have created a working example on JS Bin: Draw Toolbar - map click event The example prints information to the console log: Hope this helps, Owen Spatial XP
... View more
08-06-2014
09:08 PM
|
2
|
1
|
1151
|
|
POST
|
Hi Allison, ArcGIS Online uses the WGS 1984 Web Mercator (auxiliary sphere) coordinate system:
When designing your map, use the WGS 1984 Web Mercator (auxiliary sphere) coordinate system, which is the same coordinate system used by ArcGIS Online, Google Maps, and Bing Maps.
http://resources.arcgis.com/en/help/main/10.1/index.html#//0154000002r6000000 However, if your data already has elevation values then you should use the vertical coordinate system that they were captured in. Otherwise the z values might be misleading. Owen Spatial XP
... View more
08-06-2014
02:56 PM
|
2
|
0
|
1703
|
|
POST
|
Hi Li Yao, If you have added the ESRI references already then the types in your code would change from pFeatureClassIN As esriGeoDatabase.IFeatureClass To this: Imports ESRI.ArcGIS.Geodatabase ... pFeatureClassIN As IFeatureClass or (without the Imports statement): pFeatureClassIN As ESRI.ArcGIS.Geodatabase.IFeatureClass Regards, Owen
... View more
08-06-2014
12:25 AM
|
0
|
1
|
935
|
|
POST
|
You will need to reference the appropriate DLL files and then import the namespaces in your code file. For example in Visual Studio - Add Reference: Then in your code file import the required namespaces:
Imports ESRI.ArcGIS.Geometry
Imports ESRI.ArcGIS.Geodatabase
Public Class ExampleClass
Public Function SpatialQuery(pFeatureClassIN As IFeatureClass, _
searchGeometry As IGeometry, _
spatialRelation As esriSpatialRelEnum, _
Optional whereClause As String = "" _
) As IFeatureCursor
Dim pSpatialFilter As ISpatialFilter
Dim strShpFld As String
Dim pFeatCursor As IFeatureCursor
Dim pQueryFilter As IQueryFilter
' etc ...
End Function
End Class
Check out the ArcObjects namespaces page to find the appropriate DLLs to reference as well as the namespaces to import. Hope this helps, Owen Spatial XP
... View more
08-05-2014
09:40 PM
|
0
|
3
|
935
|
|
POST
|
Do you mean link to the PDFs or georeference them and have them appear in the map? To link the files you can use hyperlinks in your shapefile. To georeference the files you are going to need more than one control point as the scale and orientation of each PDF plan may vary. I am not aware of any way to georeference data using only a single control point. If you knew the map coordinates at the corners of each PDF plan you could possibly automate this.
... View more
08-05-2014
08:25 PM
|
0
|
5
|
1308
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 10-07-2014 06:13 PM | |
| 1 | 08-25-2015 02:04 AM | |
| 1 | 10-07-2014 03:54 PM | |
| 1 | 08-07-2014 09:19 PM | |
| 1 | 03-04-2015 02:02 PM |
| Online Status |
Offline
|
| Date Last Visited |
07-21-2021
06:32 PM
|