Fix map 3.5
This commit is contained in:
parent
2fc1cf02d2
commit
2ccc4e9b08
1 changed files with 6 additions and 4 deletions
|
|
@ -49,7 +49,7 @@ global $wpdb;
|
|||
position: relative;
|
||||
background-color: white;
|
||||
padding: 10px;
|
||||
width: 350px;
|
||||
width: 280px;
|
||||
float:left; }
|
||||
|
||||
.pin-list {
|
||||
|
|
@ -415,11 +415,13 @@ $(window).resize(function() {
|
|||
];
|
||||
|
||||
if(window.matchMedia("(min-width: 769px)").matches){
|
||||
center = {lat: 46.121, lng: -4.675392};
|
||||
zoom = 6;
|
||||
//center = {lat: 46.121, lng: -4.675392};
|
||||
center = {lat: 47.888, lng: 2.644};
|
||||
//47.888005, 2.644068
|
||||
zoom = 5;
|
||||
google.maps.event.trigger(map, "resize");
|
||||
} else {
|
||||
zoom = 5;
|
||||
zoom = 4;
|
||||
center = {lat: 49.132846, lng: 1.625977};
|
||||
google.maps.event.trigger(map, "resize");
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue