POST
|
The link I provided above has the print task modified where you can change the title. Kelly Hutchins feel free to add my code; which I had a lot of help with if you want to add it to any samples. All code I post on here is up for grabs by users or Esri.
... View more
10-26-2015
07:50 AM
|
0
|
1
|
1102
|
POST
|
You can edit the map title in my print task: csergent45/gisTemplate · GitHub
... View more
10-26-2015
06:31 AM
|
3
|
2
|
1102
|
POST
|
I have a xaml file with the following code and I receive an error for my local:TextEditorToolbar: Window x:Class="TextEditor.MainWindow" xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" xmlns:local="clr-namespace:TextEditor" Title="Text Editor" Height="600" Width="800"> <DockPanel> <Menu x:Name="menu" DockPanel.Dock="Top"/> <StackPanel> <local:TextEditorToolbar x:Name="toolbar"/> </StackPanel> <StatusBar DockPanel.Dock="Bottom"> <TextBlock x:Name="status" /> </StatusBar> <RichTextBox x:Name="body" SpellCheck.IsEnabled="True" AcceptsTab="True" AcceptsReturn="True" BorderThickness="0 2 0 0" /> </DockPanel> Window> It references a user control name TextEditorToolbar.xaml. Why would I receive this error and how do I fix it.
... View more
09-25-2015
09:12 AM
|
0
|
0
|
4546
|
POST
|
I thought it would be helpful if maybe an enterprise license were available for large companies. We pay more right now for the ability to distribute freely, but I do like Esri products, so I thought I would put that question out there. Thanks.
... View more
09-24-2015
06:42 AM
|
0
|
0
|
521
|
POST
|
At the company I am currently with, we use another GIS software that allows for royalty free distribution of our WPF mapping applications. Will Esri ever start doing this? That is one thing keeping us from switching.
... View more
09-23-2015
01:19 PM
|
0
|
2
|
2363
|
POST
|
I have a popup that displays when you click on the map, but I want to make it draggable. How do it do that?
... View more
09-17-2015
12:54 PM
|
0
|
0
|
2814
|
POST
|
I am trying to sign into ArcGIS Online using Excel's tab of ESRI maps and sign in ArcGIS, but it just hangs. Any ideas?
... View more
09-03-2015
11:01 AM
|
0
|
0
|
2578
|
POST
|
This is in a blog post: Multiple features can be selected at once by holding the SHIFT or CTRL key on your keyboard as you click features to add or remove them to/from the selection. You can also click the Select button on the toolbar to drag a box around the features you want to select. Reference: What's new in ArcGIS Online (July 2011) | ArcGIS Blog
... View more
08-27-2015
11:20 AM
|
0
|
1
|
1659
|
POST
|
Is your feature service public? And do you have an example expression that you are trying?
... View more
08-26-2015
11:38 AM
|
0
|
3
|
2188
|
POST
|
What is FC? And how are you trying to run the query in against the published service layer? Is it JavaScript? If so, you can use UCase in JavaScript to convert values to uppercase so that they match.
... View more
08-26-2015
11:16 AM
|
0
|
5
|
2188
|
POST
|
I can now add a support, but I can't add a sign and I can't apply edits to anything. I have updated the newest version of my code here after changing the names back: csergent45/streetSigns at 5d2a9cbcb8e94aa08b55afc5c0143dbe9657fcca · GitHub Any ideas why it's not applying or why I can't add a sign?
... View more
08-21-2015
12:32 PM
|
0
|
0
|
443
|
POST
|
Thanks Robert Scheitlin, GISP; I was assigned a new project and got pulled off of this, but I am going to try it now. I will mark it as answered as soon as it is working. So I am going to try this now.
... View more
08-21-2015
11:32 AM
|
0
|
0
|
443
|
POST
|
I uniststalled NodeJS already. So it looks like I just need to delete some folders. Thanks.
... View more
08-19-2015
08:50 AM
|
0
|
0
|
627
|
POST
|
I have seen all of the information on how to install Web AppBuilder, but how do you uninstall it? Is there a step by step process for that as well?
... View more
08-19-2015
08:40 AM
|
0
|
2
|
3188
|
POST
|
What I needed to do was to evaluate the number of addresses at the beginning of my statement. Here is the resolution: <!DOCTYPE html> <html> <head> <title></title> <meta charset="utf-8"> <meta http-equiv="X-UA-Compatible" content="IE=edge"> <meta name="viewport" content="width=device-width, initial-scale=1.0"> <link rel="stylesheet" href="http://js.arcgis.com/3.14/dijit/themes/claro/claro.css"> <link rel="stylesheet" href="http://js.arcgis.com/3.14/esri/css/esri.css"> <script src="http://js.arcgis.com/3.14/"></script> <link rel="stylesheet" href="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/css/bootstrap.min.css"> <script src="https://ajax.googleapis.com/ajax/libs/jquery/1.11.3/jquery.min.js"></script> <script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script> <script src="http://maxcdn.bootstrapcdn.com/bootstrap/3.3.5/js/bootstrap.min.js"></script> <style> #gridDiv { height: 100%; width: 100%; } #myModal {
height: 100%;
width: 100%;
}
.modal-body {
height: 300px;
}
</style>
<!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
<!--[if lt IE 9]>
<script src="//cdnjs.cloudflare.com/ajax/libs/html5shiv/3.7/html5shiv.min.js"></script>
<script src="//cdnjs.cloudflare.com/ajax/libs/respond.js/1.4.2/respond.min.js"></script>
<![endif]-->
</head>
<body class="claro">
<form id="frmTest">
<label id="lblOwnerAddress" for="ownerAddress">Owner's Address</label>
<input type="text" id="ownerAddress" name="ownerAddress" value="111 S Main" />
<div id="mainDiv" class="container">
<!-- Modal -->
<div class="modal fade" id="myModal" role="dialog">
<div class="modal-dialog">
<!-- Modal content-->
<div class="modal-content">
<div class="modal-header">
<button type="button" class="close" data-dismiss="modal">×</button>
<h4 class="modal-title">Select an Address</h4>
</div>
<div class="modal-body">
<div id="gridDiv"></div>
</div>
<div class="modal-footer">
<button type="button" class="btn btn-default" data-dismiss="modal">Close</button>
</div>
</div>
</div>
</div>
</div>
</form>
<script>
var items
require([
"dojo/on",
"dojo/_base/array",
"esri/tasks/locator",
"dojox/grid/DataGrid",
"dojo/data/ItemFileWriteStore",
"dijit/registry", "dojo/parser",
"dijit/registry",
"dojo/dom",
"dojo/_base/lang",
"dijit/layout/ContentPane",
"dojo/domReady!"
],
function (on, arrayUtils, Locator, DataGrid, ItemFileWriteStore, registry, parser, registry, dom, lang) {
parser.parse();
var store, grid, data, layout, node;
//document.getElementById("grid").style.display = "none";
on(document.getElementById('ownerAddress'), 'focusout', checkAddress);
on(document.getElementById('ownerAddress'), 'focusin', getElementId);
function getElementId() {
node = document.activeElement.id;
}
function checkAddress() {
console.log(node);
var locator = new Locator("http://maps.decaturil.gov/arcgis/rest/services/Public/WebAddressLocator/GeocodeServer");
//console.log(document.getElementById('ownerAddress').value);
//node = document.getElementById('ownerAddress');
node = document.getElementById(node);
// according to your service it takes Single Line
var params = {
"Single Line Input": node.value
};
locator.addressToLocations(params).then(function (addressCandidates) {
//console.log('success', addressCandidates);
//console.log(addressCandidates.length);
if (addressCandidates.length >= 1) {
console.log(addressCandidates.length);
data = {
identifier: "id",
items: []
};
layout = [[
// {'name': 'FID', 'field': 'id', 'width': '50px'},//
{ 'name': 'Address', 'field': 'address', 'width': '200px' }
]];
if (addressCandidates.length > 1) {
for (a = 0; a < addressCandidates.length; a++) {
// This is the address that should go into a grid cell
data.items.push(lang.mixin({ id: a + 1 }, { address: addressCandidates.address }));
console.log(addressCandidates.address);
}
console.log(addressCandidates);
items = arrayUtils.map(addressCandidates, function (result) {
console.log(result);
return result;
});
console.log(items);
}
console.log("Log" + data);
if (window.grid) {
dojo.destroy('grid');
dijit.byId('grid').destroy(true);
registry.remove(dom.byId('gridDiv'));
}
store = new ItemFileWriteStore({ data: data });
grid = new DataGrid({
id: 'grid',
store: store,
structure: layout,
autoWidth: true,
autoHeight: false,
rowSelector: '20px'
});
// display grid
//document.getElementById("grid").style.display = "block";
alert("hello " + addressCandidates.length);
// Show modal
$("#myModal").modal("show");
$('#myModal').show(function () {
$(this).trigger('isVisible');
});
//registry.byId("grid").display=block;
grid.on("rowclick", onRowClickHandler);
//console.log(addressCandidates.length);
//hookup the event
$('#myModal').bind('isVisible', isVisible);
}
else
{
alert("This does not appear to be an address in the city of Decatur. Please try again.");
dom.byId(node).focus();
dom.byId(node).value = "";
}
var adresses = addressCandidates.map(function () {
return x.address;
});
//console.log(adresses);
})
.otherwise(function (err) {
console.log('somethings wrong', err);
});
}
//declare event to run when div is visible
function isVisible() {
/*append the new grid to the div*/
grid.placeAt("gridDiv");
/*Call startup() to render the grid*/
grid.startup();
}
function onRowClickHandler(evt) {
console.log(evt);
var clickedAddress = evt.grid.getItem(evt.rowIndex).address;
console.log(clickedAddress);
alert(clickedAddress);
// console.log(evt.explicitOriginalTarget.data);
}
});
</script>
</body>
</html>
... View more
08-19-2015
08:28 AM
|
0
|
0
|
451
|
Title | Kudos | Posted |
---|---|---|
1 | 06-24-2015 06:06 AM | |
1 | 07-15-2015 12:34 PM | |
1 | 02-26-2015 12:31 PM | |
1 | 05-21-2015 02:27 PM | |
1 | 07-13-2015 09:18 AM |
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:23 AM
|