I tried the Internet to answer this question, but basically, I want the code below to do exactly what it does ....
$(function() {
$('#map_canvas').gmap().bind('init', function(ev, map) {
$('#map_canvas').gmap('addMarker', { 'position': '57.7973333,12.0502107', 'bounds': true }).click(function() {
$('#map_canvas').gmap('openInfoWindow', { 'content': '134 Some Street Name, postcode and such' }, this);
});
});
});
</script>
However, this representation of the map should increase, and I want to be able to control it, but keeping it within. I tried using:
$ ('# map_canvas'). gmap ('option', 'zoom', 7);
below, but it does not matter. How can I control the default zoom of a map before a user clicks or drags something?
Thank!
Chimp source
share