I’m a new to phonegap and are having a problem opening the native google map application in phonegap. I have the following code
<script type="text/javascript">
$('#btnMap').bind('tap', function(){
var url = 'http://maps.google.com/maps?q=Restaurant&53.9999,6.7899&z=15';
window.location = url;
});
</script>
HTML:
<a class="buttonleft" id="#btnMap">Map</a>
Any help much appreciated.
I think your html element id is the problem.
should be:
Just remove the ‘#’.
I’m assuming you are using jquery.