trigger resize for map
This commit is contained in:
parent
33cce09096
commit
5ac1e5e2bf
1 changed files with 7 additions and 0 deletions
|
@ -7675,6 +7675,13 @@ requires
|
|||
});
|
||||
};
|
||||
|
||||
that.triggerResize = function() {
|
||||
Ox.print('---- triggerResize');
|
||||
var center = self.map.getCenter();
|
||||
google.maps.event.trigger(self.map, 'resize');
|
||||
self.map.setCenter(center);
|
||||
}
|
||||
|
||||
that.zoom = function(value) {
|
||||
self.map.setZoom(value);
|
||||
};
|
||||
|
|
Loading…
Reference in a new issue