|
POST
|
Chris, A map service that doesn't exist, or is not running, should return a 500. Would something like this work for you? $.ajax(serviceURL, {
type: "POST",
statusCode: {
500: function (response) {
alert('500 error');
}
}, success: function () {
alert('success');
},
});
... View more
05-11-2015
08:31 AM
|
0
|
15
|
2433
|
|
POST
|
You have a script error bubbling-up in OperationBase.js. You can try and debug using IE8's dev console (F12). Here's a reference on debugging using IE8 dev tools, if you haven't done this before: Debugging Script with the Developer Tools (Internet Explorer) The issues you are going to run into, continuously, regard limitations with IE8. Unfortunately, this is a legacy browser, and IE8 has reputation for having a poor JavaScript engine. There are probably incompatibilities with v3.13 of the API, or Dojo for that version, although, according to Esri, IE7+ is supported (Supported Browsers | Guide | ArcGIS API for JavaScript ), so if you find a bug, they would need to fix it, or provide a workaround. Try using an older version of the API, if possible, just for testing purposes, to see if you can isolate the bug to a specific version. If you find it works in an earlier version, and debugging didn't yield any clues, you could ping Esri to see if this has come-up before. Honestly, you may have an easier time convincing the powers that be at your organization to upgrade. In January, 2016, only the latest version of IE will be supported for any given, supported Windows OS, so, unless everyone at your organization is running Windows Thin PC, or point-of-sale/embedded Windows, IE8 will not be supported. That means no security patches, bug fixes, etc.: Internet Explorer Support Lifecycle Policy FAQ
... View more
05-11-2015
07:57 AM
|
1
|
0
|
1949
|
|
POST
|
If you are looking for creating user modules and using them in your application, check out: Point clustering | ArcGIS API for JavaScript So, at the top of the main application, you'll see a script tag for dojo config: <script> // helpful for understanding dojoConfig.packages vs. dojoConfig.paths: // http://www.sitepen.com/blog/2013/06/20/dojo-faq-what-is-the-difference-packages-vs-paths-vs-aliases/ var dojoConfig = { paths: { extras: location.pathname.replace(/\/[^/]+$/, "") + "/extras" } }; </script> The "extras" param will specify the directory to pull the modules. You can then include it like you would an Esri/dojo module: var map; require([ "extras/ClusterLayer" ], function( ClusterLayer ) { Here's where the module lives - http://developers.arcgis.com/javascript/samples/layers_point_clustering/extras/ClusterLayer.js. Then, you can instantiate and interact with the module: // cluster layer that uses OpenLayers style clustering clusterLayer = new ClusterLayer({ "data": photoInfo.data, "distance": 100, "id": "clusters", "labelColor": "#fff", "labelOffset": 10, "resolution": map.extent.getWidth() / map.width, "singleColor": "#888", "singleTemplate": popupTemplate }); clusterLayer.setRenderer(renderer); map.addLayer(clusterLayer); Hope this helps!
... View more
05-08-2015
05:52 AM
|
3
|
0
|
626
|
|
POST
|
Chris, Regarding the relationship query, have you had a chance to review the Esri demo? Query related records | ArcGIS API for JavaScript
... View more
05-07-2015
08:12 AM
|
3
|
0
|
436
|
|
POST
|
That's a good and important clarification... At least for the examples I gave, they are only valid for calculating distances "as the crow flies" between two given points.
... View more
05-06-2015
01:17 PM
|
1
|
0
|
19272
|
|
POST
|
Here's a GitHub for finding the distance between two points using great circle distance: great circle distance in python There's also geopy, which has built-in methods: geopy 1.10.0 : Python Package Index You wouldn't even need to use ArcGIS to figure this out if you simply have a csv of point pairs to conduct the calculation.
... View more
05-06-2015
12:09 PM
|
1
|
0
|
19272
|
|
POST
|
If you need to do the same with graphics, there's a method to do this, too! Find graphics under a mouse click with the ArcGIS API for JavaScript | ArcGIS Blog
... View more
05-05-2015
12:57 PM
|
0
|
0
|
1026
|
|
POST
|
Would an identify task work for you? Identify features on a map | ArcGIS API for JavaScript There is a parameter "layerOption" that you can specify (LAYER_OPTION_ALL, LAYER_OPTION_TOP, LAYER_OPTION_VISIBLE) IdentifyParameters | API Reference | ArcGIS API for JavaScript
... View more
05-05-2015
12:56 PM
|
2
|
2
|
1026
|
|
POST
|
For my specific needs, I haven't had a requirement to set-up high availability to make the switch automatically, but have contemplated doing so. You do get a passive failover license - you'll just need to send an e-mail to service@esri.com with your customer info and a request for a passive failover license. As soon as they process, it should show up under My Esri as an available Server license.
... View more
05-05-2015
12:12 PM
|
2
|
1
|
1277
|
|
POST
|
You would need a 3rd party load balancer - here's some info from Esri on setting-up a failover: Single-machine high-availability (active-passive) deployment—Installation Guides | ArcGIS for Server I'm assuming you are set-up as an active/passive with one license... If you have purchased two server licenses, you may want to look at using the active-active deployment scenario: Single-machine high-availability (active-active) deployment—Installation Guides | ArcGIS for Server I am not very familiar with Portal, but I did come across an Esri doc on that: Configuring a highly available portal—Portal for ArcGIS | ArcGIS for Server
... View more
05-05-2015
11:55 AM
|
1
|
3
|
1277
|
|
POST
|
So long as you meet the system requirements, you should be fine: ArcGIS Pro system requirements—ArcGIS Pro | ArcGIS for Professionals
... View more
05-04-2015
11:11 AM
|
1
|
0
|
1776
|
|
POST
|
Sounds like you will need to enable location services on the mobile device. Here are instructions for Android: Enable Location Services - Maps for mobile Help And iPhone: how do i enable locations services, after origi... | Apple Support Communities
... View more
05-04-2015
06:57 AM
|
1
|
1
|
782
|
|
POST
|
Have a look at the following documentation: Geocode services—Documentation | ArcGIS for Server
... View more
05-04-2015
06:53 AM
|
0
|
0
|
361
|
|
POST
|
Also, just in case it's helpful, see can the basemap be hidden Diana has some code in it showing how you can add a basemap as a layer.
... View more
05-01-2015
04:48 PM
|
0
|
0
|
915
|
|
POST
|
I haven't debugged/tested this, but I think you must set a basemap when you declare "map." After you do that, you may be able to use map.setBasemap("streets"); You would need to hide the layers visibility if you wanted the map to show first without a basemap, Then, you should be able to call "setBaseMap" and change it to something else. I suspect it's not working the way you have it because the first layer you add is at index 0... when you try to add the basemap afterwords, it may be conflicting. I haven't actually tested this, but it seems like it could be possible. The code I gave before would only work for the initial basemap set-up with the map, but you could try this (untested😞 <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no"> <title>Feature Layer Only Map</title> <link rel="stylesheet" href="http://js.arcgis.com/3.13/esri/css/esri.css"> <style> html, body, #map { height: 100%; width: 100%; margin: 0; padding: 0; } </style> <script src="http://js.arcgis.com/3.13/"></script> <script> require([ "dojo/dom-construct", "esri/map", "esri/layers/FeatureLayer", "esri/geometry/Extent", "esri/InfoTemplate", "dojo/domReady!" ], function( domConstruct, Map, FeatureLayer, Extent, InfoTemplate ) { var bounds = new Extent({ "xmin":-16045622, "ymin":-811556, "xmax":7297718, "ymax":11142818, "spatialReference":{"wkid":102100} }); var map = new Map("map", { extent: bounds, basemap: "streets" }); var bm = map.getLayer("layer0"); bm.setVisibility(false); var url = "http://sampleserver6.arcgisonline.com/arcgis/rest/services/WorldTimeZones/MapServer/2"; var template = new InfoTemplate("World Regions", "Region: ${REGION}"); var fl = new FeatureLayer(url, { id: "world-regions", infoTemplate: template }); map.addLayer(fl); map.setBasemap('topo'); bm.setVisibility(true); } ); </script> </head> <body> <div id="map"></div> </body> </html>
... View more
05-01-2015
04:42 PM
|
0
|
1
|
915
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 06-16-2020 01:25 PM | |
| 1 | 03-20-2019 09:07 AM | |
| 2 | 07-31-2015 07:31 AM | |
| 1 | 09-14-2015 12:14 PM | |
| 1 | 05-12-2015 12:04 PM |
| Online Status |
Offline
|
| Date Last Visited |
07-27-2023
02:30 AM
|