Tag Info

New answers tagged

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.


1

Hopefully I'm understanding this question correctly and you want to add a service to a base map layer that comes from your JSON blob. You would create an esri BasemapLayer with the URL as a parameter for each of the services. Once you have all the layers in, you need to add them to the layers parameter of your basemap. In my example, I wanted a slightly ...


0

What you are looking to do is draw a polygon onto the map using a series of coordinates for the inside and outside bounds. If you want a solid filled polygon, do not include the points for the inner shape. The following code would produce a polygon with a missing center. There are comments within to the code to help guide you as well. I hope this is what ...


1

I guess I solved problem myself. Error is not showing right now. I change my ArcGIS API src from <script src="http://js.arcgis.com/3.14/"></script> to a local file with code from this url. <script src="libs/arcgis-api.js"></script> I think problem was connected with weak network and some modules could not load properly. But I ...


0

queryTask.execute(query, function (results) { var selectionSymbol = new PictureMarkerSymbol('http://www.clipartandgraphics.com/images/borders/coloroval.gif', 50, 50); var graphic = new Graphic(results[0].geometry, selectionSymbol, 50, 50); map.graphics.add(graphic); ...


3

I think you need to use IdentityManager from the API that allows you to sign in with your arcgis.com account and then receive access to the data. Whatever users from your organization that have accounts can sign in as well. https://developers.arcgis.com/javascript/jsapi/identitymanager-amd.html And here is a sample that shows what I think you are trying to ...


2

I had the same problem and this is my solution. // Create a basemap order array. var bmOrder = ["Imagery","Open Street Map","Topographic","National Geographic","Streets"]; // OnLoad get the info and bind it to gallary basemap var mappedBm=[]; basemapGallery.on("load", function (res) { for (var i = 0; i < bmOrder.length; ...


0

Actually I found out that when I load ArcGIS API to my HTML then I can use require like requireJS (but with '.js' at the end) <!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <!--The viewport meta tag is used to improve the presentation and behavior of the ...


2

you're in luck. the beta version of the 4.0 ArcGIS API for JavaScript includes 3D support and was released on July 16th. https://developers.arcgis.com/javascript/beta/


0

After looking around I found this page to help with the JavaScript side of this question. Link: https://developers.arcgis.com/javascript/jsapi/picturemarkersymbol-amd.html This link also looks like it covers a wide variety of modification types for .svg files. Link: https://css-tricks.com/using-svg/ I hope that these help! Cameron


1

You are creating a new empty graphics layer gl but when you then call map.removeLayer(gl) it won't do anything as that new empty layer hasn't been added to the map yet. I'm guessing you wanted to remove the graphics layer previously created. You could do this giving the graphics layer a specific id when you create it, and then retrieving that existing ...


1

Figured this out. For anyone who finds this: Downloaded the esri/virtualearth/VETiledLayer widget here: http://js.arcgis.com/3.13/esri/virtualearth/VETiledLayer.js Then modified with another level of detail: { level: 20, resolution: 0.1492910708238085, scale: 564.248588 } Then referenced modified version in my app.


1

So I've contacted the ESRI Support and the response was They [ESRI Redlands] have advised "that the solve route task excludes all edges that intersect barriers from it's calculations. Thus the solver never encounters any barriers when trying to solve the route and therefore cannot return which barriers were obstructing the route. This would also ...


0

I'm a little unclear on the question. If you are creating the feature class thorough an API, you can add a KML feature to ArcGIS API. If you are receiving a feature from the API, you can convert that to KML using the conversion tool in ArcMap. Here are a few tips for that.


1

im going to have to disagree with everyone in the comments. if @mdown 's application loads web mercator tiles, he can pass a long/lat pair to map.centerAt() and skip declaring the spatial reference entirely because the API assumes WGS84 when nothing else is specified (docced here) and is able to reproject the values appropriately on the fly. ...


0

I ended up just creating both (DynamicMapServiceLayer and FeatureLayer), then adding the DMSL to the Legend but the FLs to the map. Not pretty, but it works.


1

I'm not sure which of those solutions you tried, but you should be able to do this by changing the css. So for your zoomin button putting this in the style tag should work to turn the pointer into a crosshair: <style> #zoomin{ cursor:crosshair; } </style> That works for normal buttons. Sometimes, though you need to override a class ...


0

I've inclued the code I've done to return the postcode geometry but I'm still unsure about where I should add the 2nd queryTask to pass the geometry from the postcode to the local authority area. I'm gussing the 2nd queryTask should be included within the first so that it doesnt run before the 1st queryTask has finished?? Thanks var queryTask = new ...



Top 50 recent answers are included