|
POST
|
Here is our custom print task that is done using our own web services: Print a Map Click on the hammer to bring up the print button and then click on the print button for the custom print dialog box. Here is the source code: JS Bin - Collaborative JavaScript Debugging You will need to create your own images for your buttons or you can copy ours.
... View more
03-24-2015
06:45 AM
|
0
|
12
|
2937
|
|
POST
|
The same thing happened to me. The reason the New Build button did not work for me was because I was not logged in using my Developer account.
... View more
03-24-2015
06:39 AM
|
1
|
2
|
1942
|
|
POST
|
Good point. I think I can modify the form on my own. Once that's done I can start a new thread. Appreciate the advice.
... View more
03-18-2015
10:51 AM
|
0
|
0
|
1001
|
|
POST
|
Thanks Kelly Hutchins I've got a lot to learn in editing. I hope it gets easier with practice. But this helps.
... View more
03-18-2015
09:36 AM
|
0
|
0
|
2488
|
|
POST
|
Just one question on this one. How do I determine the feature that was clicked on?
... View more
03-18-2015
07:45 AM
|
0
|
3
|
2488
|
|
POST
|
I like the answer before this one best, but I need to learn bootstrap. Needing to learn what causes the form to pop-up. But I'm going to try and modify this one for my project. Thanks.
... View more
03-18-2015
07:45 AM
|
0
|
1
|
2488
|
|
POST
|
You did send me that code, but I just didn't know how to integrate the code into my app. I am just trying to understand how to make the edits apply to the feature service and I am not getting it. The editing widget does it all for you.
... View more
03-17-2015
03:01 PM
|
0
|
5
|
2488
|
|
POST
|
I am trying to create a mobile application for field use, but the pop-up editor is too small. It's discussed here in this blog: Editing pop-UPs got you DOWN? | ArcGIS Blog Are there any tutorials that cover how to do this in the Esri JS API?
... View more
03-17-2015
02:32 PM
|
1
|
10
|
6593
|
|
POST
|
The following fields display in a popup box when the user clicks on them. How do I get the editor form to appear instead?: infoTemplate: {
title: '<b>Request ${objectid}</b>',
content: '<span class="infoTemplateContentRowLabel">Date: </span>' +
'<span class="infoTemplateContentRowItem">${requestdate:DateFormat}</span><br><span class="infoTemplateContentRowLabel">Phone: </span>' +
'<span class="infoTemplateContentRowItem">${phone:formatPhoneNumber}</span><br><span class="infoTemplateContentRowLabel">Name: </span>' +
'<span class="infoTemplateContentRowItem">${name}</span><br><span class="infoTemplateContentRowLabel">Severity: </span>' +
'<span class="infoTemplateContentRowItem">${severity:severityDomainLookup}</span><br><span class="infoTemplateContentRowLabel">Type: </span>' +
'<span class="infoTemplateContentRowItem">${requesttype:requestTypeDomainLookup}</span><br><span class="infoTemplateContentRowLabel">Comments: </span>' +
'<span class="infoTemplateContentRowItem">${comment}</span>'
}
}; The form startup is I believe, the following, but I am not sure: // initialize the request type drop down
var initAttributeForm = function() {
var options = [];
for (var key in app.requestTypeFieldDomainCodedValuesDict) {
if (app.requestTypeFieldDomainCodedValuesDict.hasOwnProperty(key)) {
options.push('<option value="' + key + '">' + app.requestTypeFieldDomainCodedValuesDict[key] + '</option>');
}
}
app.requestTypeSelect.innerHTML = options.join('');
}; Here is the app online: csergent45/streetSigns · GitHub Kelly Hutchins or Robert Scheitlin, GISP is it possible to use this: layer.on("click", function(evt) { event.stop(evt); if (evt.ctrlKey === true || evt.metaKey === true) { //delete feature if ctrl key is depressed layer.applyEdits(null,null,[evt.graphic]); currentLayer = this; editToolbar.deactivate(); editingEnabled=false; } }); }); but instead use the startCaptureRequest function like so. but this did not work. I was hoping to pull up the form. Wait, I need an edit form too, don't I? Not just a submit form? : layer.on("click", function(evt) { // temporarily show alert when starting edits // and then start listening for a map click var startCaptureRequest = function (severity) { var listener; // NOTE: once user has clicked 'x' to dismiss // this alert, it will no longer show up domStyle.set(app.startEditAlert, 'display', ''); setTimeout(function () { domStyle.set(app.startEditAlert, 'display', 'none'); }, 3000); // save map point in app global and app.currentSeverity = severity; listener = app.map.on('click', function (e) { listener.remove(); // save map point in app global and // show form to collect incident report app.currentGeometry = e.mapPoint; app.attributesModal.modal('show'); }); }; } Here is my app that I published online. I am trying to make it so I can edit the points: Street Signs
... View more
03-17-2015
02:27 PM
|
0
|
2
|
4319
|
|
POST
|
This is my first question of three where I am trying to convert a responsive web created Tom Wayson. His original app is here: tomwayson/responsive-citizens · GitHub From my original app, I want to add the following: // 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
map = new Map("mapDiv", {
showAttribution: false,
sliderStyle: "small",
extent: initialExtent,
logo: false
});
// Starts initEditing after the feature layer(s) have been added
map.on("layers-add-result", initEditing);
// add imagery
var tiled = new ArgGISTiledMapServiceLayer("http://maps.decaturil.gov/arcgis/rest/services/Aerial_2014_Tiled/MapServer");
map.addLayer(tiled);
// add operational layer
var operationalLayer = new ArcGISDynamicMapServiceLayer("http://maps.decaturil.gov/arcgis/rest/services/Public/InternetVector/MapServer", {
"opacity": 0.5
});
map.addLayer(operationalLayer); In the app that I am trying to add this information into, I believe I want to modify the following, but I am not sure how (the complete app is at: csergent45/streetSigns · GitHub excerpt 1: var config = { mapOptions: {
basemap:'topo',
center:[-117.1825, 34.0547],
zoom:14,
sliderPosition: 'bottom-right'
},
citizenRequestLayerUrl: 'http://maps.decaturil.gov/arcgis/rest/services/test/StreetSignTest/FeatureServer/0',
infoTemplate: {
title: '<b>Request ${objectid}</b>',
content: '<span class="infoTemplateContentRowLabel">Date: </span>' +
'<span class="infoTemplateContentRowItem">${requestdate:DateFormat}</span><br><span class="infoTemplateContentRowLabel">Phone: </span>' +
'<span class="infoTemplateContentRowItem">${phone:formatPhoneNumber}</span><br><span class="infoTemplateContentRowLabel">Name: </span>' +
'<span class="infoTemplateContentRowItem">${name}</span><br><span class="infoTemplateContentRowLabel">Severity: </span>' +
'<span class="infoTemplateContentRowItem">${severity:severityDomainLookup}</span><br><span class="infoTemplateContentRowLabel">Type: </span>' +
'<span class="infoTemplateContentRowItem">${requesttype:requestTypeDomainLookup}</span><br><span class="infoTemplateContentRowLabel">Comments: </span>' +
'<span class="infoTemplateContentRowItem">${comment}</span>'
}
}; excerpt 2: // initialize the map and add the feature layer
// and initialize map widgets
var initMap = function() {
app.map = BootstrapMap.create('map', config.mapOptions);
app.citizenRequestLayer = new FeatureLayer(config.citizenRequestLayerUrl, {
mode: FeatureLayer.MODE_ONEDEMAND,
infoTemplate: new InfoTemplate(config.infoTemplate),
outFields: ['*']
});
app.map.addLayer(app.citizenRequestLayer);
... View more
03-17-2015
02:03 PM
|
0
|
2
|
3880
|
|
POST
|
I am not aware of the capability of publishing a toolbar, but you can publish a geoprocessing service and then you could connect that service to a button.
... View more
03-17-2015
09:15 AM
|
0
|
0
|
1338
|
|
POST
|
Although there was Esri JavaScript before the Esri JavaScript API, it looks like the official JavaScript API came out in 2008. Here is a post on version 1.2: Version 1.2 of the ArcGIS JavaScript API released | ArcGIS Blog The Esri JS API used Dojo and here is a list of the versions of Dojo: Guide | ArcGIS API for JavaScript Since Esri's standard practice is updating quarterly, 1.2 looks like the third update of 2008. And according to this, it was June 2008: http://downloads.esri.com/support/product%20life%20cycle/online_gis/ArcGISWebMappingAPIs_PLC.pdf
... View more
03-17-2015
06:34 AM
|
0
|
0
|
804
|
|
POST
|
I'm not sure, but if you already have the values that you want, perhaps this will help: Dojo Dijit Tree with Checkboxes
... View more
03-16-2015
07:14 AM
|
1
|
1
|
3566
|
|
POST
|
Here is an example for adding checkboxes to toggle layer visibility: Toggle layer visibility | ArcGIS API for JavaScript You could use this concept to set the parameters for your query.
... View more
03-16-2015
06:57 AM
|
0
|
3
|
3566
|
| 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
|