POST
|
I am writing a node.js solution to store "printed" maps to embed in a video. When I run the node file by itself, it executes without problem. When I link to the node file from my file that includes my ESRI code, I get the following error: Uncaught Error: undefinedModule and it says it occurs at line 5 of (minified) init.js, which isn't a file I modify. Has anyone else encountered this issue? Specifically, when trying to use node's "fs" and "mkdirp" modules? Do node and ESRI just not play well together?
... View more
11-16-2015
07:45 AM
|
0
|
1
|
3462
|
POST
|
I am writing a node.js solution to store "printed" maps to embed in a video. When I run the node file by itself, it executes without problem. When I link to the node file from my file that includes my ESRI code, I get the following error: Uncaught Error: undefinedModule and it says it occurs at line 5 of (minified) init.js. Has anyone else encountered this issue? Specifically, when trying to use node's "fs" and "mkdirp" modules? Do node and ESRI just not play well together?
... View more
11-13-2015
02:44 PM
|
0
|
0
|
3179
|
POST
|
I'm 2 days into the ArcGIS JavaScript API. Can someone help me understand why my print template settings aren't being acknowledged in the code below? Thanks! <!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no">
<title></title>
<link rel="stylesheet" href="http://js.arcgis.com/3.14/dijit/themes/nihilo/nihilo.css">
<link rel="stylesheet" href="http://js.arcgis.com/3.14/esri/css/esri.css">
<style>
#map{
width:640px;
height:640px;
}
.esriAttribution{
visibility: hidden;
}
.logo-med{
visibility: hidden;
}
</style>
<script src="http://js.arcgis.com/3.14/"></script>
<script>
require([
"esri/map", "esri/tasks/PrintTemplate", "esri/tasks/PrintParameters", "esri/dijit/Print", "dojo/dom"], function(Map, PrintTemplate, PrintParameters, Print, dom) {
var map = new Map( "map",{basemap: "streets",center: [-95.993, 36.154],zoom: 12,slider: false} );
// esriConfig.defaults.io.proxyUrl = "/proxy/";
var template = new PrintTemplate();
template.exportOptions = {
width: 640,
height: 640,
dpi: 96
};
template.format = "PNG";
template.layout = "A3 Landscape";
template.preserveScale = true;
var params = new PrintParameters();
params.map = map;
params.template = template;
printer = new Print({
map: map,
template: template,
url: "http://sampleserver6.arcgisonline.com/arcgis/rest/services/Utilities/PrintingTools/GPServer/Export%20Web%20Map%20Task"
}, dom.byId("printButton"));
printer.startup();
alert(JSON.stringify(template.exportOptions));
});
</script>
</head>
<body>
<div id="map"></div>
<div id="printButton"></div>
</body>
</html>
... View more
11-13-2015
10:20 AM
|
0
|
2
|
3140
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:25 AM
|