I am having a similar issue with the rubber band for zooming.
If i have X-UA set at Edge or IE=10 i get no rubber band in IE (with any document mode) but it is always there for firefox.
I upgraded to IE11 to improve performance from IE9 and now the mouse wheel scrolling zoom in/out is affected.Whether I scroll up/down the map only zooms in, not out.This is not seen with IE9 nor IE10 nor chrome nor firefox.Just IE 11.is there a workaround...?Quick answer would be appreciated.Thanks.
Thanks for taking a look at this. Unfortunately that's a different use case. Try it with the editor widgit. And if that works, try it with a regular graphics layer or featurelayer collection.
You'll notice that all of the samples from the site do not include the cut tool which I found odd. Why hide it from the main site samples?
I submitted the bug fix in that email address. Couple of lines fixes the issue. You'll see where the problem is and how I fix it. It is specifically the editor-all file. (Perhaps elsewhere, not certain.)
Sorry about that...can you post links with errors?
<!DOCTYPE html> <html> <head> <meta http-equiv="Content-Type" content="text/html; charset=utf-8"> <!--The viewport meta tag is used to improve the presentation and behavior of the samples on iOS devices--> <meta name="viewport" content="initial-scale=1, maximum-scale=1,user-scalable=no"> <title>Edit rivers and waterbodies</title> <link rel="stylesheet" href="http://js.arcgis.com/3.8/js/dojo/dijit/themes/claro/claro.css"> <link rel="stylesheet" href="http://js.arcgis.com/3.8/js/esri/css/esri.css" /> <style> html,body{height:100%;width:100%;margin:0;overflow:hidden;} #map{ padding:0; } #header{ font-size: 1.1em; font-family: sans-serif; padding-left: 1em; padding-top:4px; color:#660000; } .templatePicker { border: none; } .dj_ie .infowindow .window .top .right .user .content { position: relative; } .dj_ie .simpleInfoWindow .content {position: relative;} </style> <script src="http://js.arcgis.com/3.8/"></script> <script> var map; require([ "esri/map", "esri/tasks/GeometryService", "esri/toolbars/edit", "esri/layers/ArcGISTiledMapServiceLayer", "esri/layers/FeatureLayer", "esri/symbols/SimpleMarkerSymbol", "esri/symbols/SimpleLineSymbol", "esri/dijit/editing/Editor", "esri/dijit/editing/TemplatePicker", "esri/config", "dojo/i18n!esri/nls/jsapi", "dojo/_base/array", "dojo/parser", "dojo/keys", "dijit/layout/BorderContainer", "dijit/layout/ContentPane", "dojo/domReady!" ], function( Map, GeometryService, Edit, ArcGISTiledMapServiceLayer, FeatureLayer, SimpleMarkerSymbol, SimpleLineSymbol, Editor, TemplatePicker, esriConfig, jsapiBundle, arrayUtils, parser, keys ) { parser.parse(); // snapping is enabled for this sample - change the tooltip to reflect this jsapiBundle.toolbars.draw.start = jsapiBundle.toolbars.draw.start + "<br>Press <b>ALT</b> to enable snapping"; // refer to "Using the Proxy Page" for more information: https://developers.arcgis.com/en/javascript/jshelp/ags_proxy.html esriConfig.defaults.io.proxyUrl = "/proxy"; //This service is for development and testing purposes only. We recommend that you create your own geometry service for use within your applications. esriConfig.defaults.geometryService = new GeometryService("http://tasks.arcgisonline.com/ArcGIS/rest/services/Geometry/GeometryServer"); map = new Map("map", { basemap: "satellite", center: [-96.541, 38.351], zoom: 14, slider: false }); map.on("layers-add-result", initEditor); //add boundaries and place names var labels = new ArcGISTiledMapServiceLayer("http://server.arcgisonline.com/ArcGIS/rest/services/Reference/World_Boundaries_and_Places/MapServer"); map.addLayer(labels); var rivers = new FeatureLayer("http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Hydrography/Watershed173811/FeatureServer/1",{ mode: FeatureLayer.MODE_ONDEMAND, outFields: ['*'] }); var waterbodies = new FeatureLayer("http://sampleserver3.arcgisonline.com/ArcGIS/rest/services/Hydrography/Watershed173811/FeatureServer/0",{ mode: FeatureLayer.MODE_ONDEMAND, outFields: ['*'] }); map.addLayers([waterbodies,rivers]); function initEditor(evt) { var templateLayers = arrayUtils.map(evt.layers, function(result){ return result.layer; }); var templatePicker = new TemplatePicker({ featureLayers: templateLayers, grouping: true, rows: "auto", columns: 3 }, "templateDiv"); templatePicker.startup(); var layers = arrayUtils.map(evt.layers, function(result) { return { featureLayer: result.layer }; }); var settings = { map: map, templatePicker: templatePicker, layerInfos: layers, toolbarVisible: true, createOptions: { polylineDrawTools:[ Editor.CREATE_TOOL_FREEHAND_POLYLINE ], polygonDrawTools: [ Editor.CREATE_TOOL_FREEHAND_POLYGON, Editor.CREATE_TOOL_CIRCLE, Editor.CREATE_TOOL_TRIANGLE, Editor.CREATE_TOOL_RECTANGLE ] }, toolbarOptions: { reshapeVisible: true, cutVisible: true } }; var params = {settings: settings}; var myEditor = new Editor(params,'editorDiv'); //define snapping options var symbol = new SimpleMarkerSymbol( SimpleMarkerSymbol.STYLE_CROSS, 15, new SimpleLineSymbol( SimpleLineSymbol.STYLE_SOLID, new Color([255, 0, 0, 0.5]), 5 ), null ); map.enableSnapping({ snapPointSymbol: symbol, tolerance: 20, snapKey: keys.ALT }); myEditor.startup(); } }); </script> </head> <body class="claro"> <div id="main" data-dojo-type="dijit/layout/BorderContainer" data-dojo-props="design:'headline'" style="height:width:100%;height:100%;"> <div data-dojo-type="dijit/layout/ContentPane" id="header" data-dojo-props="region:'top'"> Edit Hydrography </div> <div data-dojo-type="dijit/layout/ContentPane" data-dojo-props="region:'left'" style="width: 300px;overflow:hidden;"> <div id="templateDiv"></div> <div id="editorDiv"></div> </div> <div data-dojo-type="dijit/layout/ContentPane" id="map" data-dojo-props="region:'center'"></div> </div> </body> </html>
Here's a simple page that creates a polygon and cuts it using the geometry service: http://jsbin.com/UFeCOMUs/1/Works in Chrome and FF on a mac for me.
Sounds good and completely understand. I'll give the former a try by submitting my bug fix for the Cut polygon issue. As of 3.7, it was still broken.
As an aside, I've sent several emails to that address as far back as July about corrections that should be made to the documentation, such as incorrect code snippets or listed return values. However, the errors still persist.
Thanks for the additional info. We try to keep a close eye on this forum, but things slip through the cracks. I'm especially curious about that FF-specific issue. We'll look into that. When you absolutely need an answer, tech support is where you should go. Even if you need to log a bug, support is still the way to go. If that's too much trouble, you can always email js_feedback@esri.com to get our attention.
If that's too much trouble, you can always email js_feedback@esri.com to get our attention.
Thanks for testing and confirming 3.8 fixes this issue.Regarding:Can you elaborate? Have you logged bugs with support?
I have to pull down the SDK/API because there are some bugs I always fix that haven't been fixed yet from ESRI.
@benjaminthe download is not available yet, but you can find the hosted version of 3.8 is already available for testinghttp://js.arcgis.com/3.8/
We're going to wait until after the new year to announce 3.8. As I said previously, please feel free to upgrade your app (in a development or test environment of course...) and test with 3.8.As far as what we changed for 3.8, this is a minor release. We still use Dojo 1.9.1 but did upgrade dgrid, put-selector and xstyle.
Hi Derek.We're a bit nervous of upgrading to 3.8 without seeing the documentation which describes the changes. Are you able to advise whether there is anything in this release which changes existing functionality and potentially cause issues? Does it still use Dojo 1.9.1?If 3.8 fixes the mouse wheel issue with IE11 then I really feel it should be released sooner rather than later.
It's still a good idea to test with 3.8. The version on js.arcgis.com is our final build. We're nearly finished with the docs and are debating whether or not to announce before christmas/new year's or hold it until after the new year.
No release date yet...can you test with 3.8 and confirm that the IE11 scrolling issue is fixed with that version?
... dojo.connect(map, "onMouseWheel", mouseWheelHandler); ... function mouseWheelHandler(evt) { var intDelta = evt.wheelDelta; try { if (intDelta < 0) { map.setLevel(map.getLevel() - 1); } else { map.setLevel(map.getLevel() + 1); } } catch (exp) { console.debug(exp.Description); } }
We're aware of the issue but there isn't a workaround. We have fixed this for the next release of the API (3.8) which will be out in the next two weeks or so.
Signed in members can post, follow updates, and more. New here? Register a free account.
Find useful guides, FAQs, and documents to help you navigate and make the most of Esri Community.