|
POST
|
The inclusion of the moment lib requires a little extra steps in the Dojo build profile. See this sample here. jsapi-resources/build.profile.js at master · Esri/jsapi-resources · GitHub packages: [
// 'app' is a sample path for your application
// set this accordingly
'app',
'dijit',
'dojo',
'dojox',
'dstore',
'dgrid',
'xstyle',
'put-selector',
'esri', {
name: 'moment',
location: 'moment',
main: 'moment',
trees: [
// don't bother with .hidden, tests, min, src, and templates
[".", ".", /(\/\.)|(~$)|(test|txt|src|min|templates)/]
]
}
], When you bower install moment, it will build fine, but you have to tell Dojo where to find it and also what files to ignore, which is what that trees property does for the package. Hope that helps.
... View more
03-16-2016
10:36 AM
|
1
|
0
|
1778
|
|
POST
|
Have you seen this project? GitHub - Esri/angular-esri-map: A collection of directives to help you use Esri maps and services in your Angular applic… You can also use it with Angular 2 via this SystemJS tool. GitHub - Esri/esri-system-js: Load ArcGIS API for JavaScript modules using SystemJS
... View more
03-15-2016
07:55 AM
|
1
|
0
|
855
|
|
POST
|
That should give you a dialog similar to this. Unable to find a suitable version for dojo, please choose one:
1) dojo#v1.10.4/esri-3.14.0 which resolved to v1.10.4/esri-3.14.0 and is required by arcgis-js-api#3.16.0
2) dojo#>=1.8.1 which resolved to 1.10.4 and is required by dstore#1.1.0
Prefix the choice with ! to persist it to bower.json
? Answer Enter "!1" and it will save your choice in the bower.json file. You could set up a bower.json ahead of time like the one here. https://github.com/Esri/jsapi-resources/blob/master/bower/dojo/bower.json That could help. Thanks!
... View more
03-14-2016
02:22 PM
|
0
|
2
|
1335
|
|
POST
|
Here is a sample showing how to get the graphics with a LayerView. JS Bin - Collaborative JavaScript Debugging I don't think you can style the graphic in place though, you may need to use graphic.clone() and apply a new symbol and add it to the map.graphics layer.
... View more
02-26-2016
09:55 AM
|
0
|
1
|
1433
|
|
POST
|
The Portal API in the 4.0 of the JS API has this functionality. PortalItem | API Reference | ArcGIS API for JavaScript I don't think it's baked into the 3.x API though. I could be wrong.
... View more
02-25-2016
07:44 AM
|
1
|
0
|
1451
|
|
POST
|
They actually work out really well together. Here's a resources page with some links. GitHub - odoe/esrijs-resources: Resources for the ArcGIS API for JavaScript I'll also cover this in more detail at DevSummit!
... View more
02-24-2016
09:28 AM
|
2
|
2
|
1633
|
|
POST
|
Some files are lazy loaded. It may look something like this when you load a webmap. define(["require", "esri/layers/FeatureLayer", "esri/layers/ArcGISTileMapServiceLayer"], function(require, FL, TL) {
// code to load the webmap and determine what layers are needed
if (needImageLayer) {
require([dictionary.ImagerLayer], function() {
// stuff
});
}
}); That inner require is lazy loading modules that you may or may not need. The build system will not build the files in that inner require statement. There are cases of this throughout the API. This is a case where you need to add the files to the include list. Another case that happens for graphics looks something like this. define(["has!svg?./gfx/svg:./gfx/vml"], function(graphixType) {}); This is a loader plugin that will check at runtime if your browser supports SVG or not, if it does, it will load the SVG module, if it does not, it will load an older module to support graphics. This particular case isn't really valid today, but there are plenty of other uses of runtime checks for certain support to load certain files. Again, you will need to manually add these files to the include list to get a single file build.
... View more
02-19-2016
08:04 AM
|
0
|
0
|
1485
|
|
POST
|
Well then, if you want to mess with styling, I think I can help. GitHub - Esri/arcgis-vectortile-style-editor: A simple Vector Tile Style Editor to update the styles of Esri Vector Base… It's not a "full-featured" editor, but you can do some cool stuff. You'll need to makes sure you copy a style in your ArcGIS Online account. How to Customize Esri Vector Basemaps | ArcGIS Blog
... View more
02-18-2016
08:50 AM
|
1
|
0
|
907
|
|
POST
|
I would follow the instructions Chris posted to add the json MIME type to IIS. I'd bet that is the issue you are having with the 404s.
... View more
02-18-2016
08:16 AM
|
0
|
0
|
3395
|
|
POST
|
Are you looking for a specific area? At my last job we manually downloaded them all for LA County and published them to our own ArcGIS Server. You can get a shapefile of quads here. United States, USGS Quad Grids - Nationwide - Free GIS Data - GIS Data Depot This site list California ones individually Free California Topo Maps It has instructions to get the seamless images. I think you can also get them in bulk by county here Geoportal I'm not familiar with resources for other states, sorry.
... View more
02-18-2016
06:30 AM
|
0
|
0
|
2361
|
|
BLOG
|
Maybe you're new to the ArcGIS API for JavaScript or maybe you're even a seasoned user, but at some point I'm sure you've dug deep into AMD and modular JavaScript. I've written a few posts about this before, one being Embrace your AMD modules, as well as a post on custom builds. I even recorded a video about using the Bower release of the ArcGIS JS API. One question seems to pop up quite a bit and that is a question about packages. What are they and why do they matter? Don't worry, packages are a concept that confused me at one point as well. Packages can be thought of as namespaces, similar to what you might see in Java or another language. Let's break down a couple of some statements, using default ES5 syntax. define(["esri/map"], function(map) {}); What we are doing here is requesting the map module from the esri package. The entire ArcGIS API for JavaScript s inside the esri package. There are other dependencies from other packages like dojo or dojox. Typically, you don't need to concern yourself too much with packages if you are building a simple application. If you're using the CDN of the API, you are probably familiar with this little hack to use your local code. Using packages That's all fine and dandy, but if you are using the Bower release of the API and you want to do custom local builds, this is when packages matter. Because you need to let the Dojo build system know what packages it should be aware of. The easiest way to do this is to add the esri and it's dependency packages under a source folder. Your application code should go into an app folder. This means you would end up with an application structure similar to this. src
├── app
├── dgrid
├── dijit
├── dojo
├── dojox
├── dstore
├── xstyle
├── put-selector
├── esri You can read this guide to find out how to have Bower install to your source directory. Now you can tell the Dojo build system what packages it should be aware of in your build profile. packages: [
// 'app' is a sample path for your application
// set this accordingly
'app',
'dijit',
'dojo',
'dojox',
'dstore',
'dgrid',
'xstyle',
'put-selector',
'esri'
], You can see a sample build profile here. If you add more libraries, like Bootstrap and jQuery, you can just add them to them to the packages list. So at the end of the day, packages are nothing more than a way to keep your code organized. Now that's not the end of the story for packages. There are more details you can learn about to let the Dojo build system know that a folder is a package and that it is an AMD package. There's even stuff you can do to ignore any tests directories that may reside inside your package folder. I'll cover those details next time! For more geodev tips and tricks, check out my blog.
... View more
02-17-2016
09:29 AM
|
1
|
0
|
2191
|
|
POST
|
There are various modules in the ArcGIS JS API that are dynamically loaded for various reasons. In this case, the dojox modules are dynamically loaded because the files needed can very based on browser capabilities. When using WebMaps, the API will load most common layer types, but others are dynamically loaded as needed, since the types of layers in a WebMap can vary quite a bit. In the guide we let you know that for this sample, these are the dynamically loaded files you can include in your build. Best practice when your application grows is to do test builds to see what files are dynamically loaded so you can add them to be included in your build script. Thanks!
... View more
02-11-2016
11:40 AM
|
0
|
2
|
1485
|
|
POST
|
You want to look at the "Manage your organization" portion of the REST API. This relates to the portal API and how you can add/delete items. ArcGIS REST API You should be able to put something together with the information there.
... View more
02-01-2016
06:45 AM
|
1
|
1
|
2306
|
|
POST
|
Yeah, centerAndZoom returns a Promise, which comes from the Deferred. This means you can use the "then()" method as your sample shows to continue your code.
... View more
01-28-2016
10:29 AM
|
1
|
0
|
4257
|
|
POST
|
One tip I can give is that web storage data should be strings, so you can do JSON.stringify(data). PouchDB should handle this, but if you are getting the 'object [Object]' response, you may need to stringify the data yourself. I updated the link in the README there but here it is. Taking it offline - odoenet Hope that helps.
... View more
01-27-2016
09:24 AM
|
1
|
2
|
1459
|
| Title | Kudos | Posted |
|---|---|---|
| 2 | 2 weeks ago | |
| 1 | 07-17-2026 10:17 AM | |
| 2 | a month ago | |
| 2 | 05-19-2026 02:12 PM | |
| 1 | 04-24-2026 11:01 AM |
| Online Status |
Offline
|
| Date Last Visited |
Wednesday
|