!--a11y-->
Extend the
Context of the GeoServiceView 
The context already contains the context attributes for the start and destination addresses. You now want to add the context attributes and context nodes essential for GeoService applications to the GeoServiceView context.
In the View Designer, switch to the Context tab and extend the existing context structure as shown in the figure below:

Make the following settings for the properties of each context element:
Context Element |
Type |
Properties |
Value |
|
Value node |
|
|
|
Value attribute |
type |
com.sap.tc.webdynpro.clientserver.uielib. graphics.api.WDGeoPosition |
|
Value node |
cardinality |
0..n |
|
Value attribute |
type |
com.sap.ide.webdynpro. uielementdefinitions.GeoObject |
|
Value node |
cardinality |
1..1 |
|
Value attribute |
type |
double |
|
Value attribute |
type |
time |
|
Value node |
|
|
|
Value attribute |
type |
com.sap.tc.webdynpro.clientserver.uielib.graphics.api.WDGeoPosition |
|
Value attribute |
type |
com.sap.tc.webdynpro.clientserver.uielib.graphics.api.WDGeoBorder |
The values of the value attributes geoPos and mapBorder require a Java Native type as the data type. Proceed as follows:
...
1.
To open the
dialog box for selecting the Java Native
Type data type, choose
(in the value column for the property
type).
2. Select the radio button Java Native Type and choose Browse… Another window appears.
3. In the input field for value attribute geoPos enter WDGeoPosition (or, as value for value attribute mapBorder enter WDGeoBorder, respectively). You can now select the WDGeoPosition in the bottom list. Choose OK to confirm.
4.
Choose Finish to confirm.

5.
The value of the value attribute geoObject requires a Simple Type as the data type. Proceed as follows:
...
1.
Use
(in the value column for the property type) to open the dialog box for
selecting the data type Simple
Type.
2. Select the DDIC Simple Type radio button and open the node DtDictionary – com.sap.ide.webdynpro.uielementdefinitions. It contains all data types that refer to specific UI element properties.
3. Select the data type GeoObject and choose Finish to exit the dialog box.
You extended the context of the Web Dynpro application ”Using Geo Services”.
Next step:Extend the Layout of the GeoServiceView
