POST
|
Because I have 1000+ features in a table and am using a select to change an attribute. No geometry, so getting the actually geometry would require returning it in the query and that would be wasteful performance wise.
... View more
11-10-2017
11:10 AM
|
0
|
0
|
753
|
POST
|
Thanks, passing just an object worked. I assumed it had to be a Graphic object.
... View more
11-10-2017
11:09 AM
|
0
|
0
|
753
|
POST
|
var tmpGraphic = new Graphic({ attributes: { "objectid": someObjectID "someAttribute" : someAtrribute } }); featureLayer.applyEdits({ updateFeatures: [tmpGraphic] }).then.... The applyEdits request shows the geometry for the graphic as null, thus overwriting the geometry on the feature layer. I assume this is new as it hasn't been happening before... Any ideas?
... View more
11-09-2017
04:38 PM
|
0
|
4
|
994
|
POST
|
This is still an issue in 4.3, see the example below. (using bootstrap) Edit: Maybe "issue" wasn't the correct word. Is this now the standard requirement for a map? If I have a map embedded 5 divs down, does every parent need a css height value? <!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8">
<meta name="viewport" content="width=device-width,initial-scale=1,maximum-scale=1,user-scalable=no">
<!-- Bootstrap -->
<link rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css">
<!-- ArcGIS JS 4.3 -->
<link rel="stylesheet" href="https://js.arcgis.com/4.3/esri/css/main.css">
<!-- Custom -->
<link rel="stylesheet" href="css/index.css">
<style>
html,
body {
margin: 0;
padding: 0;
height: 100%;
}
</style>
</head>
<body>
<div class="row">
<div class="col-xs-4 col-xs-offset-1">
<div id="mapDiv1"></div>
</div>
<div class="col-xs-4 col-xs-offset-2">
<div id="mapDiv2"></div>
</div>
</div>
<!-- jQuery -->
<script src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.1.1/jquery.js"></script>
<script src="http://code.jquery.com/ui/1.12.1/jquery-ui.min.js" integrity="sha256-VazP97ZCwtekAsvgPBSUwPFKdrwD3unUfSGVYrahUqU=" crossorigin="anonymous"></script>
<!-- Bootstrap -->
<script src="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/js/bootstrap.min.js"></script>
<!-- ArcGIS JS 4.3 -->
<script src="https://js.arcgis.com/4.3/"></script>
<!-- Custom -->
<script src="js/index.js"></script>
<script>
require([
"esri/Map",
"esri/views/MapView",
"dojo/domReady!"
], function(
Map,
MapView
){
var map1 = new Map({
basemap: "streets"
});
var map2 = new Map({
basemap: "streets"
});
var view1 = new MapView({
container: "mapDiv1",
map: map1,
zoom: 4,
center: [15, 65]
});
var view2 = new MapView({
container: "mapDiv2",
map: map2,
zoom: 4,
center: [15, 65]
});
$(document).ready(function(e) {
console.log("document loaded");
});
});
</script>
</body>
</html>
... View more
06-26-2017
11:37 AM
|
0
|
0
|
1883
|
POST
|
I am trying to compare two values, and can't seem to access the next row in a cursor. for i, row in enumerate(cursor): if row[0] == cursor.next()[0] Any ideas?
... View more
05-23-2017
03:59 PM
|
0
|
2
|
3684
|
Online Status |
Offline
|
Date Last Visited |
11-11-2020
02:24 AM
|