Quantcast
Channel: SCN: Message List
Viewing all articles
Browse latest Browse all 8623

Re: How to insert a map inside a Vertical Splitter pane

$
0
0

Hi Andreas,

 

Your code works fine for me without using a button

 

oSplitterV.addFirstPaneContent(new sap.ui.core.HTML({content:" <div id='googleMap' style='width:600px;height:400px;'></div>"}));

 

Now I wanted to add a button to this HTML content and tried the below code

 

  oSplitterV.addFirstPaneContent(new sap.ui.core.HTML({content:"<button onclick='geoFindMe()'>Start</button> <div id='googleMap' style='width:600px;height:400px;'></div>"}));

 

This code shows the button but when I click on it nothing happens

Can you let me know what needs to be changed in the code so that geoFindMe() function is called

 

Regards,

Vivek


Viewing all articles
Browse latest Browse all 8623

Trending Articles



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