@@ -45,59 +45,3 @@ CLASS z2ui5_cl_sample_geolocation IMPLEMENTATION.
4545 ENDMETHOD.
4646ENDCLASS.
4747```
48- You can visualize the geolocation with the UI5 Map Container:
49- ``` abap
50- METHOD z2ui5_if_app~main.
51- view = z2ui5_cl_xml_view=>factory( ).
52- client->view_display( view->shell(
53- )->page(
54- title = 'abap2UI5 - Device Capabilities'
55- navbuttonpress = client->_event( val = 'BACK' )
56- shownavbutton = xsdbool( client->get( )-s_draft-id_prev_app_stack IS NOT INITIAL )
57- )->_z2ui5( )->geolocation(
58- finished = client->_event( )
59- longitude = client->_bind_edit( longitude )
60- latitude = client->_bind_edit( latitude )
61- altitude = client->_bind_edit( altitude )
62- altitudeaccuracy = client->_bind_edit( altitudeaccuracy )
63- accuracy = client->_bind_edit( accuracy )
64- speed = client->_bind_edit( speed )
65- )->simple_form( title = 'Geolocation'
66- editable = abap_true
67- )->content( 'form'
68- )->label( 'Longitude'
69- )->input( client->_bind_edit( longitude )
70- )->label( `Latitude`
71- )->input( client->_bind_edit( latitude )
72- )->label( `Altitude`
73- )->input( client->_bind_edit( altitude )
74- )->label( `Accuracy`
75- )->input( client->_bind_edit( accuracy )
76- )->label( `AltitudeAccuracy`
77- )->input( client->_bind_edit( altitudeaccuracy )
78- )->label( `Speed`
79- )->input( client->_bind_edit( speed )
80- )->label( `MapContainer`
81- )->button( text = `Display`
82- press = client->_event( `MAP_CONTAINER_DISPLAY` )
83- )->get_parent( )->get_parent(
84- )->map_container( autoadjustheight = abap_true
85- )->content( ns = `vk`
86- )->container_content(
87- title = `Analytic Map`
88- icon = `sap-icon://geographic-bubble-chart`
89- )->content( ns = `vk`
90- )->analytic_map(
91- initialposition = `9.933573;50;0`
92- initialzoom = `6`
93- )->vos(
94- )->spots( client->_bind( mt_spot )
95- )->spot(
96- position = `{POS}`
97- contentoffset = `{CONTENTOFFSET}`
98- type = `{TYPE}`
99- scale = `{SCALE}`
100- tooltip = `{TOOLTIP}`
101- )->stringify( ) ).
102- ENDMETHOD.
103- ```
0 commit comments