Navigation:  Introduction to WebOffice map widget > Supported Parameters > Tool Parameters > activetools >

LOCATION

Previous pageReturn to chapter overviewNext page

The parameter activetools=LOCATION will display the geolocation tool. This tool will display the current location of the operating device. The current location is marked in the map, a semitransparent circle shape will display the precision of the location information.

 

Optional: By adding additionally the parameter callback_location_mw to the WebOffice map widget call, it is possible to get further information of the geolocation result in a callback function.

 

Note: In order to work properly the browser must support and allow using the browser geolocation API. For getting acceptable precision the GPS module of the device must be activated and providing acceptable precision. If a precision threshold specified in WebOffice map widget itself is exceeded, then the geolocation tool will not provide the current location and an error message will be displayed.

Note: When working with different coordinate systems than WGS84 please consider to set the right transformation for a correct display

at the Geolocation tool and

on the main map service in the MXD.

Note: In order to get a more precise location, the geolocation tool can be used with a so-called polling mechanism.

 

If the position should be shown at a certain scale, please activate the Geolocation tool in the project configuration and set the initial scale.

 

Configuration of an initial scale at the geolocation tool

Configuration of an initial scale at the geolocation tool

 

max_accuracy_mw

The parameter max_accuracy_mw defines the inaccuracy which is accepted to zoom to results when using the location tool. Use values in meters. (Default is set to 250 meters.)

 

Location tool

Location tool

 

Precision circle & Location marker

Precision circle & Location marker

 

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&maptransparency=1.0&max_accuracy_mw=500&activetools=LOCATION