POST
|
Hello All, I'm using the calcite-maps project (GitHub - Esri/calcite-maps: A theme for Bootstrap for designing, styling and creating modern map apps ) and trying to create new panels as custom widgets. It works OK until I need to use an actual Dijit, e.g. dijit.form.HorizontalSlider, and then I'm running into a handful of issues with styling and configuration. Should it be feasible to instantiate calcite-map panels using custom widgets that include dijits? Can anyone point me to an example? Thanks! --john
... View more
01-15-2017
04:00 PM
|
0
|
0
|
1340
|
POST
|
Hello All, I'm trying to configure Intern to do some unit testing on some legacy ArcGIS Javascript projects. I'm having trouble understanding the "loader" configuration in intern.js, e.g. loaders: { 'host-node': 'bower_components/dojo/dojo', 'host-browser': 'node_modules/dojo/dojo.js' }, I'm working off examples from SitePen, David Spriggs, and Rene's Yeoman generator, but don't seem to be able to get all the pieces to work together. My objective is pretty simple: get the SitePen tutorial working using the Esri-version of dojo provided by Bower. I don't really understand why the "loaders" configuration is required to provide a dojo other than the default but that's done in both the Esri-related examples. In my case when I configure the loaders config as above, I get the error: Error: Cannot find module 'bower_components/dojo/dojo' at Function.Module._resolveFilename <module.js:339:15> at Function.require.resolve <internal/module.js:23:19> at <node_modules/intern/lib/executors/PreExecutor.js:437:32> at new Promise <node_modules/intern/node_modules/dojo/Promise.ts:411:3> at PreExecutor.swapLoader <node_modules/intern/lib/executors/PreExecutor.js:428:11> at swapLoader <node_modules/intern/lib/executors/PreExecutor.js:389:17> at <node_modules/intern/node_modules/dojo/Promise.ts:393:15> at runCallbacks <node_modules/intern/node_modules/dojo/Promise.ts:11:11> at <node_modules/intern/node_modules/dojo/Promise.ts:317:4> at run <node_modules/intern/node_modules/dojo/Promise.ts:237:7> There is a bower_components/dojo/dojo.js file. Any help or clarification would be much appreciated! --john
... View more
01-24-2016
04:59 PM
|
0
|
0
|
2428
|
POST
|
Thanks Rene, that helps. I was on the lookout for a .bowerrc file in my project directory but didn't realize that a .bowerrc in the parent directory would also be used and that was the source of my confusion. --john
... View more
01-24-2016
03:25 PM
|
0
|
0
|
775
|
POST
|
Hello All, I'm confused about the state of GeoJSON support in ArcGIS for Server 10.3.1. I see that using the "f=pgeojson" works for FeatureServer on services.arcgis.com (running v10.3.1) but is not recognized on my 10.3.1 Server. Can someone please clarify? Thanks! --john
... View more
01-21-2016
10:24 AM
|
1
|
0
|
1968
|
POST
|
Hello All, I notice that when using Bower to install a local copy of the ArcGIS for Javascript API, it sometimes installs into the ./dist directory and sometimes into a ./bower_components directory. It's not clear to me what influences this. Can someone please explain? Thanks! --john
... View more
01-17-2016
09:55 PM
|
0
|
2
|
2997
|
POST
|
Hello All, I'm trying out Rene's Yeoman generator for ArcGIS JS applications and finding that out-of-the box there are some problems with the unit tests (e.g. http://localhost:8282/node_modules/intern/client.html?config=tests/intern). In his video, he mentions that the webmap test is expected to fail, but I'm seeing others as well. For example, the MapView component fails with this error: TypeError: View is not a function at Test.registerSuite.View publishes a valid map [as test] </tests/unit/components-map-mapview.js:30:17> at eval </node_modules/intern//lib/Test.js:211:24> at eval </node_modules/intern//node_modules/dojo/Promise.js:156:41> at runCallbacks </node_modules/intern//node_modules/dojo/Promise.js:19:22> at eval </node_modules/intern//node_modules/dojo/Promise.js:103:21> at run </node_modules/intern//node_modules/dojo/Promise.js:51:33> at CallbackQueue.drain </node_modules/intern//node_modules/dojo/CallbackQueue.js:39:35> at MutationObserver.eval </node_modules/intern//node_modules/dojo/nextTick.js:52:27> Has anyone had success with this tool or can point me toward the problem? Thanks! --john
... View more
01-16-2016
11:35 AM
|
0
|
0
|
2364
|
DOC
|
At NOAA's National Centers for Environmental Information in Colorado (formerly the National Geophysical Data Center), we've been running production Esri map services and custom map applications for over 15 years. This long history has benefited us in some ways, but in others it's a hindrance as we carry forward practices optimized for earlier versions of the software. In this talk I'll describe the architecture, software development methods, and best practices that we've evolved over that time. We're a small team that handles both operations and development; I'll cover things that work well, things that still have room for improvement, and plans for the future.
... View more
01-04-2016
01:54 PM
|
6
|
0
|
2327
|
POST
|
Hello All, what controls whether a thumbnail image shows in Manager's Services listing? Thumbnail is set in "Map Document Properties". I'm running ArcGIS Server 10.2 on RHEL Linux. Thanks! --john
... View more
10-18-2013
08:16 AM
|
0
|
0
|
587
|
POST
|
Thanks for your reply Manish. I don't think though that your suggestion will address my problem. I'm already checking for the timeout on individual layer, e.g.
setLayerTimeouts: function() {
//setup timeouts for each layer to load
this.layerTimeouts = {};
dojo.forEach(this.mapServices, function(svc) {
this.layerTimeouts[svc.id] = setTimeout(dojo.partial(this.layerTimeoutHandler, svc), 5000);
}, this);
},
layerTimeoutHandler: function(mapservice) {
logger.warn("failed to load layer "+mapservice.id);
mapservice.suspend();
},
My issue is that if I wish to take advantage of the DeferredList and not have to track the status of the collection myself, I'm subject to the 60 second timeout before the onLayersAddResult event fires. --john
... View more
10-16-2013
08:18 AM
|
0
|
0
|
601
|
POST
|
Hello All, I'm looking for a way to set the timeout for the addLayers method on esri.Map, similar to the way in which one sets a timeout on esriRequest. When I add a list of mapservices to a Map, and one of them is unresponsive, I have to wait for 60 seconds before the layers-add-result event fires. Can someone please help? Thanks! --john
... View more
10-08-2013
02:19 PM
|
0
|
2
|
1106
|
POST
|
Hello All, I'm trying to convert an application w/ custom modules from 2.8 to 3.7. I'd hoped to phase in this transition to AMD and tried initially simply replacing the references to 2.8 to those using 3.7. Unfortunately, this doesn't seem to work w/ complaints about missing jsapi_en-us.js, "define is not defined", etc. I'd understood that the the 3.7 was backward compatible w/ non-AMD code - can someone please help me? Thanks! --john
... View more
09-27-2013
09:58 AM
|
0
|
1
|
603
|
POST
|
Thanks for your reply!. I've not been able to get your suggestion to work despite using a local dojo. Would it be possible for you to modify Derek's original sample as a more complete illustration of your approach? Thanks again for your interest and help! --john
... View more
04-21-2013
07:53 AM
|
0
|
0
|
393
|
POST
|
Hello, I'm looking at Derek's DOH unit testing example (http://blogs.esri.com/esri/arcgis/2012/05/21/writing-unit-tests-for-your-arcgis-api-for-javascript-apps/) and cannot get it to work with version 3.x of the API. Can someone please help me out? Thanks! --john
... View more
04-12-2013
08:26 PM
|
0
|
3
|
753
|
POST
|
Thanks for the clarification Derek, I had not appreciated the distinction. Are there other legacy issues that I should look out for? I've been going by the "Dojo 1.x to 2.0 migration guide" trying to convert as much of the syntax as possible. My code now in the listing below now seems to work. Thanks again for your help! --john
require(
[
"esri/map", "esri/layers/FeatureLayer", "dojo/on", "dojo/ready", "dojo/_base/connect", "dojo/domReady!"
],
function(Map, FeatureLayer, on, ready, Connect) {
ready(function() {
var map = new Map("map",{
basemap:"oceans",
center:[-102,40], //long, lat
zoom:5
});
var featureLayer = new FeatureLayer('http://maps.ngdc.noaa.gov/arcgis/rest/services/web_mercator/ufn/MapServer/5', {
mode: FeatureLayer.MODE_ONDEMAND,
outFields: ["*"]
});
map.addLayer(featureLayer);
Connect.connect(featureLayer, "onMouseOver", function(evt) {
console.log('inside onMouseOver');
});
});
}
);
... View more
04-09-2013
07:55 PM
|
0
|
0
|
586
|
POST
|
Thanks for your suggestion Stephen, but that doesn't work either. It's my understanding though that, using the AMD-style loading, I should be instantiating the FeatureLayer as I had it. Here's a little more context on the code showing the enclosing require function. --john require(
[
"esri/map", "esri/layers/FeatureLayer", "dojo/on", "dojo/ready", "dojo/domReady!"
],
function(Map, FeatureLayer, on, ready) {
ready(function() {
var map = new Map("map",{
basemap:"oceans",
center:[-102,40], //long, lat
zoom:5
});
var featureLayer = new FeatureLayer('http://maps.ngdc.noaa.gov/arcgis/rest/services/web_mercator/ufn/MapServer/5', {
mode: FeatureLayer.MODE_ONDEMAND,
outFields: ["*"]
});
map.addLayer(featureLayer);
//Error: Target must be an event emitter
on(featureLayer, "onMouseOver", function(evt) {
console.log('inside onMouseOver');
});
});
}
);
... View more
04-08-2013
08:23 PM
|
0
|
0
|
586
|
Title | Kudos | Posted |
---|---|---|
1 | 01-21-2016 10:24 AM | |
6 | 01-04-2016 01:54 PM | |
5 | 08-17-2010 11:34 AM | |
18 | 07-27-2010 01:59 PM |
Online Status |
Offline
|
Date Last Visited |
03-07-2023
04:48 PM
|