Tag Info

New answers tagged

1

I changed the URL call to my arcgis server to the ip address and the map finally prints. Probably a problem with the web adaptor.


0

here is a sample script for drawing a cirlce on a specified radius. var circleSymb = new SimpleFillSymbol( SimpleFillSymbol.STYLE_NULL, new SimpleLineSymbol( SimpleLineSymbol.STYLE_SHORTDASHDOTDOT, new Color([105, 105, 105]), 2 ), new Color([255, 255, 0, 0.25]) ); var circle; //when the map is ...


0

CMV does not support the exclusion of a dynamic service layer. You have to make some changes. config\viewer.js add layerControlLayerInfos identifyLayerInfos: {         layerIds: [2, 4, 5, 8, 12, 21] }, layerControlLayerInfos: {         visibilityLayerInfos: ...


0

I got where the problem is, I didn't add a class name called claro to the parent div of the all layers, I added like this: <div class="claro" > <div id="layersDiv> </div> </div> And it works after that.


0

i'd be willing to bet you're just missing the esri.css <link rel="stylesheet" href="http://js.arcgis.com/3.11/esri/css/esri.css"> check out this sample edit: after rereading your question, i can see clearly that you were already loading 'esri.css' from your own web server. does the network traffic show any indication that this wasn't successful? ...


0

Change your code to use on of the ESRI basemaps, does this work? Then it is a problem wit your map service I think. If so you can look at the rest endpoint javascript viewer to make sure are all the tiles there. Maybe the caching process didn't finish correctly: MYDOMAINHERE.COM/arcgis/rest/services/BaseMaps/OURCONTENT/MapServer?f=jsapi If the caching ...


1

As per the response syntax and example in the documentation here, ArcGIS Server should definitely be returning the spatialReference to you explicitly. see this thread for more info about the confirmed bug.


0

Chances are you already have a line like this first one in this block that connects the click event with the identifytask event function. map.on("click", executeIdentifyTask); map.on("click", makePopupDraggable); identifyTask = new IdentifyTask("http://your.arcgisserver.com:6080/arcgis/rest/services/folder/service/MapServer"); Add another one that ...


1

As far as I can tell, you'll need to just zoom in on the selected area and print it, assuming you're using the Print Task found here: https://developers.arcgis.com/javascript/jsapi/printtask-amd.html. It doesn't look like there's an option to print only part of what's visible. Note: The PrintTask requires an ArcGIS Server 10.1 Export Web Map Task. So make ...


3

The spatial reference for a map is defined either by the extent passed to the map constructor or by the first layer added to the map. Checkout the any projection sample to see how to specify different spatial references for a map. If you're using the basemap or center and zoom options with the map constructor, the map's spatial reference will be web ...


1

It looks like you just had some JavaScript errors. You were missing commas in your layerInfos: layerInfos: [{layer: BOE30, title: "BOE30", slider: true}, {layer: APESections, title: "Sections", slider: true}, {layer: NDMTWellBores, title: "ND, MT Well Bores"}, {layer: EOXDSUs, title: "EOX DSUs"}, ...


0

it could be more than one thing, but my guess is that you're calling 'execute' and the print task is actually set up as asynchronous or 'submitJob' and its synchronous in order to tell for sure, browse the REST services directory to see what operation the service actually supports and compare that to the URL that 500s. if thats the problem, you can set ...


2

You have to wait until the map is ready to have those methods attached to it. This disables the navigation. <!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>Simple ...


0

From Arcmap Desktop this light blue is always the "selection" highlight color. try changing the Color in this section of your code: var fieldsSelectionSymbol = new SimpleFillSymbol(SimpleFillSymbol.STYLE_SOLID, new SimpleLineSymbol(SimpleLineSymbol.STYLE_DASHDOT, new Color([255, 0, 0]), 2), new Color([255, 255, 0, 0.5])); No Blue ...


1

All layers in Esri's JS API have minScale and maxScale properties. This includes graphics layers. Once you've created a layer, you can you set minScale and maxScale directly (probably not recommended) or use one of the methods like setMinScale, setMaxScale or setScaleRange. It looks like you were getting close to this with the stuff in your bulleted list ...


0

I have symbols set up for all those options (you probably do too). Something like this ... symbols = {}; symbols.circle = new SimpleFillSymbol().setColor(new Color([0, 0, 180, 0.25])); or in your "else if" block, } else if (type === "circle") { symbols.arrow = new SimpleFillSymbol().setColor(new Color([0, 0, 180, 0.25])); All of the second part ...


1

I just finished doing something very similar so perhaps this will help you. I'm not using map.setExtent though (except as a fallback). Instead I'm using map.centerAndZoom. Right after I add the graphic, I have this bit of code. I'm thinking this may point you in the right direction (instead of maxZoom, you may be able to plug that zoom level 6 in?). One ...


1

I managed to get the text by the side of the symbol I have modified style in the sample code from esri https://developers.arcgis.com/javascript/jssamples/ed_template_picker.html You can find the updated code at http://jsfiddle.net/DineshAtPowel/025kv88y/1/


0

what is your question exactly? is it 'how do i check for the condition where one particular combobox has a value set and a second does not'? if so, the code would look something like this... if (dijit.byId("cbRequestType").getValue() != "" && dijit.byId("cbRequestType").getValue() == "") //throw your error if not, please elaborate. i agree ...


1

have you taken a look at this article? Printing maps that contain secured services http://resources.arcgis.com/en/help/main/10.2/#/Printing_maps_that_contain_secured_services/0154000005q3000000/ in general, its not sufficient to try and supply proxied urls in the WebmapJSON because the PrintService is ultimately going to have to make its own entirely ...


0

Ok.. Now that I have a better idea of what is going on, I can point you in the right direction. You want to be able to select a graphic like a circle and select a color from a color picker, draw a graphic or click a point, and the map would load that graphic on there based on your choices. There are a couple of ways I can think of doing this, but this may ...


0

The API Documentation shows 4 parameters that you can use when creating a graphic ... new Graphic(geometry?, symbol?, attributes?, infoTemplate?) see API Documentation for "Graphic". You just need to set up your info Template and then attach it to the graphic when you make that call. You are currently only using 2 of the 4 parameters. See this sample ...


0

I found The problem, and it is working now, the problem was in this line var dojoConfig = { paths: { agsjs: '../src/agsjs' } }; I changed it to this: var dojoConfig = { paths: { agsjs: location.pathname.replace(/\/[^/]+$/, '') + '../src/agsjs' } };


1

I tested the sample application with latest version of ArcGIS JavaScript API i.e. 3.11 and was able to print text element. So please update the version of ArcGIS JavaScript API to 3.11 and correct the following line: var font = new Font("20px", Font.STYLE_NORMAL, Font.VARIANT_NORMAL, Font.WEIGHT_BOLDER,"Ariel"); I tested the sample application with latest ...


1

My best advise is to tear down your code to the most basic component (or even a few lines to successfully load a map) and put back together the features one by one. You'll notice which feature breaks as you go along and you can fix them separately. Also consult the "release notes" starting with 3.6 up. You can try upgrading one minor version at a time ...


1

You can use esri.request to retrieve information about a service. For example: http://services.arcgisonline.com/arcgis/rest/services/Demographics/USA_1990-2000_Population_Change/MapServer?f=pjson the response is (an extract): . . "copyrightText": "Copyright:© 2013 ESRI", "supportsDynamicLayers": false, "layers": [ { "id": 0, "name": "USA 1990-2000 ...


0

I'm confused because layer-add-result returns an error so you can see if the layer didn't load. But layers-add-result does not return an error. so if you add a set of layers you can't get errors?


2

i'm not sure why .disableMouseEvents() stopped working after 3.9, but you can use map.setInfoWindowOnClick() instead. here's a working sample.


0

I had to get esri support onto this one in the end. By changing the url of the analysis service to "http://analysis1.arcgis.com/rest/services/tasks/GPServer/FindNearest" the application now returns results for users in my ArcGIS Online Organization. Doesn't seem to work for trial accounts however.


0

Yes i found solution to this problem basically I can append the data which i am receiving using Jquery. After all it is just an HTML! But still there can be a better solution please do post it. $.ajax({ dataType: "json", type: 'POST', //url: 'http://11.66.22.44/Geocoder/Query.aspx', ...


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


0

This sample may help you. I don't think you should need disableMouseEvents or disableMapEvents. I was able to use this to keep map click events separate from selecting features and managed to build a few other things on as well. The initSelectToolbar function runs once after clicking the button and then finishes after selecting features (but I think drawing ...


0

john is definitely right, but you can also utilize the maxLocations parameter of the Esri World Geocoding Service if you'd like to get control over how many results the service returns.


0

Well, the issue of you getting 4 results back from a geocode operation is actually not necessarily a bug, that is how geocoding is designed to work. It looks like you're using the standard ESRI world geocoder. This means, if you type an address (ex: 123 Main St, City, ST, ZIP), you are likely getting at least one, if not more, results for the address ...


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


0

The help widget can be opened at start up by adding `openAtStartup: true' to the options like this: help: { include: true, id: 'help', type: 'floating', path: 'gis/dijit/Help', title: 'Help', options: { openOnStartup: true } } Note that there is an issue in the current version of CMV with the content being displayed ...



Top 50 recent answers are included