|
POST
|
The first thing I notice is that the order of your dependencies is wrong. "dijit/layout/BorderContainer" is in the wrong place. They must match 1 to 1. Second, in the console, I see the following: "NetworkError: 404 Not Found - http://js.arcgis.com/3.10/js/dojo/agsjs/dijit/TOC.js" It looks like you are pointing the agsjs path to the wrong location in your dojoConfig object. It should be pointing locally, not to http://js.arcgis.com/3.10/js/dojo Hopefully this helps.
... View more
09-10-2014
10:45 AM
|
1
|
9
|
2550
|
|
POST
|
Hi Chris, Try removing the following lines from your layout.css file and let me know if this helps at all.
.notembed{
height:98%;
width:98%;
margin:0 10px;
padding:0;
}
.notembed #header{
padding:4px;
overflow:hidden;
}
... View more
09-09-2014
09:26 AM
|
0
|
1
|
1243
|
|
POST
|
Jeff is right that it is being looked at. There are some 'gotchas' in different device/browser combos which, unfortunately, require their own specific logic. Ideally, there would be events for tap, swipe, drag and hover. There are some fantastic use-cases for each of these. No ETA yet but this enhancement may end up being a part of 4.0 if time is an issue.
... View more
09-02-2014
10:24 AM
|
2
|
2
|
603
|
|
POST
|
Hi Eric, Seeing as this thread is six months old, what feature are you talking about?
... View more
09-02-2014
10:12 AM
|
0
|
0
|
1083
|
|
POST
|
Hi Tim, I looked into how the Measurement widget handles calculating yards without invoking a geometry service. The widget calculates the geodesic length of a line in miles, then converts that result to the proper unit using a relational table of conversion values. For example, there are 1760 yards in a mile, so it multiples the result by 1760 for the display value. If using meters, it will multiply the result by 1609.34 etc. This might not be the answer you are looking for but if you have any other questions, let me know!
... View more
08-26-2014
10:07 AM
|
0
|
1
|
1080
|
|
POST
|
I think it's because you can easily convert feet to yards on the client side so they decided not to add yards to the constants list. I'll double-check the measurement widget though.
... View more
08-26-2014
09:56 AM
|
1
|
3
|
1080
|
|
POST
|
Hi Simon, What is the version number of your custom geometry service? Could you provide a simple sample that shows off these specific issues? Thanks!
... View more
08-22-2014
09:42 AM
|
0
|
3
|
1073
|
|
POST
|
Seeing as this is a Dojo issue at its core, there's not much we can do other than the workarounds suggested in that first thread. We are upgrading to Dojo 1.10.0 in the next release so the problem should be fixed. Also, one of those threads has nothing to do with this bug, not sure why you linked it.
... View more
08-19-2014
08:44 AM
|
0
|
0
|
1482
|
|
POST
|
Thanks for the feedback. I was able to recreate this issue and it is indeed a bug. This will be fixed in the next release.
... View more
08-18-2014
10:06 AM
|
1
|
3
|
1482
|
|
POST
|
Unfortunately, tolerance is not currently adjustable in this context. However, this is a great suggestion. We'll discuss it internally and see if this feature can make the next release.
... View more
08-11-2014
10:30 AM
|
3
|
2
|
2169
|
|
POST
|
Hey Jeff, Just double checking that you don't see an attachment in my previous post (editor_mobile.html.zip ). If not, looks like a bug with GeoNet. Code below:
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8">
<meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no">
<title>Default Editor</title>
<link rel="stylesheet" href="http://js.arcgis.com/3.10/js/dojo/dijit/themes/claro/claro.css">
<link rel="stylesheet" href="http://js.arcgis.com/3.10/js/esri/css/esri.css">
<style>
html, body {
height: 100%;
width: 100%;
margin: 0;
}
body {
background-color: #fff;
overflow: hidden;
font-family: Helvetica, san-serif;
}
#templatePickerPane {
width: 225px;
overflow: hidden;
}
#panelHeader {
background-color: #92A661;
border-bottom: solid 1px #92A860;
color: #FFF;
font-size: 12px;
height: 14px;
line-height: 12px;
margin: 0;
overflow: hidden;
padding: 10px 10px 10px 10px;
}
#map {
margin-right: 5px;
padding: 0;
}
.esriEditor .templatePicker {
padding-bottom: 5px;
padding-top: 5px;
height: 500px;
border-radius: 0px 0px 4px 4px;
border: solid 1px #92A661;
}
</style>
<script src="http://js.arcgis.com/3.10/"></script>
<script>
var map, editorWidget;
require([
"esri/config",
"esri/map",
"esri/SnappingManager",
"esri/dijit/editing/Editor",
"esri/layers/FeatureLayer",
"dojo/has",
"dojo/dom-construct",
"dojo/keys",
"dojo/on",
"dojo/parser",
"dojo/_base/array",
"dojo/i18n!esri/nls/jsapi",
"dijit/layout/BorderContainer",
"dijit/layout/ContentPane",
"dojo/domReady!"
], function (
esriConfig, Map, SnappingManager, Editor, FeatureLayer,
has, domConstruct, keys, on, parser, arrayUtils, i18n
) {
alert(has("touch"));
console.log(has("touch"));
parser.parse();
map = new Map("map", {
basemap: "topo",
center: [-117.198, 34.049],
zoom: 14
});
map.on("layers-add-result", initEditing);
var fLayer = new FeatureLayer("http://sampleserver5.arcgisonline.com/ArcGIS/rest/services/Energy/HSEC/FeatureServer/0", {
mode: FeatureLayer.MODE_ONDEMAND,
outFields: ["*"]
});
fLayer.on("selection-complete", function(graphics){
if(fLayer.getSelectedFeatures().length>0){
if(has('touch')){
map.disableMapNavigation();
}
fLayer.redraw();
}else{
if(has('touch')){
map.enableMapNavigation();
}
}
});
map.addLayers([fLayer]);
map.infoWindow.resize(400, 300);
function initEditing (event) {
if(editorWidget){
editorWidget.destroy();
}
var featureLayerInfos = arrayUtils.map(event.layers, function (layer) {
return {"featureLayer": layer.layer};
});
var settings = {"map" : map, "layerInfos" : featureLayerInfos};
var params = {"settings": settings};
editorWidget = new Editor(params, "editorDiv");
var options = {"snapKey": keys.copyKey};
map.enableSnapping(options);
editorWidget.startup();
}
});
</script>
</head>
<body class="claro">
<div id="mainWindow" data-dojo-type="dijit/layout/BorderContainer" data-dojo-props="design:'headline',gutters:false" style="width:100%; height:100%;">
<div id="map" data-dojo-type="dijit/layout/ContentPane" data-dojo-props="region:'center'">
</div>
<div data-dojo-type="dijit/layout/ContentPane" id="templatePickerPane" data-dojo-props="region:'bottom'" style="height:20%">
<div id="panelHeader">
Default Editor
</div>
<div style="padding:10px;" id="editorDiv">
</div>
</div>
</div>
</body>
</html>
... View more
08-11-2014
10:20 AM
|
0
|
0
|
777
|
|
POST
|
Hey Jeff, Can you provide a specific sample where you are seeing this behavior? I just created a quick sample from scratch and it looks to be working on both ipad and iphone. Sample code has been attached.
... View more
08-08-2014
10:37 AM
|
0
|
0
|
777
|
|
POST
|
This works for me in the sandbox sample:
measurement.on("measure-end", function (evt) {
if (evt.geometry.type === "polygon") {
console.log("Really done.");
measurement.setTool(evt.toolName, false);
}
});
... View more
08-04-2014
08:29 AM
|
0
|
6
|
2648
|
| Title | Kudos | Posted |
|---|---|---|
| 1 | 08-26-2014 09:56 AM | |
| 1 | 09-18-2014 11:50 AM | |
| 1 | 09-19-2014 11:28 AM | |
| 1 | 07-09-2014 01:43 PM | |
| 1 | 07-09-2014 02:05 PM |
| Online Status |
Offline
|
| Date Last Visited |
08-14-2024
05:31 PM
|