Navigation:  Introduction to WebOffice map widget > Supported Parameters > Callback Function Parameters >

callback_movepoint_mw

Previous pageReturn to chapter overviewNext page

The parameter callback_movepoint_mw specifies a call back function when moving an object. As a response you will get a boolean variable, which indicates whether the localisation was successful or not.

 

The parameter's structure: movePointResult(pointGUID, oPath, succeeded, X, Y, SCALES, COORDSYS)

pointGUID: That's the GUID definded in parameter editkeyvalue (as string value)

oPath: That's the temporary ID definded in parameter edit_temp_oid_mw (as string value). It's NULL, in case the parameter is not set or contains an empty string.

succeeded: Indicates whether the creation of the point was successful (TRUE) or not successful (FALSE).

X: Center point x coordinate or NULL in case no object was edited.

Y: Center point y coordinate or NULL in case no object was edited.

SCALES: Defines a list of the configured scales or NULL in case no scales are configured.

COORDSYS: Defines the coordinate system of the main map service. The coordinate system includes the epsg code (if available), the name of the coordinate system and its custom projection string (WKT). Consider that the custom projection string might have a length of about 700 characters.

 

Note: The methods name movePointResult is just an example as well as the parameter's names.

 

Example:

http://w-vpc-kr-w7-e:8080/WO_10R3_SP2_latestBuild/client_mapwidget/default.jsp?baseURL=http://w-vpc-kr-w7-e:8080/WO_10R3_SP2_latestBuild&project=WebOffice_SampleProject_Doku&width=600&height=400&view=Edit&maptransparency=1.0&activetools=MOVEPOINT&query=othercities&returnkey=CITY_NAME&editlayerid=cities&editkeyfield=CITY_NAME&editkeyvalue=Teststadt88&scale=1000000&callback_movePoint_mw=movePointResult