AnsweredAssumed Answered

Cant move point on touch device

Question asked by jeff.pace on Aug 8, 2014
Latest reply on Aug 11, 2014 by JUihlein-esristaff

Using javascript api 3.10 (tried 3.9 also).  Everything works on desktop.  but i cant seem to Move a point in the editor widget.

 

I had this working, and I am not sure if an iOS update broke it or what.  Its impossible to debug on ipads.

 

So I select a point by tapping it.  It selects fine.  If i try to drag it, the map pans.  IF i tap hold, i get a magnifying window.

 

So i

 

          fLayer.on("selection-complete", lang.hitch(this, function(graphics){
                   //  alert('selection-complete');
                 //    console.dir(graphics);
                        if(fLayer.getSelectedFeatures().length>0){
  if(has('touch')){
  // alert('selection complete');
                            map.disableMapNavigation();
  // alert('nav disabled');
  }
                            registry.byId("EditContainer").selectChild(registry.byId("editAttributePane"));
                            fLayer.redraw();
                        }else{
  if(has('touch')){
  map.enableMapNavigation();
  // alert('nav enabled');
  }
                            registry.byId("EditContainer").selectChild(registry.byId("editToolPane"));
                        }
                    }));

 

To disable mapnav on touch if a point is selected.

 

But if i try to move it, nothing happens.

 

anybody?

 

Jonathan Uihlein

Outcomes