Hello guys,
Am working on phonegap(jquerymobile) for an android application.I want to implement a map which shows a marker at a particular location and when i click on the marker,it should show a window and a description about the location inside the window..The below code is working when i run the application in mozilla browser.But the content inside the window is not displaying when i run this same code in Eclipse(i mean in android SDK).may i know why is that..Please give me a solution for this...
<script type="text/javascript">
$(function() {
// Also works with: var yourStartLatLng = '59.3426606750, 18.0736160278';
var yourStartLatLng = new google.maps.LatLng(9.988224,76.295749);
$('#map_canvas').gmap({'center': yourStartLatLng});
$('#map_canvas').gmap('addMarker', { 'position': '9.988224,76.295749', 'bounds': true }).click(function() {
$('#map_canvas').gmap('openInfoWindow', { 'content': 'MindHelix Technosol Pvt Ltd,1st floor, Smart Square, Kaloor, Kochi (Cochin), India 682017' }, this);
});
});
</script>
Thanks