|
POST
|
Laura, have you considered using the FeatureTable widget from the API? FeatureTable | API Reference | ArcGIS API for JavaScript 3.20
... View more
06-01-2017
05:20 PM
|
1
|
1
|
711
|
|
POST
|
Hi Danny Venier I think Robert Scheitlin, GISP already answered it pretty well, but just wanted to confirm to you. As for the original question "Is ESRI moving to Dojo2 and if so, what is timeframe and migration strategy?" - It's not a decision we've made yet. We will first wait for Dojo2 (and all different subparts that we use) to be released, and ready to use in enterprise apps/APIs. Moving to Dojo2 is likely to mean breaking changes, and I don't think it's anything we would do in the JSAPI 4.x timeframe. (And there's no plans for a 5.x yet). I also want to point out that even though JSAPI 4x is using Dojo for certain things, there's plenty of JSAPI web developers using the JSAPI together with other frameworks such as Angular, Ember, React etc (including some teams at Esri). See "Using Frameworks".
... View more
04-25-2017
04:22 PM
|
1
|
1
|
2456
|
|
POST
|
FYI - This is a 4.3 specific bug. It worked in 4.0-4.2, and will work again at 4.4 ...
... View more
04-25-2017
02:10 PM
|
1
|
0
|
5780
|
|
BLOG
|
Yes, they added that sentence last month. There's more info in the commit https://github.com/bower/bower.github.io/commit/12566e5b777ef4c93c525cf3d2fa35ebc9f4d2e5, including a link to https://advancedweb.hu/2016/12/21/bower/ which discusses some use cases for when Bower might be preferred to npm.
... View more
04-25-2017
01:47 PM
|
0
|
0
|
5024
|
|
POST
|
Hi Michelle Jean Your sample is using the 3x font URLs, while the documentation page is using the 4x API. It seems like we missed updating the 3x font URLs. For now, you can reference the 4x branch. See e.g. https://jsbin.com/minaxis/edit?html,output
... View more
04-24-2017
09:44 PM
|
2
|
0
|
4436
|
|
BLOG
|
When the 4.0 version of the ArcGIS API for JavaScript was released, we also released a Bower compatible minified version of the API for users interested in doing their own custom local builds. This was a big step in our direction to help users integrate the ArcGIS API for JavaScript into their own workflows. We have since had numerous requests to publish the ArcGIS API for JavaScript to NPM. One of the reasons we have not done this is that Bower provides us with some advantages when it comes to creating custom local builds. Publishing the API to NPM will not automatically make it compatible with build tools like Webpack. It actually adds a couple of steps to the Dojo build needed to compile the ArcGIS API for JavaScript. With the upcoming release of 4.4 we will publish the ArcGIS API for JavaScript to NPM. We will also be providing some updated resources about how to do a Dojo build with the API. Start using NPM today However, you could start using NPM today to install the ArcGIS API for JavaScript locally. Let's start with the sample application provided in the resources repo on github. Take a look at the bower.json file provided with the ArcGIS API for JavaScript repo. ...
"dependencies": {
"dojo": "Esri/dojo#v1.12.1/esri-3.20.0",
"dojox": "Esri/dojox#v1.12.1/esri-3.20.0",
"dijit": "Esri/dijit#v1.12.1/esri-3.20.0",
"util": "Esri/dojo-util#v1.12.1/esri-3.20.0",
"dgrid": "Esri/dgrid#v1.1.0/esri-3.20.0",
"dstore": "1.1.1", "moment": "2.17.1"
},
... We can borrow most of this for our package.json of our custom application. ...
"dependencies": {
"dgrid": "Esri/dgrid#v1.1.0/esri-3.20.0",
"dijit": "Esri/dijit#v1.12.1/esri-3.20.0",
"dojo": "Esri/dojo#v1.12.1/esri-3.20.0",
"dojo-dstore": "^1.1.1",
"dojo-util": "^1.12.2",
"dojox": "Esri/dojox#v1.12.1/esri-3.20.0",
"arcgis-js-api": "Esri/arcgis-js-api#4.3.1",
"moment": "2.17.1"
},
... You can see this looks very similar. Main difference is that util is now dojo-util and dstore is now dojo-dstore , because these are the names of the published packages on NPM. You may also notice that we can bring in the arcgis-js-api repo using Esri/arcgis-js-api#4.3.1 . This tells NPM too look on github at the Esri org and install the arcgis-js-api repo using the 4.3.1 release. At this point you can delete the bower.json and .bowerrc files from the project since they are not going to be used. One disadvantage of using NPM instead of Bower is that NPM does not allow you to change the name of the folder the package is installed. Meaning that the JavaScript API will installed to node_modules/arcgis-js-api instead of node_modules/esri which would be ideal as far as how we typically use the Dojo build system. Hint: If you use Yarn instead of NPM, it can install to custom named directories. Once you NPM install these packages you will have a folder structure that should look something like this. node_modules/
arcgis-js-api/
dgrid/
dijit/
dojo/
dojo-dstore/
dojo-util/
dojox/
src/
app/
main.js Now you need to tell Dojo where to locate the packages. You can do this by supplying a global dojoConfig object. <!-- index.html -->
<script>
// point to node_modules folder
window.dojoConfig = {
baseUrl: '../node_modules/',
packages: [
'dijit',
'dojo',
'dojox',
'dgrid',
'moment',
{
name: 'app',
location: '../src/app'
},
// alias for dstore package
{
name: 'dstore',
location: 'dojo-dstore'
},
// alias for esri package
{
name: 'esri',
location: 'arcgis-js-api'
}
]
};
</script>
<script src="../node_modules/dojo/dojo.js"></script>
<script>require(["app/main"]);</script> There is one more thing you will need to do your own code in order for this to work. The ArcGIS API for JavaScript uses Web Workers for Vector Tiles. You will need to let the workers know where the esri package is located in order for them to function. You can do this in the following manner using esri/config and dojo/has . //app/main.js
if (!has("dojo-built")) {
esriConfig.workers.loaderConfig = {
paths: {
"esri": "../arcgis-js-api"
}
};
} The reason we use dojo/has is that once the application is built, the Dojo build system will install the esri package into an esri folder and not arcgis-js-api . So we only need this configuration during the development process. Now you can develop your application using the JavaScript API installed in node_modules . When you do your Dojo build, you will need to do something similar. However, the Dojo build is expecting the build tools to be located in a folder called util , but they are in fact installed in a folder called dojo-util . This requires you to create a dojoConfig for the build system in the root of your project. // dojoconfig.js
dojoConfig = {
baseUrl: './node_modules/',
packages: [
{
name: 'dojo',
location: 'dojo'
},
{
name: 'build',
location: 'dojo-util/build'
}
]
};
require('./node_modules/dojo/dojo.js'); Then to run your Dojo build from the command line you can use node dojoconfig.js load=build --profile build.profile.js --releaseDir ../dist . This will now tell Dojo where to find the build tools needed. You will also need to update the build.profile.js to reflect the new locations of the packages. // build.profile.js
packages: [
// "app" is a sample path for your application
// set this accordingly
"app",
{
name: 'dijit',
location: '../node_modules/dijit',
trees: [
// don"t bother with .hidden, tests, min, src, and templates
[".", ".", /(\/\.)|(~$)|(test|node_modules)/]
]
},
{
name: 'dojo',
location: '../node_modules/dojo',
trees: [
// don"t bother with .hidden, tests, min, src, and templates
[".", ".", /(\/\.)|(~$)|(test|node_modules)/]
]
},
{
name: 'dojox',
location: '../node_modules/dojox'
},
{
name: 'dstore',
location: '../node_modules/dojo-dstore',
trees: [
// don"t bother with .hidden, tests, min, src, and templates
[".", ".", /(\/\.)|(~$)|(test|txt|src|min|templates|node_modules)/]
]
},
{
name: 'dgrid',
location: '../node_modules/dgrid',
trees: [
// don"t bother with .hidden, tests, min, src, and templates
[".", ".", /(\/\.)|(~$)|(test|node_modules)/]
]
},
{
name: 'esri',
location: '../node_modules/arcgis-js-api'
},
{
name: "moment",
location: "../node_modules/moment",
main: "moment",
trees: [
// don"t bother with .hidden, tests, min, src, and templates
[".", ".", /(\/\.)|(~$)|(test|txt|src|min|templates)/] ],
resourceTags: {
amd: function(filename, mid){
return /\.js$/.test(filename);
}
}
}
], Notice the addition of the trees array for each package. This lets the Dojo compiler know which files and folders to ignore so it doesn't try to include tests and documentation in the build process. Summary So if you are interested in using NPM to install the ArcGIS API for JavaScript locally today, these are the steps you would need to take. All this is still valid once we publish the JavaScript API to NPM, except you will only need to install the arcgis-js-api package by name and not need to install the other dependencies yourself. Bower does provide us with a distinct advantage when it comes naming the folders and locations that packages are installed, but NPM allows to keep all dependency code in a single location. Please note, that if you want to use RequireJS and the RequireJS Optimizer to build the ArcGIS API for JavaScript, you should continue to use Bower as some of the required build tools cannot be installed via NPM. Even once the API is published to NPM, we will continue to provide the Bower release for as long as it's sustainable since it's all the same codebase. Contributed by Rene Rubalcava !
... View more
04-13-2017
01:52 PM
|
6
|
16
|
12796
|
|
POST
|
j.eyreesri-ch-esridist - this 2013 thread is about the since retired ArcGIS API for Flex. Are you asking about the Flex API, or maybe ArcGIS API for JavaScript?
... View more
04-13-2017
01:20 PM
|
0
|
0
|
3539
|
|
IDEA
|
As of version 4.3, the 4.x JSAPI doesn't yet support adding georeferenced images. The documentation for MapImage is incorrect (and we will update that).
... View more
04-11-2017
08:19 AM
|
0
|
0
|
503
|
|
POST
|
As for "manual/documentation", there is some information in https://developers.arcgis.com/javascript/3/jsapi/editor-amd.html.
... View more
04-06-2017
04:16 PM
|
1
|
1
|
3183
|
|
POST
|
view.container = null should have been enough, but there is a bug with it. We will look at fixing that for next version (4.4).
... View more
04-05-2017
05:10 PM
|
1
|
5
|
4669
|
|
POST
|
For the WebApp Builder, there's also the Coordinate Conversion widget from the Solutions team that might be useful some people reading this geonet question. This widget converts input coordinates to various notation formats like MGRS for example. https://github.com/Esri/solutions-webappbuilder-widgets/tree/dev/CoordinateConversion To play with it, go to http://esri.github.io/solutions-webappbuilder-widgets/ - "Coordinate Conversion" is the third widget.
... View more
03-24-2017
01:52 PM
|
1
|
1
|
1219
|
|
POST
|
N1cks - No, SceneViewer does not support Bing Maps.
... View more
01-17-2017
01:41 PM
|
1
|
0
|
3230
|
|
POST
|
flspat - Are you using a proxy? If so, does it work fine without a proxy?
... View more
01-12-2017
02:37 PM
|
0
|
1
|
740
|
|
POST
|
Correct Ken Buja, that service doesn't support https (which is required in the sandbox). dschall : It works fine if you try it at http://jsbin.com/sohigiqohu/edit?html,output
... View more
12-22-2016
04:04 PM
|
1
|
0
|
1093
|
|
POST
|
The ArcGIS API for JavaScript version 3.18 was released today. See the blog for a good overview, then head over to the developers site for details https://blogs.esri.com/esri/arcgis/2016/09/23/arcgis-api-for-javascript-version-3-18-released/ https://developers.arcgis.com/javascript/3/
... View more
09-23-2016
11:03 AM
|
1
|
0
|
1293
|
| Title | Kudos | Posted |
|---|---|---|
| 3 | 03-11-2026 11:16 AM | |
| 2 | 03-17-2025 08:24 AM | |
| 3 | 03-17-2025 07:27 AM | |
| 4 | 02-26-2025 11:37 AM | |
| 1 | 03-23-2023 04:36 PM |
| Online Status |
Offline
|
| Date Last Visited |
a month ago
|