Hot answers tagged

4

No, this isn't possible. For one, if you were to load both API's, you would end up with a namespace collision with Dojo's Define and Require. For two, the API is obfuscated (not human readable) making it difficult to extract just the parts you need. Even if you could, there may be dependencies in that module preventing you from using it with an older API.


3

Kirk is right on the money, with the exception of one statement. If your mapservice url is public, and you have an ArcGIS Online account, you can create an app without coding. As long as you have access to the internet, it is possible to create webmaps and applications in ArcGIS Online that reference an instance of ArcGIS Server that is behind a ...


3

Instead of trying to "customize the map service", I recommend leaving the map service as-is, and writing apps that use the map service. You can write such an app by starting with the sample code in the ArcGIS API for javascript. If you don't want to write code, you can use the Web Appbuilder. If your mapservice url is public (i.e. accessible from outside ...


2

EDIT: I've changed the alias of the field in ArcMap and that persists in the feature service. But, I'm still wondering: How do I change the number format used in the dijit Legend? (I would like to display rounded numbers and percentages.) so I'm not completely sure that this what you are looking for, but inside Arcmap, if you open an attribute ...


2

Currently the extrusion you are setting in Pro that would go towards publishing a feature service in AGOL is not supported in the scene viewer. You can do this in code with the JS API 4.0(currently in beta, final coming soon!). Check out this blog to help you get started: ...


2

This blog has an excellent example of how to make the window draggable and hide the arrow using dojo: https://gavinr.com/2015/04/13/arcgis-javascript-draggable-infowindow Here's the key javascript snippet: require([ 'esri/arcgis/utils', 'dojo/dnd/Moveable', 'dojo/query', 'dojo/on', 'dojo/dom-class' ], function ( arcgisUtils, ...


2

the code snippet you've provided throws an error because you're making the request to an invalid url (FeatureServ/0/ instead of FeatureServer/0/). that said, you're also passing quite a few undefined/invalid parameters. geometry: undefined outFields: undefined text:"" some things to keep in mind: a point will never intersect another point unless they ...


1

You got this error because you are trying to get an Extent of point geometry , so the Point geometry does not have an extent like (polyline,polygone ...) the school feature layer is a esriGeometryPoint Layer , so you cant work with extents here : I used the centerAndZoom map function to zoom to the returned point geometry , and i've add graphic for ...


1

vince is right. when you need functionality that was introduced in a specific release of the ArcGIS API for JavaScript (or any API for that matter) the only way to get access to it is to utilize the version where its present. https://developers.arcgis.com/javascript/jshelp/new_v313.html


1

This is a very simple way to do what you need: https://output.jsbin.com/gijokewena You just define an array or object of layers with url and renderer (if it's needed) and then a function that load one of the layers using an id or key. I hope this help you.


1

GitHub doesn't let you host server side applications, so you cannot run your proxy there. http://stackoverflow.com/questions/15718649/how-to-publish-a-website-made-by-node-js-to-github-pages


1

Like @ahammadalipk points out it's a CORS issue and not specific to the JSAPI. I don't think sampleserver1 supports CORS (it's an old server). Another alternative is to use a proxy. See https://developers.arcgis.com/javascript/jshelp/ags_proxy.html Or maybe take a step back. Depending on what you are trying to do, you might want to test with a newer ...


1

When you say "I tried to use another geometry server, but the problem is obviously not there", do you mean it works with other GeometryServices but not the one hosted on tasks.arcgisonline.com? Either way, https://tasks.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer is an old server (10.0) that you probably shouldn't be using. The sample you ...



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