Tag Info

New answers tagged

0

you can create a JSON object to add attributes to clientside graphics on the fly. API Reference - Graphic.attributes https://developers.arcgis.com/javascript/jsapi/graphic-amd.html#attributes


0

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


0

Sorry for taking so long to respond to this - I forgot all about it! In the end I discovered too many other limitations with the Dijit Legend widget, so ultimately I created my own, using an ajax call to the legend on the REST endpoint (.../MapServer/legend?f=pjson) to obtain the necessary info, including the symbol, which I was then able to style however I ...


0

yes, it is possible to manipulate the maxRecordCount of hosted services in ArcGIS Online/Portal/Server. Administering ArcGIS Online hosted services - Update Definition: Feature Layer http://resources.arcgis.com/en/help/arcgis-rest-api/index.html#/Update_Definition_Feature_Layer/02r30000022p000000/ example url: ...


0

Have you tried the ASCI URL ENCODED caracters : line feed --> %0A or carriage return --> %0D ? PS : I wanted to make this a comment but it was not possible since I don't have a reputation of 50 or more!


0

Although this was a good work around it proved unsuccessful due to the limitations of the API and accessing feature layers, ultimately it would require a query of a subtype which is not handled by the API.


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.


0

No reason why it wouldn't be possible to do this, but not sure how ArcGIS folks designed it to work with multiple infowindows. You'll need to be pretty comfortable with JavaScript to pull off this workaround. I would start with the Popup API. Then probably do something like this: Set a click listener on your map. Query the feature where user clicked. See ...


0

There is an option to specify the SpatialReference when creating the map using the extent option. The dynamic map service layer should automatically project onto the map's spatial reference. It would look something like this var map = new Map("map", { extent: new Extent({ xmin: <xmin value>, ymin: <ymin value>, xmax: <xmax ...


0

ArcGISTiledMapServiceLayer is only useful when the service is in the same spatial reference as the map. This is because it uses the Map Tile resources of the REST API which cannot request re-projected images. ArcGISDynamicMapServiceLayer uses the Export Map operation which does have the capability to re-project images, although this will be slower. ...


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.


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!" ], ...


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


0

Bootstrap Map JS is an open source package that helps in making responsive esri-based map applications. It integrates the Bootstrap framework into the map application. I have used it for two esri apps and the steps for integrating the extension into a map application were relatively simple.


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?


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


0

As @tmcgee stated above but also the Wiki for CMV has this information already. User input regarding the CMV wiki is encouraged so it can be edited for clarity as CMV continues to grow in popularity. https://github.com/cmv/cmv-app/wiki/Configuration-file-viewer.js#geocoder Glad to see you got it working! @tmcgee is always helpful and insightful...


0

If you want a full-fledge solution and don't mind learning new technology try leaflet with esri-leaflet plugin. If you want a minimal solution for yourself then all you really need is to set these meta tags in the <head> section of your HTML: <meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, minimum-scale=1, ...


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


0

i've posted a working sample here var polygon = new Polygon(new SpatialReference({wkid:4326})); polygon.addRing([[-120,30],[-120,40],[-110,40],[-110,30],[-120,30]]) var point = new Point(-115, 35, {"spatialReference":{"wkid":4326 }}) polygon.contains(point); //returns true are you sure that the SpatialReference you are digging out of your map is WGS84 ...


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.


0

After contemplating more, it seemed everything was a symptomatic or incidental to some other problem (as @tmcgee suggests). I got to thinking, my viewer was an aspx page. I added a maxRequestLength to the web.config and it began working as expected. It was occasionally throwing a timeout error after that, processing some aerial imagery, so I added an ...


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


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


0

It sounds like CMV and the proxy are working fine and that the 500 error is generated by your ArcGIS Server. I would focus your investigation on the layer itself. Perhaps delete and republish the Map Service containing the offending layer. That simple step has frequently corrected similar issues. I don't expect it is a limit on the length of url itself ...


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

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


0

Give this a read - Editing The ArcGIS Web APIs provide simple feature editing. The features must come from an ArcSDE geodatabase. This geodatabase can be licensed for either workgroup or enterprise use and does not have to be versioned.


0

Try looking into Dojo Mobile instead because ESRI JSAPI is built on top of that. jQuery mobile may take a bit more work to get working for this purpose. I have not tried it myself, but have had good experiences with Dojo Mobile and ESRI JSAPI.


0

Since this is an ArcSDE geodatabase, consider using database views for queries that do not include spatial columns, or spatial views for those that do, to join related tables via their FKs as needed to flatten them into single logical 'tables', then you can publish those views/spatial views via ArcGIS Server as either map layers (spatial views) or tables ...


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


0

Since you can't work with indexed views, your next best solution is to build a regular spatial view that joins up your tables. Only use necessary columns (NO SELECT *!) Publish as a service. Then use QueryTask, Query and FeatureSet from the JS API to call the results. If you know you will only need a subset of the joins for a certain situation (i.e. there's ...


0

You're going to need some sort of middleware which can expose the geodatabase to the JS application. There are a number of options. ArcGIS Server is the most logical, having the best integration, though of course it's expensive. GeoServer has an extension for ArcSDE geodatabases but in my experience it can be a little tricky to use. - ...


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


0

I'll modify my question/answer accordingly if I receive any more input. Though I wasn't able to successfully figure out a way to do this that is strictly js/html, I was able to accomplish this via an asp page, appropriate server side code and a hidden input. I set the hidden input value on page load and check the value from js.


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


0

I just wanted to share that I was having a similar issue, except no tool buttons were showing. When I removed "compact" from the following: <script type="text/javascript" src="http://js.arcgis.com/3.11compact/"></script>it works as expected.


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


0

In the Web AppBuilder for ArcGIS (Developer Edition), after modifying the configuration of the Coordinate Widget in a local application and ensuring that you've saved your work, the settings can be found/manipulated here apps\[number]\widgets\Coordinate\config_Coordinate.json Hope that helps!


0

I figured out the issue was with the buttons content pane being registered twice. I assume this was due to a parsing issue. I changed parseOnLoad:true to false and manually parsed the data onload. This resolved the issue.


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 { ... } }); ...


0

I noticed this from the "What's new in Version 3.11" tab. New methods getTool and getUnit on Measurement class. New events measure-start and measure on Measurement class. Updated event measure-end on Measurement. New events tool-change and unit-change on Measurement class. Measurement widget enhancements: New developer events and methods to support ...


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


0

Try adding navigationMode: 'classic' to your map options. The API documentation for the option is here. I have not experienced this myself but others have reported it as a successful fix for slow basemaps and "flashing" tiles in Chrome.


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


0

There are two issues that you need to solve. Firstly, the polygon that you have, is in a format that is called the WKT. You will have to convert it to a geometry in the ESRI's JavaScript format. I have used Wicket in the past to do this conversation for me. Once you have an ESRI Polygon, you can use the project operator on the GeometryService. You should ...


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.


0

as per the API reference, the coordinate system of your extent and ArcGISTiledMapService layer need to match. https://developers.arcgis.com/javascript/jsapi/map-amd.html#map1 "The tiling scheme of an ArcGISTiledMapServiceLayer must match the projection of the map." no problem though. you can use webMercatorUtils.geographictowebmercator(latLngExtent) if ...


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



Top 50 recent answers are included