M.App Enterprise Discussions

Discuss topics with other M.App Enterprise Product pioneers and experts to get the most out of it.
Showing results for 
Search instead for 
Do you mean 
Reply
Occasional Contributor
Posts: 9
Registered: ‎09-17-2019

zoom problem where edite geometry point

[ Edited ]

i have desktop application to move geometry point i use this action 

 

SC.digitize('assets', {commands: ['MODIFY'], startOnLoad: 'MODIFY'}, [{FORM.asset_id}]).

 

the problem is when i click this actoin and go to move point the screen zoom out to all points and there color changing to green supposed to Only the selected point should change and zoom to it.this problem disappears when I edite on some points and appear again not stable

Technical Evangelist
Posts: 1,408
Registered: ‎09-11-2015

Re: zoom problem where edite geometry point

Hi Omar,

 

Could it be that the feature IDs is not properly handed over to the script. Please check this sample editing custom script, together with related form action:

 

 function MyDigitize(IdList,Actions){	
    SC.Map.setMapScale(2000).done(function(){
        SC.digitize(
    	'assets',
      {
        commands: Actions,
        startOnLoad: 'MODIFY'
      },
      IdList
      );
    })
};
<FormAction name="EditGeometry" editable="true" visible="true"
 action="SCRIPT[MyDigitize([{FORM.asset_id}],['MODIFY'])]" submit="true" />
Jan Neumann
Post Sales Engineer Web Applications
Hexagon Geospatial

Technical Evangelist
Posts: 566
Registered: ‎09-11-2015

Re: zoom problem where edite geometry point

I came accross this issue recently. I'll investigate it a bit more and possible report the bug.

 

Pavel

Occasional Contributor
Posts: 9
Registered: ‎09-17-2019

Re: zoom problem where edite geometry point

[ Edited ]

I implemented this solution and try to decreas mapscale and there is no change. zoom out and active to all fetures

Occasional Contributor
Posts: 9
Registered: ‎09-17-2019

Re: zoom problem where edite geometry point

[ Edited ]

Are there any solutions currently???