Quantcast
Channel: SCN : Blog List - SAP GUI
Viewing all articles
Browse latest Browse all 276

Embed Google Maps into Persons 3.0 flavor

$
0
0

Hi all,

 

i followed Tamas Blog for embeding Google Maps:

 

How to embed Google Maps into a Personas 1.0 / 2.0 flavor?

 

 

As i have no experiance with Personas 1.0 or 2.0, the blog looked some kind of different then what i was expecting for Personas 3.0.

 

personas_google_maps1.png

 

1) Get the API Key from Google

2) Add a HTML Viewer to the Flavor where you want to have the Map (in my case XD03)

3) Script like that:

 

define the variables for

 

city,

plz,

street,

house nr

 

personas_google_maps_script1.png

 

and i did concat them into one variable called address.

 

personas_google_maps_script2.png

After that i did concat a fixed value (var lfix including the API Key) with the var "address". The complete url I did set to the parameter of the HTML Viewer ID called "url". Then use "show()"

 

Add the script to a botton on your flavor or on ScreenEvent "onLoad" of the flavor.

 

That's it !

 

There might be easier ways to do this in Personas 3.0 - if so please let me know.


Viewing all articles
Browse latest Browse all 276

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>