Tag Info

Hot answers tagged

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


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/


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


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

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


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.


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

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


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

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


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


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



Only top voted, non community-wiki answers of a minimum length are eligible