|
POST
|
If I add an alert on the var radiodistance = document.getElementsByName('DistanceVS'); var w = parseInt(radiodistance); alert(w); I get
... View more
12-20-2017
09:31 AM
|
0
|
11
|
3055
|
|
POST
|
No I dont think I have it...seems that the user defined input is not being used in the Viewshed. I changed them and ran from the same point and get the same result no mater what distance I choose or what height I try and push to the variables. hmmmm Doesnt seem like I am getting the value of the radio buttons to the variable and then to the Params
... View more
12-20-2017
09:26 AM
|
0
|
0
|
3055
|
|
POST
|
I think I got it working....Can someone pass their eyes over this and see if they see anything out of place... //SNIP
var vsDistance = new LinearUnit();
var vsHeight = new LinearUnit();
var radiodistance = document.getElementsByName('DistanceVS');
var w = parseInt(radiodistance);
vsDistance.distance = (w);
var radioheight = document.getElementsByName('HeightVS');
var h = parseInt(radioheight);
vsHeight.distance = (h);
vsDistance.units = "esriMiles";
vsHeight.units = "esrifeet";
var params = {
"Input_Observation_Point": featureSet,
"Viewshed_Distance": vsDistance,
"observerHeight": vsHeight
};
gp.execute(params, drawViewshed, errorViewShed);
}
... View more
12-20-2017
09:19 AM
|
0
|
14
|
3055
|
|
POST
|
Using this: CreateViewshed | API Reference | ArcGIS API for JavaScript 3.23 I think I am defining the parameters for Height incorrectly and cant seem to find them in the documentation vsHeight.height "observerHeight": vsHeight, "observerHeightUnits": "feet" Trying this: <input type="radio" name="DistanceVS" value="1" checked="checked">1 Mile</input>
<input type="radio" name="HeightVS" value="1" checked="checked">1 Meter</input>
var radios = document.getElementsByName('DistanceVS');
var w = parseInt(radios);
vsDistance.distance = (w);
var height = document.getElementsByName('HeightVS');
var h = parseInt(height);
vsHeight.height = (h);
vsDistance.units = "esriMiles";
var params = {
"Input_Observation_Point": featureSet,
"Viewshed_Distance": vsDistance,
"observerHeight": vsHeight,
"observerHeightUnits": "feet"
};
... View more
12-20-2017
09:07 AM
|
0
|
15
|
5202
|
|
POST
|
A million times Im not using CSS for this...I am using the ESRI example 100%...mine looks like crap, theirs looks ok
... View more
12-19-2017
01:42 PM
|
0
|
12
|
2895
|
|
POST
|
If I am using that example why doesn't mine look like that? The example doesn't have any extra css
... View more
12-19-2017
01:36 PM
|
0
|
14
|
2895
|
|
POST
|
Using the standard Legend I commented above this is how it looks....not sure what CSS to Change Looks terrible...
... View more
12-19-2017
01:00 PM
|
0
|
16
|
2895
|
|
POST
|
One thing I forgot to add...can you decrease the size of icon and text in the online example I gave above?
... View more
12-18-2017
05:53 AM
|
0
|
0
|
2895
|
|
POST
|
I am trying to create a legend and looking for examples. I found this on ESRI web site but its really clunky looking, with huge icons and no tree nesting... Legend | ArcGIS API for JavaScript 3.23 Issues: No Tree Nesting by category Icons and images are huge Very cartoon looking. This biggest: Its creating the legend automatically and adding every layer to the legend. I am looking for something a bit more professional looking that maybe has: Tree Nesting by category The ability to add the layers I want and not all of them Ability to control size of text and maybe icon size. Anyone know of any examples that meet my needs?
... View more
12-18-2017
05:52 AM
|
0
|
19
|
5645
|
|
POST
|
First off hate how this site kicks you out every couple minutes....anoying... Great....I was missing some parameters....this works great....got all the speed i was missing and all the layers. I was referencing these example and did see the other parameters ArcGIS API for JavaScript Sandbox var imageParameters = new ImageParameters();
imageParameters.format = "PNG32"; //set the image type to PNG24, note default is PNG8.
imageParameters.layerIds = [28];
imageParameters.layerOption = ImageParameters.LAYER_OPTION_SHOW;
... View more
12-14-2017
01:07 PM
|
0
|
0
|
1630
|
|
POST
|
I do this and get this error about the GET request var imageParameters = new ImageParameters();
ImageParameters.format = "jpeg"; //set the image type to PNG24, note default is PNG8.
var FloodZonelayer = new ArcGISDynamicMapServiceLayer("https://hazards.fema.gov/gis/nfhl/rest/services/public/NFHL/MapServer/28", {
"opacity" : 0.5,
"imageParameters" : imageParameters
});
legendLayers.push({ layer: FloodZonelayer, title: 'Flood Zones' });
... View more
12-14-2017
12:54 PM
|
0
|
2
|
1630
|
|
POST
|
hmmmm...wondering why their's is so responsive and I am grabbing the same Service and mine is slow and not rendering everything....chalk it up to who knows I guess?
... View more
12-14-2017
12:24 PM
|
0
|
4
|
1630
|
|
POST
|
OK it seems to be working sort of...missing all the blue area in the water... Are you seeing the blue in your app? My App FEMA's App
... View more
12-14-2017
12:10 PM
|
0
|
6
|
7700
|
|
POST
|
index 28 Layer: Flood Hazard Zones (ID: 28) it shows up in their app but fails when queried via the link above. It renders here: https://fema.maps.arcgis.com/home/webmap/viewer.html?webmap=cbe088e7c8704464aa0fc34eb99e7f30
... View more
12-14-2017
11:18 AM
|
0
|
8
|
7700
|
|
POST
|
Confused because I can view the layers here....I am copying the Rest EndPoint from this app and putting it in my JS app and it does not render. Specifically Flood Hazard Zones - index 28 https://fema.maps.arcgis.com/home/webmap/viewer.html?webmap=cbe088e7c8704464aa0fc34eb99e7f30
... View more
12-14-2017
11:14 AM
|
0
|
10
|
7700
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 09-20-2018 11:09 AM | |
| 1 | 09-10-2018 06:26 AM | |
| 1 | 09-15-2022 11:02 AM | |
| 1 | 05-21-2021 07:35 AM | |
| 1 | 08-09-2022 12:39 PM |
| Online Status |
Offline
|
| Date Last Visited |
09-19-2022
09:23 PM
|