mjtworks / jquery-ui-map

Automatically exported from code.google.com/p/jquery-ui-map
0 stars 0 forks source link

zoom not working for single marker #29

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
Hey, 

At first of all I would like say "Good Job" :)
I write this issue because probably I found a bug. 

I try to add "zoom" param to marker options but this not working. 
Example

<script type="text/javascript">
    $("#map").gmap({'minZoom' : 5, 'zoom' : 7, 'center' : '51.919438,19.145136', 'callback': function(){
        this.addMarker({ 'zoom' : 10, 'position' : '51.437745,15.576811',  'bounds' : true});
    }});
</script>

first line work fine, but second line not react for zoom parameter, so by 
default found marker has maximum zoom.

Could you help me?

Original issue reported on code.google.com by mit...@gmail.com on 8 Jan 2012 at 1:09

GoogleCodeExporter commented 9 years ago
'bounds' : true overrides any zoom set in the constructor.

Original comment by johansalllarsson on 10 Jan 2012 at 2:33

GoogleCodeExporter commented 9 years ago
Hello, 

yes, I know about it but if I have one point on map, script set maximum zoom - 
it is problem, Iw would like set maximum zoom for marker where bounds is true. 
It is posible ?

Original comment by mit...@gmail.com on 10 Jan 2012 at 6:53