|
POST
|
Ok... I had to go into dev tools on Chrome in order to get the Layer ID. Once I did that... it worked. Putting 'all' did NOT work.
... View more
10-31-2016
09:47 AM
|
0
|
2
|
633
|
|
POST
|
I cleaned up the default.js attribute 'sharinghost' to point to my arcgis portal and now I'm getting: Unable to create map: A valid layer to create the GeoForm was not found. If the GeoForm has been configured with a layer, the layer may no longer be available, or authorization failed. So lost...
... View more
10-31-2016
09:04 AM
|
0
|
3
|
633
|
|
POST
|
So I've begun (what I fear will be) the (laborious and excruciatingly painful) process of propping up a locally hosted GeoForm for the Events Permit Solution. I've created the Events Permit AGOL Webmap. I've shared it with EVERYONE. I've configured the GeoForm with the web ID. It spins when I load it... and the Console error says: Any ideas? I'm completely lost.
... View more
10-31-2016
07:55 AM
|
0
|
4
|
1127
|
|
POST
|
On line 2 you mention I should 'export the data from the hosted feature layer you deployed in your ArcGIS organization' and I'm sitting here wondering what this even means?! I am trying to setup and configure the Events Permit through to Events Calendar solutions. We don't have the layers in our Enterprise LGM Database anymore because the layers being used aren't in the LGM. I'm trying to get the feature classes in place first and I can't as they aren't in the LGM... So step one is to have the feature layers so I can create an MXD so I can publish to a REST Service so I can prop up the solutions and go... How?!
... View more
10-27-2016
01:52 PM
|
0
|
1
|
2545
|
|
POST
|
I edited the code that outputs the favicon html and removed the attribute right before ICON (I think it was "shortcut") and it would work in Chrome for a little bit... then disappear. Just weird...
... View more
10-21-2016
06:24 AM
|
0
|
0
|
436
|
|
POST
|
Scott Oppmann, so for my City I have been tasked with implementing all aspects of the Events Package and Solutions. We would prefer to utilize our ArcGIS for Server on our systems internally tho. Are there directions for doing this? Because I can ONLY find the means to accomplishing this setup using AGOL and that is not something we are considering at the moment.
... View more
10-20-2016
02:30 PM
|
2
|
3
|
2545
|
|
POST
|
So I have put together a rudimentary widget that allows an internal department to generate Buffers around a point based on precise requirements that they have. They need to click a point on the map and generate a 1,000 and a 3,000 foot buffer. Assistance Building First Widget : Buffer Points? So I've got it working. ArcGIS Web Application However, when you measure from the center to the edge of the buffers you don't get 1,000 nor 3,000 feet buffers on screen. The buffer that is supposed to be 1,000 feet is 800 feet and the 3,000 is more like 2,500 feet?! Any ideas? Robert Scheitlin, GISP?
... View more
10-18-2016
07:27 AM
|
0
|
1
|
1143
|
|
POST
|
The NLS file was possibly a problem... There was a comma after the only entry in the list... But the thing that fixed it was adjusting the manifest.json. All of those parameters were switched off to false and voila! Thank you again sir...
... View more
10-17-2016
02:59 PM
|
0
|
0
|
869
|
|
POST
|
Any idea why I would get THIS...? I'm trying to add the widget to an application...
... View more
10-17-2016
01:56 PM
|
0
|
2
|
2709
|
|
POST
|
As this was the demo: /webappviewer/?config=sample-configs/config-demo.json I hadn't even looked at it. I have added in our Geometry service and voila! Issue resolved. As usual, thank you sir. It's incredibly amazing that you help out like this. Widget #1... done. Now I can see that I need to start wrapping my head around libraries like the DrawBox... Any recommendations for what should be looked through? Dojo seems to complicate things unnecessarily with their data-dojo-attach-point and data-dojo-type, etc. Trying to figure out where and what needs to be added where and when is a little overwhelming. But it's past time... But thank you again.
... View more
10-17-2016
01:24 PM
|
0
|
4
|
2709
|
|
POST
|
The draw box is INFINITELY better than what I was using. Thank you for that... I'm running into an Access-Control-Allow-Origin header issue now. Can you think of what would do this? This isn't from my proxy, is it?
... View more
10-17-2016
12:58 PM
|
0
|
6
|
2709
|
|
POST
|
Ok... So I'm working on my first widget. Using Robert Scheitlin, GISP -'s recommendations. Widgets Purpose This widget needs to have a button, and two input fields. The user enters numbers in the fields, selects distance TYPE (Miles or Feet), presses the button, and clicks on the map to create a buffer set. The widget should generate TWO buffers that are transparent and overlap each other. Those two buffers should be as large as the two numbers in the input fields. So if the user enters 1000, and 3000 (the most likely buffer range for this widget) and selects FEET from the distance TYPE then clicks on the map the widget should generate two buffers. One that is a 1,000 foot buffer and a 3,000 foot buffer around that initial click point. Contents So what I have so far is this: manifest.json {
"name": "cotBuffer",
"2D": true,
"3D": false,
"platform": "HTML",
"version": "0.1",
"wabVersion": "2.1",
"author": "Rev. Brian Scott O'keefe",
"description": "This is the City of Tulsa's first widget. It serves a single purpose to draw two buffers from one click that are printable.",
"copyright": "",
"license": "http://www.apache.org/licenses/LICENSE-2.0",
"properties": {
"inPanel":true,
"hasLocale": true,
"hasStyle":true,
"hasConfig":true,
"hasUIFile":true,
"hasSettingPage":true,
"hasSettingUIFile":true,
"hasSettingLocale":true,
"hasSettingStyle":true,
"IsController":false
}
} style.css button{
margin:2px;
cursor:pointer;
} Widget.html <div>
<div class="details">Pick a tool and draw on the map. The drawn graphic will be buffered based on the specified parameters.</div>
<button type="button" class="tool" id="point">Point</button>
<br/>
<hr />
<div><b>Buffer Parameters</b></div>
First Buffer Distance: <input type="text" id="firstDistance" size="5" value="1000" /><br />
First Buffer Distance: <input type="text" id="secondDistance" size="5" value="3000" />
<select id="unit" style="width:100px;">
<option value="UNIT_STATUTE_MILE">Miles</option>
<option value="UNIT_FOOT">Feet</option>
</select><br />
<button type="button" id="clearGraphics">Clear Graphics</button>
</div> Widget.js define([
'dojo/_base/declare',
'jimu/BaseWidget',
"dojo/dom",
"dojo/_base/array",
"dojo/parser",
"dojo/query",
"dojo/on",
"esri/Color",
"esri/config",
"esri/map",
"esri/graphic",
"esri/geometry/normalizeUtils",
"esri/tasks/GeometryService",
"esri/tasks/BufferParameters",
"esri/toolbars/draw",
"esri/symbols/SimpleMarkerSymbol",
"esri/symbols/SimpleLineSymbol",
"esri/symbols/SimpleFillSymbol",
"dijit/layout/BorderContainer",
"dijit/layout/ContentPane",
"dijit/form/Button",
"dojo/domReady!"
],
function(
declare,
BaseWidget,
dom,
array,
parser,
query,
on,
Color,
esriConfig,
Map,
Graphic,
normalizeUtils,
GeometryService,
BufferParameters,
Draw,
SimpleMarkerSymbol,
SimpleLineSymbol,
SimpleFillSymbol
) {
//To create a widget, you need to derive from BaseWidget.
return declare(
[BaseWidget],
{
// Custom widget code goes here
baseClass: 'jimu-widget-customwidget',
//this property is set by the framework when widget is loaded.
name: 'cotBuffer',
tb: '',
//methods to communication with app container:
// postCreate: function() {
// this.inherited(arguments);
// console.log('postCreate');
// },
startup: function() {
this.inherited(arguments);
//Setup button click handlers
on(dom.byId("clearGraphics"), "click", function()
{
if(this.map){
this.map.graphics.clear();
}
});
//click handler for the draw tool buttons
query(".tool").on("click", function(evt)
{
if(this.tb)
{
this.tb.activate(evt.target.id);
}
});
this.initToolbar();
console.log('startup');
},
initToolbar: function (evtObj) {
this.tb = new Draw(evtObj.map);
this.tb.on("draw-end", createCOTBuffers);
},
createCOTBuffers: function(evtObj) {
this.tb.deactivate();
var geometry = evtObj.geometry, symbol;
symbol = new SimpleMarkerSymbol(SimpleMarkerSymbol.STYLE_SQUARE, 10, new SimpleLineSymbol(SimpleLineSymbol.STYLE_SOLID, new Color([255,0,0]), 1), new Color([0,255,0,0.25]));
var graphic = new Graphic(geometry, symbol);
this.map.graphics.add(graphic);
//setup the buffer parameters
var params = new BufferParameters();
params.distances = [ dom.byId("firstDistance").value, dom.byId("secondDistance").value ];
params.outSpatialReference = this.map.spatialReference;
params.unit = GeometryService[dom.byId("unit").value];
//normalize the geometry
normalizeUtils.normalizeCentralMeridian([geometry]).then(function(normalizedGeometries)
{
var normalizedGeometry = normalizedGeometries[0];
params.geometries = [normalizedGeometry];
esriConfig.defaults.geometryService.buffer(params, showCOTBuffers);
});
},
showCOTBuffers: function (bufferedGeometries) {
var symbol = new SimpleFillSymbol(
SimpleFillSymbol.STYLE_SOLID,
new SimpleLineSymbol
(
SimpleLineSymbol.STYLE_SOLID,
new Color([255,0,0,0.65]), 2
),
new Color([255,0,0,0.35])
);
array.forEach(bufferedGeometries, function(geometry)
{
var graphic = new Graphic(geometry, symbol);
this.map.graphics.add(graphic);
});
}
// onOpen: function(){
// console.log('onOpen');
// },
// onClose: function(){
// console.log('onClose');
// },
// onMinimize: function(){
// console.log('onMinimize');
// },
// onMaximize: function(){
// console.log('onMaximize');
// },
// onSignIn: function(credential){
// /* jshint unused:false*/
// console.log('onSignIn');
// },
// onSignOut: function(){
// console.log('onSignOut');
// }
// onPositionChange: function(){
// console.log('onPositionChange');
// },
// resize: function(){
// console.log('resize');
// }
//methods to communication between widgets:
});
}); I was at the Dev Summit and I remember the KeyNote speaker saying, "Don't use THIS in your Javascript." I'm definitely rusty on my Javascript but I tried to leave out this and suddenly I can't reference the map object... But I'm having more issues than that... I'm basing this Widget off of a JSAPI reference. Geometry Service - Buffer | ArcGIS API for JavaScript 3.18 Any help would be appreciated.
... View more
10-17-2016
10:29 AM
|
0
|
11
|
2709
|
|
POST
|
I started my first widget yesterday rscheitlin, so I'm hoping to start digging in and giving you a run for your money. lol
... View more
10-14-2016
12:22 PM
|
0
|
0
|
1103
|
|
POST
|
So it appears that if the query is based off of a unique field from a large dataset that has to take a moment to query, then the URL parameters don't work. at. all. I set up "Pre-Defined" for the Year field, and put in each year, and it works fine... but when it was a Unique field and it had to query them all? It wouldn't work. SO... it works now.
... View more
10-14-2016
10:27 AM
|
0
|
2
|
1103
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 05-14-2015 08:51 AM | |
| 1 | 06-02-2016 02:00 PM | |
| 1 | 10-09-2015 07:43 AM | |
| 1 | 10-09-2015 09:42 AM | |
| 1 | 02-09-2016 07:10 AM |
| Online Status |
Offline
|
| Date Last Visited |
11-11-2020
02:23 AM
|