|
POST
|
When the ArcMap GPS toolbar was introduced most GPS devices would have connected via COM port. I don't think the toolbar has been updated to handle USB devices. ESRI should seriously consider updating the toolbar as almost all consumer GPS devices are now USB.
... View more
02-14-2015
03:35 PM
|
0
|
0
|
781
|
|
POST
|
If you are going to use global variables it is best practice to create a namespace for them. This can avoid potential name clashes with other JS libraries. There is a heap of information available online - just Google 'javascript global variables namespace'.
... View more
02-14-2015
03:23 PM
|
1
|
1
|
2487
|
|
POST
|
Sorry for the late reply - have been on a road trip. If the proxy is configured then it should also work for 1931376038. Do you have a proxy set up?
... View more
02-12-2015
03:08 PM
|
0
|
9
|
3378
|
|
POST
|
There is a property that you can read for all geometries using arcpy that returns the well-known-text. From the ArcGIS Help 10.1: WKT (Read Only) Returns the well-known text (WKT) representation for OGC geometry. It provides a portable representation of a geometry value as a text string. You could use a python script to loop through your features and export WKT for all your parcels.
... View more
02-12-2015
02:26 PM
|
0
|
0
|
3375
|
|
POST
|
You could use CSS rules to prevent the window scrollbar from appearing at all. Set a height value to the attributeContainer div and then only scroll it. #attributeContainer
{
/* other styles... */
overflow-y: scroll;
height: calc(100% - 38px);
} See this working example.
... View more
02-12-2015
02:13 PM
|
0
|
0
|
1902
|
|
POST
|
You could use a combination of the following to build something in python: arcpy.mapping.ListDataFrames arcpy.mapping.ListLayers You would need to be able to identify your layers in each data frame (by name, description, etc). Once you have a reference to your layer you can turn it on/off using the visible property. The problem is that you would need something to trigger the update event when a layer is checked. You can access this event using ArcObjects ILayerEvents (.Net or Java) but I am not aware of a way to do it using python.
... View more
02-11-2015
03:48 AM
|
0
|
0
|
824
|
|
POST
|
Also, check out this post that uses the newer version of dojo promise lists: Need help converting a DeferredList to use dojo/promise/all
... View more
02-11-2015
03:21 AM
|
0
|
0
|
1762
|
|
POST
|
If you are just using the REST API directly then a FeatureServer/query is the way to go to query multiple layers in a single request - note that this is still an asynchronous request. If you are using the JavaScript API then you can group multiple QueryTasks into a DefferedList and process the results when all queries are completed. From your code it appears as though you are responding to a single request even though multiple server requests are sent. You should look into Dojo DefferedLists as a way to combine the results of multiple query tasks. More information on them is available on this page - http://davidwalsh.name/deferredlist
... View more
02-11-2015
02:36 AM
|
2
|
2
|
1762
|
|
POST
|
You could use the Feature Vertices To Points (Data Management) tool - ArcGIS Help 10.1 Make sure to use the ALL option: Summary Creates a feature class containing points generated from specified vertices or locations of the input features.
Illustration Feature Vertices To Points
... View more
02-05-2015
12:41 PM
|
0
|
0
|
2166
|
|
POST
|
The reason that this is happening is due to the complexity of the shape. For more information see: Using the proxy | Guide | ArcGIS API for JavaScript: Requests exceed the limit on the length of the uniform resource locators (URLs) imposed by the browser. Common scenarios where you may run into URL length issues are when you use the buffer from a complex polygon as the input to a query task or if you specify a spatial reference using well-known text (WKT). The proxy needs to be set up on the machine hosting your page. Details are in the page link above. gs = new GeometryService("http://utility.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer"); esriConfig.defaults.io.proxyUrl = "/proxy/"; // <- the API cannot connect to the proxy location esriConfig.defaults.io.alwaysUseProxy = false; Note that this error will not occur for simple property shapes. If I search for 1931376029 in an updated version then the process works - Edit fiddle - JSFiddle
... View more
02-05-2015
11:27 AM
|
1
|
11
|
3378
|
|
POST
|
Not sure if anyone has a better approach but as long as dojo has finished loading you can use dojo.setObject() to expose the inner function. <script>
var map;
require([
"esri/map",
"dojo/domReady!"
],
function(Map) {
function myInnerFunction(){
alert("Hi from MyInnerFunction");
}
dojo.setObject('myInnerFunction', myInnerFunction);
map = new Map("map", {
basemap: "topo",
center: [-122.45, 37.75], // longitude, latitude
zoom: 13
});
});
</script> See this Simple Map with a button at the top left that calls a function within the require function.
... View more
02-05-2015
01:14 AM
|
0
|
1
|
838
|
|
POST
|
If you are using a modern browser such as Chrome then try logging some of the objects to see what is going on. console.log("Items: ", items);
console.log("Feature Extent: ", myFeatureExtent);
map.setExtent(myFeatureExtent, true); Just make sure to open the Developer Tools before running your page and the Console window will show your object properties.
... View more
02-04-2015
11:47 PM
|
1
|
5
|
2067
|
|
POST
|
As Robert states - a single point will not return an extent so it is worth having a test for this in your code and providing an alternative such as map.centerAndZoom() for this case.
... View more
02-04-2015
11:31 PM
|
1
|
0
|
2067
|
|
POST
|
Check the answers in this post - How do I remove holes (such as lakes) from a polygon feature The answers by Vincent and Jakub should work.
... View more
02-04-2015
06:22 PM
|
2
|
5
|
3609
|
|
POST
|
The items do not have to be in any order. However, the order needs to be reflected in the names of the function parameters: The case of the required module path matters. In your example try changing "esri/Symbols/SimpleLineSymbol" to "esri/symbols/SimpleLineSymbol" (note the lowercase s in /symbols/).
... View more
02-04-2015
06:12 PM
|
1
|
0
|
968
|
| 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
|