how to access google map in ios environment -


in worklight hybrid sample application want google map in phone (ios) environment.i using worklight 7.1, jquery mobile 1.4.5

i've done in android environment not able seeing map in iphone.

my js code:

var x=document.getelementbyid("demo");  function getlocation()   {   if(navigator.geolocation) {     navigator.geolocation.getcurrentposition(position);    }   else{x.innerhtml="geolocation not supported browser.";}   } function showposition(position)   {   x.innerhtml="latitude: " + position.coords.latitude +    "<br>longitude: " + position.coords.longitude;     } 

my html:

<!doctype html> <html>         <head>             <meta charset="utf-8">             <title>htmlgeolocation</title>             <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, user-scalable=0">             <link rel="shortcut icon" href="images/favicon.png">             <link rel="apple-touch-icon" href="images/apple-touch-icon.png">             <link rel="stylesheet" href="css/htmlgeolocation.css">             <script type="text/javascript" src="http://maps.google.com/maps/api/js?sensor=false"></script>             <script>window.$ = window.jquery = wljq;</script>         </head>         <body id="content" style="display: none;">             <!--application ui goes here-->             <p id="demo">click button coordinates:</p> <button onclick="getlocation()">try it</button>             <script src="js/initoptions.js"></script>             <script src="js/htmlgeolocation.js"></script>             <script src="js/messages.js"></script>         </body> </html> 

there many examples online demonstrating integration of google maps in web apps, including use worklight client framework.

it unclear worklight version, here links can explore. these provide sample projects review implementation , run them locally.


Comments

Popular posts from this blog

javascript - How to get current YouTube IDs via iMacros? -

c# - Maintaining a program folder in program files out of date? -

emulation - Android map show my location didn't work -