|
POST
|
So you want to prevent the user from exporting the data but at the same time still make the feature classes visible so that it can be viewed in ArcMap? I don't think that is possible.
... View more
01-12-2017
02:20 AM
|
1
|
0
|
3086
|
|
POST
|
I don't think you can do this with a Geometry Service or the API's geometryEngine tools. You might need to iterate through the points in the polyline path, testing the distance from the start to the path point each time, until you reach the path point just beyond the distance you require. Then you know the required distance point is between the last path point (n) and the path point just before the required distance (n-1), of which you know both points' distance from the start as well as the distance between path point n and path point n-1. Now you can calculate the coordinate of your required point with basic Pythagoras theorem.
... View more
01-12-2017
01:08 AM
|
0
|
0
|
747
|
|
POST
|
In your popup template content you need to make the html field value part of a valid HTML img element and not just echo the html field value e.g. <img src="{html}" alt=""> Also have a look at the media options for popups: PopupTemplate | API Reference | ArcGIS API for JavaScript 4.2
... View more
01-10-2017
10:39 PM
|
1
|
0
|
1981
|
|
POST
|
I think you're on the right track and both options will work. I would go for the definition expression option (FeatureLayer | API Reference | ArcGIS API for JavaScript 3.19 ).
... View more
01-10-2017
10:30 PM
|
0
|
3
|
1932
|
|
POST
|
You might need to add !important to your custom CSS to overwrite the AGO CSS.
... View more
01-10-2017
10:20 PM
|
1
|
1
|
6463
|
|
POST
|
There's no way to do this with CSS only. If the Description field was always a URL, you could set the td content as a clickable link e.g. <td style="padding:5px"><a href="{Description}" target="_blank">HTML Link</a></td> If you want to truncate the text, you can use the CSS text-overflow property for the td element (see Use CSS "text-overflow" to truncate long texts - makandropedia )
... View more
01-10-2017
05:57 AM
|
1
|
3
|
6463
|
|
POST
|
The caps of the field name in the statement needs to be consistent eg SELECT MAX(gridcode)
... View more
12-19-2016
08:19 AM
|
0
|
0
|
1965
|
|
POST
|
You can use a subquery: GRID_CODE >= ( (SELECT MAX( GRID_CODE ) FROM new_shapefile3) * 0.8) This will return all the values that are larger than 80% of the max, so the top 20%.
... View more
12-14-2016
04:05 AM
|
1
|
0
|
1965
|
|
POST
|
The British National Grid coordinates are not geographic coordinates and your CSV file has no projection information for ArcGIS Online to transform your coordinates to GCS LatLon values. You need to convert the BNG coordinates to GCS first and then upload the CSV file. See this page for more info: The National Grid FAQs | Support | Ordnance Survey
... View more
12-14-2016
03:57 AM
|
1
|
0
|
2272
|
|
POST
|
The error line at the end states AttributeError: 'NoneType' object has no attribute 'dataFrames'. Also when that part of the script is running the listDataFrames function looks like it requires a wildcard. I would try to add a wildcard when listing the dataframes in the script e.g. df = arcpy.mapping.ListDataFrames(mxd, "*")[0]
... View more
12-13-2016
03:52 AM
|
0
|
0
|
1221
|
|
POST
|
Not sure if I undestand correctly, but I think you are referring to functions? 4. More Control Flow Tools — Python 3.5.2 documentation So within a for loop you can call another function for each loop step to return a result e.g. def myFunction( raster, val ):
newval = raster * val
return newval
for r in rasterlist:
rmod = myFunction(r, 3.14159265)
... View more
12-12-2016
11:36 PM
|
0
|
0
|
1016
|
|
POST
|
I've added another BorderContainer to wrap the divs inside the top and bottom ContentPanes <body class="claro esri">
<div data-dojo-type="dijit/layout/BorderContainer" data-dojo-props="design:'headline'" style="width:100%; height:100%;">
<div data-dojo-type="dijit/layout/ContentPane" data-dojo-props="region:'center', splitter:true" style="height:50%">
<div id="innerLayoutTop" data-dojo-type="dijit.layout.BorderContainer" data-dojo-props="design: 'headline', gutters: false">
<div id="navToolbar" data-dojo-type="dijit/Toolbar" data-dojo-props="region:'top'">
<div data-dojo-type="dijit/form/Button" id="homebutton">Home</div>
<div data-dojo-type="dijit/form/Button" id="homebutton2">Home2</div>
<div data-dojo-type="dijit/form/Button" id="homebutton3">Home3</div>
<div data-dojo-type="dijit/form/Button" id="homebutton4">Home4</div>
<div data-dojo-type="dijit/form/Button" id="homebutton5">Home5</div>
<div data-dojo-type="dijit/form/Button" id="homebutton6">Home6</div>
<div data-dojo-type="dijit/form/Button" id="homebutton7">Home7</div>
<div data-dojo-type="dijit/form/Button" id="homebutton8">Home8</div>
<div data-dojo-type="dijit/form/Button" id="homebutton9">Home9</div>
<div data-dojo-type="dijit/form/Button" id="homebutton10">Home10</div>
</div>
<div id="map" data-dojo-type="dijit/layout/ContentPane" data-dojo-props="region:'center'"></div>
</div>
</div>
<div id="bot" data-dojo-type="dijit/layout/ContentPane" data-dojo-props="region:'bottom', splitter:true" style="height:50%">
<div id="innerLayoutBot" data-dojo-type="dijit.layout.BorderContainer" data-dojo-props="design: 'headline'">
<div id="navToolbarBot" data-dojo-type="dijit/Toolbar" data-dojo-props="region:'top'">
<div data-dojo-type="dijit/form/Button" id="butbutton">Some</div>
</div>
<div data-dojo-type="dijit/layout/ContentPane" data-dojo-props="region:'center'">
<div id="myTableNode"></div>
</div>
</div>
</div>
</div>
</body>
And your CSS html,body {
width: 100%;
height: 100%;
margin: 0;
padding: 0;
}
#map {
padding: 0;
} The result:
... View more
12-12-2016
02:41 AM
|
1
|
1
|
2100
|
|
POST
|
Get rid of the featurelayer's popup template and work with the view click event instead. Then you can open the popup on any map click event and still check for any graphic click event with the view.hitTest function as described in this post: https://community.esri.com/message/609517#comment-609517 Your view.click event can work something like this: view.on("click", function(event) {
var lat = event.mapPoint.latitude.toFixed(6);
var lon = event.mapPoint.longitude.toFixed(6);
view.hitTest(event.screenPoint).then(function(response) {
view.popup.open({
title: "Map click",
location: event.mapPoint,
content: "Lat: " + lat + " | Lon: " + lon
});
graphics = response.results;
if (graphics.length > 0){
var graphic = graphics[0];
view.popup.content += "<br>Value: " + graphic.graphic.attributes['Value'];
}
});
});
... View more
12-11-2016
11:22 PM
|
1
|
1
|
1381
|
|
POST
|
Add this to your CSS: #navToolbar{ position: relative !important }
... View more
12-11-2016
10:13 PM
|
1
|
3
|
2100
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 03-22-2024 12:37 AM | |
| 1 | 10-02-2025 10:28 AM | |
| 1 | 09-17-2024 12:29 AM | |
| 1 | 03-15-2024 11:33 AM | |
| 1 | 03-13-2024 11:20 PM |
| Online Status |
Offline
|
| Date Last Visited |
a month ago
|