|
POST
|
I forgot to bind the node to the map container with: ctxMenuForMap.bindDomNode(map.container);
... View more
01-02-2015
09:57 AM
|
0
|
0
|
672
|
|
POST
|
I am going off of the context menu sample and the context menu does not display. Why won't it? Here is my code: Create a Map
... View more
01-02-2015
09:47 AM
|
0
|
1
|
4564
|
|
POST
|
It sounds like you don't have access to ArcGIS for Server. It actually quite expensive as shown here: Pricing | ArcGIS for Server There is also an EDN subscription which comes with ArcGIS for Server for development purposes only, but it's still a little pricey starting at $1,500 without ArcGIS for Desktop Basic. Info can be found here: Esri Developer Network | Pricing Your best bet may still be to take online classes as I references earlier. But if you want to develop some skill to be marketable, you could learn to program using the Esri JavaScript API for free. That could provide you with the skills to land an employer that has ArcGIS for Server in house. If you would like to start learning the Esri JavaScript API, you can go here: ArcGIS API for JavaScript You might also want to contact Esri to see if they have any possibilities that I have not mentioned.
... View more
12-31-2014
02:19 PM
|
0
|
1
|
583
|
|
POST
|
Are you new to ArcGIS as a whole? If so, you might want to start with the basics. This is a good book to start with: Esri Press | Getting to Know ArcGIS Desktop, Second Edition, Updated for ArcGIS 10 | You get a copy of ArcGIS Desktop for 180 day trial while working through the book and it is step by step. If not what is your current knowledge?
... View more
12-31-2014
01:49 PM
|
0
|
3
|
2525
|
|
POST
|
What does BLM stand for? I don't want to make assumptions with acronyms.
... View more
12-31-2014
01:37 PM
|
0
|
5
|
2525
|
|
POST
|
That depends on your knowledge what you have and what you need to do. Do you have ArcGIS Server installed? What are you wanting to accomplish with it? Develop apps? Administer?
... View more
12-31-2014
01:22 PM
|
0
|
7
|
2525
|
|
POST
|
Also you could take an ArcGIS Server online such as: Esri Training | ArcGIS for Server: Site Configuration and Administration Most of Esri's classes that are instructor led are also offered online and instructor led so you just have to pay for the class only.
... View more
12-31-2014
01:10 PM
|
0
|
0
|
2525
|
|
POST
|
Have you considered a book like Administering ArcGIS Server: Administering ArcGIS for Server: Hussein Nasser: 9781782177364: Amazon.com: Books or if you want to develop apps: Building Web and Mobile ArcGIS Server Applications with JavaScript: Eric Pimpler: 9781849697965: Amazon.com: Books if you want step by step instructions on Python: Python Scripting for ArcGIS: Paul A. Zandbergen: 9781589482821: Amazon.com: Books and last for ModelBuilder: Getting to Know ArcGIS ModelBuilder: David W. Allen: 9781589482555: Amazon.com: Books These could be more affordable routes.
... View more
12-31-2014
01:06 PM
|
0
|
0
|
2525
|
|
POST
|
Just an FYI; don't know if this works, but SitePoint has code for enabling a double tap if you are using iPhones or iPads at: Implementing doubletap on iPhones and iPads | Appcropolis
... View more
12-30-2014
08:42 AM
|
1
|
0
|
1941
|
|
POST
|
I'm not sure how I would write to a database outside of feature editing and some of my tables that I want to edit may not have GIS information in them.
... View more
12-30-2014
08:14 AM
|
0
|
1
|
2746
|
|
POST
|
One thing you could consider is creating a button and writing the code to deactivate the measurement tool through that button. Here is the API reference: Measurement | API Reference | ArcGIS API for JavaScript measurementWidget.setTool("theNameOfYourWidgetGoesHere",false);
... View more
12-30-2014
07:45 AM
|
1
|
0
|
1941
|
|
POST
|
It's not looking like I can move away from .NET completely. Thanks for the input. I found it helpful.
... View more
12-30-2014
07:26 AM
|
0
|
0
|
2746
|
|
POST
|
I am a .NET developer and I code web apps against databases. I have been able to move my GIS .NET development to the Esri JS API except for the proxy information, but is there a secure way to use JavaScript for interaction with just a database? Ideally Esri will make the new data layer editable and that would take all limitations away as long as I could relate data geographically. That will take care of some, but probably not all. Any ideas? Or should I stick with .NET for talking to the server securely? Thanks.
... View more
12-26-2014
01:45 PM
|
2
|
16
|
8759
|
|
POST
|
I have an example where we use our own server for the print task, not ArcGIS Online at all. See if this is the type of thing that you are looking for:Print a Map Click on the hammer icon and then the printer icon that will appear and then you can try out our print service. It's all html5. You can print a map in pdf as well as several other formats.
... View more
12-26-2014
01:38 PM
|
0
|
5
|
3747
|
|
POST
|
Here is an example that still has the scalebar and date and map, but nothing else (also you can see a live example at Print a Map Just a click on the hammer icon and then the print icon and it will bring up a live print example): <!DOCTYPE html>
<html>
<head>
<title>Print a Map</title>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta name="viewport" content="initial-scale=1,maximum-scale=1, user-scalable=no">
<link rel="stylesheet" href="http://js.arcgis.com/3.11/dijit/themes/soria/soria.css">
<link rel="stylesheet" href="http://js.arcgis.com/3.11/esri/css/esri.css">
<style>
html, body, #mapDiv
{
padding:0;
margin:0;
height:100%;
width:100%;
position:absolute;
z-index:0;
}
/* Printer CSS Begin */
h3 { margin: 0 0 5px 0;
border-bottom: 1px solid #444;
padding: 0 0 5px 0;
text-align: center;
}
.shadow
{
-moz-box-shadow: 0 0 5px #888;
-webkit-box-shadow: 0 0 5px #888;
box-shadow: 0 0 5px #888;
}
#feedback
{
background: #fff;
border: 2px solid #666;
border-radius: 5px;
bottom: 20px;
color: #666;
font-family: arial;
height: auto;
left: 20px;
margin: 5px;
padding: 10px;
position: absolute;
width: 300px;
z-index: 40;
visibility:hidden;
}
#feedback a
{
border-bottom: 1px solid #888;
color: #666;
text-decoration: none;
}
#feedback a:hover, #feedback a:active, #feedback a:visited {
border: none;
color: #666;
text-decoration: none;
}
#note
{
padding: 0 0 10px 0;
}
#info, #information
{
padding: 10px 0 0 0;
}
/* Printer CSS End */
#showTools
{
height:20px;
width:20px;
position:absolute;
top:200px;
left:20px;
z-index:50;
padding:5px 6px 5px 6px;
background-color:#f9f8f8;
border-radius:5px;
visibility:visible;
}
#hideTools
{
height:20px;
width:20px;
position:absolute;
top:200px;
left:20px;
z-index:50;
padding:5px 6px 5px 6px;
background-color:#f9f8f8;
border-radius:5px;
visibility:hidden;
}
#printer
{
height:20px;
width:20px;
position:absolute;
top:240px;
left:20px;
z-index:50;
padding:5px 6px 5px 6px;
background-color:#f9f8f8;
border-radius:5px;
visibility:hidden;
}
</style>
<script src="http://js.arcgis.com/3.11/"></script>
<script>
var app = {};
require(["esri/map", "esri/config",
"esri/dijit/Print",
"esri/geometry/Extent",
"esri/layers/ArcGISDynamicMapServiceLayer",
"esri/layers/ArcGISTiledMapServiceLayer",
"esri/layers/FeatureLayer",
"esri/tasks/GeometryService",
"esri/tasks/PrintTemplate",
"dojo/_base/array",
"dojo/dom",
"dojo/on",
"dojo/parser",
"dijit/layout/BorderContainer",
"dijit/layout/ContentPane",
"dojo/domReady!"], function (Map, esriConfig, Print, Extent,
ArcGISDynamicMapServiceLayer, ArcGISTiledMapServiceLayer,
FeatureLayer, GeometryService, PrintTemplate, arrayUtils, dom, on, parser
) {
parser.parse();
/* The proxy comes before all references to web services */
/* Files required for security are proxy.config, web.config and proxy.ashx
- set security in Manager to Private, available to selected users and select Allow access to all users who are logged in
(Roles are not required)
/*
The proxy section is defined on the ESRI sample. I have included it as
part of the documentation reads that the measuring will not work.
I thought that might be important.
*/
// Proxy Definition Begin
//identify proxy page to use if the toJson payload to the geometry service is greater than 2000 characters.
//If this null or not available the project and lengths operation will not work.
// Otherwise it will do a http post to the proxy.
esriConfig.defaults.io.proxyUrl = "proxy.ashx";
esriConfig.defaults.io.alwaysUseProxy = false;
// Proxy Definition End
// set custom extent
var initialExtent = new Extent({
"xmin": 777229.03,
"ymin": 1133467.92,
"xmax": 848340.14,
"ymax": 1185634.58,
"spatialReference": {
"wkid": 3435
}
});
// create map and set slider style to small
var map = new Map("mapDiv", {
showAttribution: false,
sliderStyle: "small",
extent: initialExtent,
logo:false
});
// add imagery
var tiled = new ArcGISTiledMapServiceLayer("http://maps.decaturil.gov/arcgis/rest/services/Aerial_2014_Tiled/MapServer");
map.addLayer(tiled);
// set operational layers
var operationalLayer = new ArcGISDynamicMapServiceLayer("http://maps.decaturil.gov/arcgis/rest/services/Public/InternetVector/MapServer", { "opacity": 0.5 });
// add operational layers
map.addLayer(operationalLayer);
// add point feature layer
var pointFeatureLayer = new FeatureLayer("http://maps.decaturil.gov/arcgis/rest/services/Test/FeatureServer/0");
map.addLayer(pointFeatureLayer);
// declare geometry service
esriConfig.defaults.geometryService = new GeometryService("http://maps.decaturil.gov/arcgis/rest/services/Utilities/Geometry/GeometryServer");
// begin print widget
app.printUrl = "http://maps.decaturil.gov/arcgis/rest/services/Utilities/PrintingTools/GPServer/Export%20Web%20Map%20Task";
createPrintDijit("Print Map");
function createPrintDijit(printTitle) {
var layoutTemplate, templateNames, mapOnlyIndex, templates;
// create an array of objects that will be used to create print templates
var layouts = [{
name: "Letter ANSI A Landscape",
label: "Landscape (PDF)",
format: "pdf",
options: {
legendLayers: [] // empty array means no legend
//scalebarUnit: "Miles",
//titleText: printTitle + ", Landscape PDF"
}
}, {
name: "Letter ANSI A Portrait",
label: "Portrait (Image)",
format: "jpg",
options: {
legendLayers: []
//scalebarUnit: "Miles",
//titleText: printTitle + ", Portrait JPG"
}
}];
// create print templates
var templates = arrayUtils.map(layouts, function (lo) {
var t = new PrintTemplate();
t.layout = lo.name;
t.label = lo.label;
t.format = lo.format;
t.layoutOptions = lo.options;
return t;
});
app.printer = new Print({
map: map,
templates: templates,
url: app.printUrl
}, dom.byId("print_button"));
app.printer.startup();
}
// end of print widget
// Hides print widget
on(dom.byId("closePrint"), "click", function () {
document.getElementById("feedback").style.visibility = 'hidden';
});
// Shows tools
on(dom.byId("showTools"), "click", function () {
document.getElementById("showToolsButton").style.visibility = 'hidden';
document.getElementById("hideToolsButton").style.visibility = 'visible';
document.getElementById("printer").style.visibility = 'visible';
});
// Hide tools
on(dom.byId("hideTools"), "click", function () {
document.getElementById("showToolsButton").style.visibility = 'visible';
document.getElementById("hideToolsButton").style.visibility = 'hidden';
document.getElementById("printer").style.visibility = 'hidden';
document.getElementById("feedback").style.visibility = 'hidden';
});
// Show print widget
on(dom.byId("showPrintWidget"), "click", function () {
document.getElementById("feedback").style.visibility = 'visible';
});
}
);
</script>
</head>
<body class="soria">
<div id="mapDiv">
<div id="showTools">
<input type="image" id="showToolsButton" src="images/hammer.png" alt="Show Tools" title="Show Tools" />
</div>
<div id="hideTools">
<input type="image" id="hideToolsButton" src="images/close.ico" alt="Hide Tools" title="Hide Tools" />
</div>
<div id="printer">
<input type="image" id="showPrintWidget" src="images/print.ico" alt="Print" title="Print" />
</div>
<div id="feedback">
<h3>
City of Decatur Print Service
</h3>
<div id="information">
<div id="note">
Note: Select the format that you would like to print your map from the dropdown below.
</div>
<!-- used for the print dijit -->
<div id="print_button"></div>
<div id="info">
This print service is to be used for City business only.
<input type="image" id="closePrint" src="images/close.ico" alt="Close" title="Close" />
</div>
</div>
</div>
</div>
</body>
</html>
... View more
12-24-2014
02:08 PM
|
1
|
1
|
4607
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 02-26-2015 12:31 PM | |
| 1 | 06-24-2015 06:06 AM | |
| 1 | 07-15-2015 12:34 PM | |
| 1 | 05-21-2015 02:27 PM | |
| 1 | 05-19-2015 11:52 AM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:23 AM
|