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

Here is a very simple demo of this concept: https://dotnetfiddle.net/KhMIxV What you are going to want to do is make it so that your array in the controller can be translated to an array in javascript. This process is facilitated through serialization. The most common way (and one which should be available to your controller inherently) is through JSON.Net, ...


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

In the newest versions of ArcGIS for JavaScript, you can use the ClassBreaksRenderer to render data coming from an array. Instead of referencing a FeatureLayer column in the call to the classBreaksRenderer like this: var renderer = new esri.renderer.ClassBreaksRenderer(symbol, "POP07_SQMI"); reference a call to a function, like this: var renderer = new ...


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 ...


1

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

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

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

The API page says the extent is set up like this (note the correct order) new Extent(xmin, ymin, xmax, ymax, spatialReference). You have the correct coordinates but you have x and y confused. Try this instead. var startExtent = new esri.geometry.Extent(13.11937, 52.37615, 13.65801, 52.64877, new SpatialReference({wkid:4326}) ); I ...


1

The general approach would be: Take coordinates in any spatial reference system Convert those to the SRS used by the web map using a function provided by the Web Mapping API Use the converted coordinates to perform actions on your Web Map. For step 2 maybe you can look at the code from ...


1

I think you have your terms mixed up. Map extent is the min X, max X, min Y, max Y coordiates. What you're looking to do is change the SRS (spatial reference system); which you cannot do in a web map, as all that I know use a WGS84 Web Mercator, which is the SRS - 102100. It looks like the two will use different coordinate values to represent the same ...


1

the centerAt() method expects a point geometry object. //pass long,lat and don't forget to load the appropriate AMD module map.centerAt(new Point(-118.15, 33.80)); //or map.centerAt(new Point(-118.15, 33.80, new SpatialReference(wkid: 4326)); this is mentioned in the API reference: https://developers.arcgis.com/javascript/jsapi/map-amd.html#centerat ...


1

From https://developers.arcgis.com/javascript/jsapi/esri.geometry.webmercatorutils-amd.html#webmercatortogeographic: Translates the given Web Mercator coordinates to Longitude and Latitude. By default the returned longitude is normalized so that it is within -180 and +180. But your NZTM coordinates are not in webMercator units. You have to convert ...


1

Black background issue: seems like your dojo deviceTheme CSS is broken when it detects Android. If you do the following, you'll see the black background goes away: http://gis.wiu.edu/java/mobile/?theme=iPhone You can see how this works at Dojo site. Not filling up the screen issue: Your map div is called mapDiv, but in your code, it's trying to resize a ...


1

The following configuration below seems to be working fine. I'd appreciate any issues being pointed out. The configuration of the widget: select: { include: true, id: 'select', type: 'titlePane', canFloat: true, path: 'gis/dijit/Select', title: 'Select', ...


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