Tag Info

New answers tagged

0

No, the Graphic() doesn't work that way. The second parameter needs to be a subclass of https://developers.arcgis.com/javascript/jsapi/symbol-amd.html.


1

You are probably going to want to find either a good programmer or start reading and figuring out JS. The basic way to do this would be to either find the feature being snapped to (might be a property of the event) or run a spatial query from the feature you added to find the nearest feature in the other layer (assume distance = 0). I do this in a .NET ...


0

This seems to be a bug introduced at version 3.14. It seems to work fine with 3.11-3.13.


1

You have to wait for the map to load before you can interact with it. See http://developers.arcgis.com/javascript/sandbox/sandbox.html?sample=graphics_add, or for an updated version of your sample: http://jsfiddle.net/ady51wrn/7/.


0

As we were looking around for different solutions, we thought there must be a difference in adding a cached and a non-cached layer. And here we got the solution. We were trying to add ArcGIS Tiled Map Service layer NSURL* url = [NSURL URLWithString: @"http://services.arcgisonline.com/arcgis/rest/services/World_Topo_Map/MapServer"]; ...


0

What finally worked for me is adding the following to the ROOT site and NOT the application for the web adapter. Does it make sense? Not to me. But it worked for me. <?xml version="1.0" encoding="UTF-8"?> <configuration> <system.webServer> <httpProtocol> <customHeaders> <add ...


0

This is the best possible one i came up with and its working. var lineSymbol = new OURAPP.esri.CartographicLineSymbol( OURAPP.esri.CartographicLineSymbol.STYLE_SOLID, new OURAPP.esri.Color([255,0,0]), 2, ...


1

I found out the answer, it was human error. I was using the incorrect "name". Once 'postgis:' was removed the layer was found!


0

I was able to draw a line and add it to the graphics layer using the following. The [-XX.XXXXXXXXXXXX,YY.YYYYYYYYYYY] is a random point on the map, Now only thing left is to find a point on a circle. So now the question becomes how to find a point which is X miles from a known point(Center of the circle) along the same latitude. ...


1

Ok, after some hacking around it looks like the parameter c to the _buildLabelText above is actually the fields array of layerDisplay. It looks like the function looks for a match in there (by name) before it'll do any substitutions. If I add this: layerDisplay.fields.push({ alias: "VALUE", length: 10, name: "VALUE", type: ...


0

Yes, your version of the ArcGIS JavaScript API probably will not work with Internet Explorer 11. According to ESRI, version 3.8 is the first to support IE 11. Currently, version 3.14 supports IE 7 and up. There have been a lot of changes since the v. 1.6. The API introduced Dojo's AMD modules, and most of the examples will use a new logic that may break ...


3

you can use the css classes named esriScalebarRuler and esriScalebarRulerBlock I can't find a ruler example to see available css properties on these classes, but if you right click the scale bar and inspect it in the console, look for border styles to set to red, such as: .esriScalebarLabel { color:red !important; } .esriScalebarRuler { border: 2px ...


0

Try the sandboxed sample in IE11 This worked because the page has loaded as a web URL Suggest you to setup a web server like IIS, host your files in a virtual directory, and test the application.


0

I couldn't figure it out, not sure if it is possible. You can get a white box the size of the whole scale bar area, which looks pretty silly. You can do this with by changing the .esriScalebarLine css to border-bottom-color: white; border-bottom-style: solid; border-bottom-width: 5px; Or you could add another div and change the background-color for the div ...


1

With a dynamic map service, you can simply request it in a different coordinate system using the spatialreference parameter. Lets assume you already have a map defined in your javascript app, with a spatial reference of 4326 (web mercator), by simply adding the dynamic map service, (with a differing supported spatial reference) it will automatically ...


1

Your basemap issue is giving this error. Mixed Content: The page at 'https://gis.linncounty.org/webapps/gis/parklocator/' was loaded over HTTPS, but requested an insecure XMLHttpRequest endpoint 'http://services.arcgisonline.com/ArcGIS/rest/services/World_Imagery/MapServer?f=json'. This request has been blocked; the content must be served over ...


1

Try to target the contentPane to add background images to the popup. Something like this sample. .contentPane { background: url("//js.arcgis.com/3.14/esri/images/map/logo-med.png"); } Then adjust your no-repeat, repeat-x, repeat-y as needed. MDN resource


0

You should import the json module from Dojo. It will allow you to create a JavaScript object from your return JSON and do what you want with it. So, if you want to create a Geometry object, you can parse the returned JSON with the json module, get your JavaScript object, and create it from the properties of the derived JavaScript object. Say your object ...


1

I cobbled together a few chunks of code that should help using the RouteTask suggested by @kes. I took code chunks from this ESRI Geolocation example and this ESRI RouteTask example. My example uses a mouse click to set the destination location, and the geolocation results to set the starting point. You can use these principles to customize the code ...


1

I'm pretty sure the default Print Service can't do this. You may be able to do this via arcpy and a custom print tool. You can see a sample here.


1

you'll need to ensure that an appropriate redirect_uri is specified for the ArcGIS Online item associated with the clientid you are using in the app. http://doc.arcgis.com/en/arcgis-online/share-maps/add- items.htm#ESRI_SECTION3_EA170D63DFBD419D97594A889697FCB0 this is what keeps our platform for passing along tokens associated with logged on users to ...


0

I did something with CMV that you might be interested in. I created a toolbar across the top. And, I created a custom container type for non-dialog widgets. It's a commercial product. Here's a link to one of our sites: http://lakeinsurveyor.mygisonline.com/?_h=true The Floating Panel did require minor core changes, but the menu didn't. I'll try to find time ...


1

I would recommend looking into Cesium: http://cesiumjs.org/ I have been using it for quite a while and found it to be a great 3D solution. It is open source and provides for additional things like 3D terrain, vector graphics, billboards and 3D models.


0

It's not possible without some extensive reworking of CMV's layout and widget loading. "CMV 2.0" is conceptually underway. https://github.com/cmv/cmv-labs Very early stages, but a core concept is the layout as a widget. You could have a full page map layout widget with floating panes.


0

I just separated it out a little bit, create each basemap separately and then add to the gallery. Try this. var fx_image =new BasemapLayer({url:"http://services.arcgisonline.com/ArcGIS/rest/services/Specialty/DeLorme_World_Base_Map/MapServer" }); var basemap = new Basemap({ layers: [fx_image], title: "fx_image", thumbnailUrl: ...


0

Without knowing whether the array of features match updateFeature variable, and whether you meant for Value to be uppercase, I feel like I'm shooting in the dark with this answer. You may need to refresh() the layer once teh changes have been complete. Remember that applyEdits() is an asynchronous task, and the information may not have made it to the server ...


0

Sorry for the unreadable code, here is the normal sequence var basemaps[]; //one step define BasemapLayer var fx_image =new esri.dijit.BasemapLayer({url:"http://services.arcgisonline.com/ArcGIS/rest/services/Specialty/DeLorme_World_Base_Map/MapServer" }); //second step define BaseMap var imageBaseMap1 = new esri.dijit.BaseMap({layers: ...


1

It was right under my nose, and exactly where you'd expect it: In the Extent class there's an expand(factor) method: So, I tried: var extent = graphicsUtils.graphicsExtent(map.graphics.graphics).expand(4) map.setExtent(extent); And it's exactly what I wanted.



Top 50 recent answers are included