AnsweredAssumed Answered

Editor window doesn't come up

Question asked by workplayce1 on Feb 9, 2015
Latest reply on Feb 9, 2015 by csergent08

Following is editor window initialization: the editor window does not come up.  Rather the regular infowindow for the map comes up.

The code runs within the context of ArcGIS Online map template.  So the map variable is being passed in.

The code is virtually unchanged from a sample, where the only difference is the map variable is instantiated inside the function (commented out).  Is there some setting inside the map object that needs to be set to enable editor window vs infowindow from appearing?




















                    ], function (

                      esriConfig, Map, SnappingManager, Editor, FeatureLayer, GeometryService,

                      Draw, keys, parser, arrayUtils, i18n

                      ) {






                        //This sample requires a proxy page to handle communications with the ArcGIS Server services. You will need to

                        //replace the url below with the location of a proxy on your machine. See the 'Using the proxy page' help topic

                        //for details on setting up a proxy page.

               = "/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("");


           /* map = new Map("map", {

                basemap: "topo",

                center: [-77.036, 38.891],

                zoom: 16

            }); */


                        map.on("layers-add-result", initEditing);



                        var operationsPointLayer = new FeatureLayer("https://.../FeatureServer/0", {

                            mode: FeatureLayer.MODE_ONDEMAND,

                            outFields: ["*"]







                        map.infoWindow.resize(400, 300);



                        function initEditing(event) {

                            var featureLayerInfos =[{ "layer": operationsPointLayer }], function (layer) {

                                return {

                                    "featureLayer": layer.layer



                            var settings = {

                                map: map,

                                layerInfos: featureLayerInfos


                            var params = {

                                settings: settings


                            var editorWidget = new Editor(params, 'editorDiv');


                            //snapping defaults to Cmd key in Mac & Ctrl in PC.

                            //specify "snapKey" option only if you want a different key combination for snapping