I have the following files in Worklight. I want to load the map on the worklight app. It is visible in the \"Design\" view but neither on simulator nor on emulator. Kindly h
Better separate the Javascript
from the index.html
file and then follow the below steps.
You can simply pass the value
on onchange
event like
Then
function initialize(value) { // process the value
var myLatlng1 = new google.maps.LatLng(28.5084805,77.2272778);
var myLatlng2 = new google.maps.LatLng(28.6473116,77.1559846);
var mapOptions = {
zoom: 11,
switch(value){
case "south": center: myLatlng1; break;
case "west": center: myLatlng2; break;
}
}