Tag Info

Hot answers tagged

3

The updated answer to this question is to update your JSAPI version. I've tested IE10 with the latest API and it works as expected.


2

Currently the Suggest operation (part of the ArcGIS Online REST API) does not support the countryCode or searchExtent parameters. Support for searchExtent will be added as part of the next ArcGIS Online update, while countryCode will be added in a subsequent release.


2

Yes, you will be able to query and edit related records from Javascript, assuming the Server data has been set up for this of course. The pros and cons of actually relating tables will depend a lot on how you plan to use and maintain the data beyond GIS. I recommend reading the Esri article on joining and relating tables before deciding if it's the right ...


2

Sorry for the concise comment, I can elaborate here. Say foo and bar are your combo box dijits: dijit.byId('foo').on('change', function (new_value) { if (new_value == 'multi_family_refuse') { dijit.byId('bar').set('value', 'bar value 1'); } else if (new_value == '...') { dijit.byId('bar').set('value', 'bar value 2'); } else { ... } }); ...


2

First, when working with CMV, you should start with the unminified versions of the configuration files that will make it much easier to work with. The latest release is here. With respect to your question, you can use a function to create the popup template. Here's an reformatted example of your code reusing the same template for 3 different sublayers - 2 ...


2

I'm not familiar with CMV, there are a few JavaScript mistakes in your code if that's the exact code you're using. Firstly, you cannot use a variable (myArray[i]) as a name for JSON object key. Please see this tutorial and this reference. You should've gotten an error for this, I would've guessed... Secondly, you cannot put Dojo's define in a loop. You ...


2

If you are using ArcGIS for Server, there are a couple of steps you need to take. Register your ArcSDE Database Create Map/Feature Service with layers and setup the Related Tables to the layers Once published and accessible, you will need to setup your JavaScript to query the service AND the related records. The links I provided for you are for the ...


2

If I am understanding you correctly, you've copied the esri.css file from the js.arcgis.com server to your local server. This won't work because that esri.css file references images and possibly other resources on the js.arcgis.com server. It references those relative to the location of the css file. The css file is on your server but those required images ...


2

I spent hours trying to figure out the same issue. I was passing the LegendLayer objects with the layerId as it is defined in the arcgis MapServer service, and no legend showing at all. Finally, I realized that I had to pass the OPERATIONAL LAYERS, in those ids (Sniffing the JSON that it sends to ExportWebMap). So for example, it turned to be layerId = ...


2

Make sure that the order of dependencies in your require statement match the order of the corresponding variable names. For example, the correct order for the second require should be require([ "esri/map", "esri/tasks/query", "esri/layers/FeatureLayer", "esri/tasks/QueryTask", "dojo/on", "esri/tasks/RelationshipQuery", "dojo/domReady!" ], ...


2

You can get this from the FeatureLayer class. There is an attribute called fields, which is an array of Field objects. The Field class has domain attribute. The following will output the domains in the console (if any): var map = new Map(...); var fl = new FeatureLayer(...); map.addLayer(fl); // when layer is ready for (var i = 0; i < fl.fields.length; ...


2

if possible, my recommendation would be to work with your FeatureLayer in selection only mode and display the ArcGISDynamicMapServiceLayer instead (as in this example)


2

I would use the Lengths operation on the geometry server to submit a series of simple polylines constructed from your clicked point and your feature points. You may have to project your clicked point into the spatial reference of your feature points, but once you've done that, you can make a line out of the two points. The Lengths operation returns results ...


2

You can send any of the options available for the ESRI's Geocoder dijit to the CMV geocoder widget since it is simply a wrapper around the ESRI dijit. For your example of adding your own geocoders, your widget options in config/viewer.js would look something like this: geocoder: { include: true, id: 'geocoder', type: 'domNode', path: ...


1

Yes you need to build the drop down manually. When a featureclass contains a field to which the coded value domain is setup, in that case, you get only the index values, and not the description as the attribute value. If you look at the fields object on the query response, you'll see that it contains the domain, and using that, manually you'll have to set ...


1

There was an issue identified where the zoom rectangle not appearing in IE10 and IE11. I could not find the discussion in GeoNet. From my recollection, this was apparently tied to the use of Dojo 1.9.x in the JS API from 3.7 to 3.10 (maybe earlier) and supposedly fixed in Dojo 1.10.0 with v 3.11 of the API. So try 3.11 to see if it fixes this for you. With ...


1

Maybe you could try use sdegroup command i.e. merge features as described here. You could use merged features layer only at zoom levels that are slow to display i.e. huge number of features is fetched.


1

I've never used this feature myself, so I can't give details, but you might want to try the point clustering feature: https://developers.arcgis.com/javascript/jssamples/layers_point_clustering.html This allows you to display several point features as a single feature (symbolized to denote the number of features that were grouped) when zoomed out, but ...


1

instead of null fill, use a completely transparent fill, like this reference: https://twitter.com/derekswingley/status/487335272825094144


1

For starters this isn't valid Html: **queryTask.execute(cntryq);** I removed the ** symbols from line and the code ran fine. If you want to comment something out in code, use the // symbol in javascript. Part 2: Used the Chrome Developer console to find the problem. Some of your buttons at the top pass a null into your CountryCode method. The ...


1

It looks like you have not declared legendLayers as an array (var legendLayers = [];) before using it. If that doesn't solve your problem, could you paste the error that you get when you run this code in the browser?


1

This is a silly bug with a silly workaround. The workaround will actually work even though it sounds so incredible. Here's the steps on getting it working: http://support.esri.com/en/knowledgebase/techarticles/detail/40538 I know it says 10.1, but 10.2 is affected too. When choosing paper size, go large... plotter large. Make sure you're the user that ...


1

There are always multiple ways to skin this configurable cat. ;) I can think at least three approaches: Assuming you want your content at the bottom of the left sidebar, you can do this today in config/viewer: panes: { left: {}, myContent: { id: 'myContent', placeAt: 'left', region: 'bottom', style: 'height: 220px ...


1

I found the problem…when POSTing requests the GeoEnrichment service is much more picky about the incoming data types, previously study areas was sent as just an object, what I had missed and what is glossed over in the documentation is that studyAreas HAS to be an array of objects not just a single object. But the error message says nothing that would tell ...


1

Yes you can add any non-spatial table to your gis-service (mxd) and access it through the REST interface. Query Layer Requests for example work as expected.


1

I've faced this issue with Dojo popups in general and found that IE and Firefox have stricter CSS parsing rules and so rules like 'top:32' without the 'px' suffix get dropped with an error that says "Error in parsing value for property 'top'. Declaration dropped". So, the tooltip's position is never set which causes it to remain out of view.


1

I was having a similar issue with a zoom navigation tool. I'm not seeing the tooltip issue on my machine, running ie10, but forcing IE10 into an earlier rendering engine using the X-UA-Compatible meta tag (Firefox, Chrome, etc. will ignore this tag) took care of the issues I was having with the navigation tools. <meta http-equiv="X-UA-Compatible" ...



Only top voted, non community-wiki answers of a minimum length are eligible