I am using this script below and it works well except that it is displaying my current location and what I want it to do is to display a specified location instead.
Here is the code:
<script type="text/javascript">
$('#basic_map').live("pageshow", function() {
$('#map_canvas').gmap('refresh');
});
$('#basic_map').live("pagecreate", function() {
$('#map_canvas').gmap({'center': '52.897699, -1.155959'}).bind('init', function(evt, map) {
$('#map_canvas').gmap('addMarker', {'position': map.getCenter(), 'animation': google.maps.Animation.DROP }).click(function() {
$('#map_canvas').gmap('openInfoWindow', { 'content': 'The Location!'}, this);
});
});
});
</script>
Try specifying the center of the map as variables, something like this,
Google Geocoding API can be used to get lat and lon, if needed