|
POST
|
Try absolute positions. html, body {
padding: 0;
margin: 0;
height: 100%;
width: 100%;
}
#viewDiv {
position: absolute;
top: 400px;
bottom: 0;
right: 0;
left: 0;
}
.box{
position: absolute;
top: 0;
left: 0;
right: 0;
height:400px;
background:white;
outline:2px solid red;
}
... View more
12-12-2016
07:50 AM
|
0
|
5
|
3370
|
|
POST
|
Sorry, I should have clarified earlier. It's only going to return one graphic per layer. This is because it would get expensive to try and recurse over the SVG to find overlapping features. If this changes in the future, I'll update here.
... View more
11-29-2016
10:04 AM
|
2
|
0
|
4277
|
|
POST
|
I assume app/main has this in it require(["esri/map", "app/knockout-latest"], function (Map, ko) {..... If that's the case, try not adding it to the deps of the profile, since it's not really a dependency because the main file loads it. deps is used to load files immediately after Dojo loads, it would typically only be a single file, like an app/main, but include files that may add globals as well.
... View more
11-15-2016
09:17 AM
|
0
|
0
|
1144
|
|
POST
|
view.hitTest will return the topmost feature per layer, so a self-intersecting layer will only return one feature. We'll update the documentation to make this clear. Thanks!
... View more
11-01-2016
03:54 PM
|
1
|
7
|
7230
|
|
POST
|
None of my VS Code extensions seem to matter. What version of TypeScript are you using? You can check via tsc --version in the command line. Did you restart VS Code?
... View more
10-27-2016
10:47 AM
|
0
|
1
|
2580
|
|
POST
|
Thanks Robert Scheitlin, GISP for the suggestion. I put together a video that starts from scratch on setting up Visual Studio Code using the ArcGIS API for JavaScript. TypeScript and Visual Studio Code for ArcGIS API for JavaScript - YouTube Hopefully that provides a better picture on getting things up and running.
... View more
10-25-2016
11:12 AM
|
3
|
5
|
2580
|
|
POST
|
You need to have a tsconfig.json in the root of your folder with your TS settings and files. You can see a sample project here. GitHub - odoe/esrijs4-ts: Sample EsriJS 4 TypeScript Application
... View more
10-23-2016
08:24 PM
|
0
|
2
|
4517
|
|
POST
|
Odd, I can't get 4.0 to resize automatically on my Mac, maybe it's a browser issue. I'll ask someone to check it out.
... View more
10-20-2016
01:44 PM
|
0
|
0
|
3723
|
|
POST
|
This behavior should be the same as 4.0. In the beta releases it may have differed as the Views would automatically try to fill the page unless specified otherwise, but that was switched around to simplify map placement in 4.0. Basically, the inner div of #viewDiv has 100% width/height, but it's parent div does not. So as Robert showed, you just need to apply something to the parent div that the child div could expand to.
... View more
10-19-2016
04:33 PM
|
0
|
2
|
3723
|
|
POST
|
The MapImageLayer has built-in query functionality at the Sublayer level. Sublayer | API Reference | ArcGIS API for JavaScript 4.1 It was, in fact, much of the work done to add the enhancements to MapImageLayer so that each Sublayer could use definitionExpressions, renderer, popupTemplate, and query capabilities in a much simpler API than 3.x that the current implementation of the IdentifyTask had to be tabled for this current release. It was an oversight that this was not cited. We will be evaluating the IdentifyTask for upcoming releases to meet varying needs. Thank you.
... View more
10-11-2016
07:45 AM
|
1
|
0
|
3725
|
|
POST
|
We don't currently have this functionality in 4.x. Not sure of when we will have it. Thanks.
... View more
10-10-2016
02:45 PM
|
0
|
0
|
1343
|
|
POST
|
Thanks for reporting this. We're currently looking at the issue to try and resolve it.
... View more
10-06-2016
01:27 PM
|
2
|
0
|
3536
|
|
POST
|
I supposed it depends on exactly what you want to mock. For example, you can use Sinon to stub out methods of a module, just remember to reset them so you don't taint other tests. Something like this generator-arcgis-js-app/helpers-mapgenerator.js at master · odoe/generator-arcgis-js-app · GitHub registerSuite({
name: 'helpers: mapgenerator',
setup: function() {
// set up test here
},
beforeEach: function() {
// run before
sinon.stub(arcgisUtils, 'createMap').returns({
then: function(){}
});
},
afterEach: function() {
// run after
arcgisUtils.createMap.restore();
},
teardown: function() {
// destroy widget
},
'helper attempts to create map': function() {
var params = { id: 'test', webmapid: '1234' };
helper.fromWebMapAsJSON(params);
expect(arcgisUtils.createMap).to.have.been.calledOnce;
},
});
... View more
09-30-2016
09:15 AM
|
0
|
1
|
1373
|
|
POST
|
This will be fixed in 3.19. A temporary workaround is to set the initial basemap like: basemap: "satellite" There is a slight flash, at least in Chrome, but it prevents the map loading issue.
... View more
09-30-2016
08:59 AM
|
3
|
3
|
3802
|
|
POST
|
Correct, and you would still need to output babel or TS to AMD in order for custom builds to work. The configuration to require to set up via NPM would like window.dojoConfig = {
packages: [
{
name: 'esri',
location: 'node_modules/arcgis-js-api',
},
{
name: 'dojo',
location: 'node_modules/dojo',
},
// etc
]
}; That's because NPM doesn't allow you to change the install location such as Bower does. Using ES6 or TS doesn't make using NPM over Bower any easier in most cases. The source and dependencies are still provided as AMD and most loaders/build tools are incompatible with Dojo loader plugins which are crucial for various dynamic loading tasks such as internationalization, dynamic loading of modules based on browser support and so on. The exception to outputting to needing AMD output is when using SystemJS, because we're able to do some trickery in that regard with the loaders. GitHub - Esri/esri-system-js: Load ArcGIS API for JavaScript modules using SystemJS We also have tools for Ember GitHub - Esri/ember-cli-amd: Ember CLI Addon for using AMD libraries In all cases, they still require using the Dojo loader in conjunction with other loaders and the Dojo build tools are still the recommended way to build JSAPI apps. Although the r.sj optimizer can come close. There is a dojo webpack loader, but it still does not work 100% with all dependencies. GitHub - Nordth/dojo-webpack-loader: Webpack loader for Dojo Toolkit 1.x We'll eventually have an NPM release of the API, I just can't say when that will happen. Michael.Matuszak if you have an app config and tooling you'd like me to test an NPM release on, please feel free to contact me. I'm always looking for various scenarios that users might be using that I have not thought of yet.
... View more
09-27-2016
02:24 PM
|
2
|
1
|
1511
|
| Title | Kudos | Posted |
|---|---|---|
| 2 | 2 weeks ago | |
| 1 | 07-17-2026 10:17 AM | |
| 2 | 07-22-2026 11:24 AM | |
| 2 | 05-19-2026 02:12 PM | |
| 1 | 04-24-2026 11:01 AM |
| Online Status |
Offline
|
| Date Last Visited |
Wednesday
|