Skip to content

Commit e0ed353

Browse files
authored
Merge pull request #274 from hupe13/master
map height helper page, doubleClickZoom
2 parents ce38cfd + c5b1290 commit e0ed353

File tree

2 files changed

+9
-2
lines changed

2 files changed

+9
-2
lines changed

shortcodes/class.map-shortcode.php

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -85,8 +85,11 @@ protected function getAtts($atts='')
8585
: (array_key_exists('scrollwheel', $atts)
8686
? $scrollwheel
8787
: $settings->get('scroll_wheel_zoom'));
88-
$atts['doubleclickzoom'] = array_key_exists('doubleclickzoom', $atts) ?
89-
$doubleclickzoom : $settings->get('double_click_zoom');
88+
$atts['doubleclickzoom'] = isset($doubleClickZoom)
89+
? $doubleClickZoom
90+
: (array_key_exists('doubleclickzoom', $atts)
91+
? $doubleclickzoom
92+
: $settings->get('double_click_zoom'));
9093

9194
// @deprecated backwards-compatible fit_markers
9295
$atts['fit_markers'] = array_key_exists('fit_markers', $atts) ?

style.css

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -112,3 +112,7 @@ p {
112112
.list-item p {
113113
font-size: 1.2em;
114114
}
115+
116+
.examples .leaflet-container {
117+
height: 250px !important;
118+
}

0 commit comments

Comments
 (0)