pradipsukale / jquery-ui-map

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

Need method to reset bounds #48

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
What steps will reproduce the problem?
1. I initialize a map and add some markers with 'bounds': true
2. Then I remove the markers with $('#map_canvas').gmap('clear', 'markers') 
but keep the map to save initialization 
3. Then I add some other new markers with 'bounds': true
4. When I refresh the map $('#map_canvas').gmap( 'refresh' ); I get a map 
fitting both the new and old (removed) markers.

What is the expected output? What do you see instead?
I tried with a $('#map_canvas').gmap('clear', 'bounds') in step 2 but that left 
me with an unresponsive map.

What version of the product are you using? On what operating system?
3.0-rc1 used with jQuery Mobile on Android.

Please provide any additional information below.

Original issue reported on code.google.com by fambjorn...@gmail.com on 29 Apr 2012 at 9:24

GoogleCodeExporter commented 8 years ago
any workaround?

Original comment by K2xL....@gmail.com on 14 Jun 2013 at 5:28