diff --git a/README.MD b/README.MD index ff44c5e..3f18674 100755 --- a/README.MD +++ b/README.MD @@ -62,7 +62,7 @@ Phoca Maps Plugin is a Joomla! plugin. With Phoca Maps Plugin you can display on ## Version (Joomla! 4.x) -4.0.0Beta2 +4.0.1 diff --git a/content-phocamaps-release.png b/content-phocamaps-release.png index 741c5fb..6df8063 100755 Binary files a/content-phocamaps-release.png and b/content-phocamaps-release.png differ diff --git a/content-phocamaps-release.svg b/content-phocamaps-release.svg new file mode 100644 index 0000000..03b1e85 --- /dev/null +++ b/content-phocamaps-release.svg @@ -0,0 +1,341 @@ + + + + + + + + + + + + + + + + + + + + + + WWW.PHOCA.CZ/NEWS + Phoca Maps ContentPluginversion 4.0.1 +has been released + + + + + + Phoca Maps + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/manifest.xml b/manifest.xml index 3c67d49..e44ebc2 100755 --- a/manifest.xml +++ b/manifest.xml @@ -25,10 +25,10 @@ phocamaps content plugin - 4.0.0Beta2 - https://www.phoca.cz/ + 4.0.1 + https://www.phoca.cz/ - https://github.com/PhocaCz/PhocaMapsPlugin/releases/download/4.0.0Beta2/plg_content_phocamaps_v4.0.0Beta2.zip + https://github.com/PhocaCz/PhocaMapsPlugin/releases/download/4.0.1/plg_content_phocamaps_v4.0.1.zip stable @@ -36,7 +36,7 @@ https://www.phoca.cz/
Updates
- + site diff --git a/phocamaps-48.png b/phocamaps-48.png index 5e3e14e..2cf011e 100755 Binary files a/phocamaps-48.png and b/phocamaps-48.png differ diff --git a/phocamaps-512.png b/phocamaps-512.png index 091bc19..cbce658 100755 Binary files a/phocamaps-512.png and b/phocamaps-512.png differ diff --git a/phocamaps.php b/phocamaps.php index ffe01eb..4d80d38 100755 --- a/phocamaps.php +++ b/phocamaps.php @@ -221,6 +221,14 @@ public function onContentPrepare($context, &$article, &$params, $page = 0) { $mapp->zoom = 2; } +if (is_numeric($mapp->width)) { + $mapp->width = $mapp->width . 'px'; +} + +if (is_numeric($mapp->height)) { + $mapp->height = $mapp->height . 'px'; +} + // Map Langugage @@ -448,12 +456,12 @@ public function onContentPrepare($context, &$article, &$params, $page = 0) { $output .= $map->setTypeControlOpt($mapp->typecontrol, $mapp->typecontrolposition).','."\n"; $output .= $map->setNavigationControlOpt($mapp->zoomcontrol).','."\n"; $output .= $map->setMapOption('scaleControl', $mapp->scalecontrol, TRUE ).','."\n"; - //$output .= $map->setMapOption('scrollwheel', $mapp->scrollwheelzoom).','."\n"; + //$output .= $map->setMapOption('scrollwheel', $mapp->scrollwheelzoom, TRUE).','."\n"; if ($mapp->gesturehandling != '') { $output .= $map->setMapOption('gestureHandling', '"' . $mapp->gesturehandling . '"').','."\n"; } else { - $output .= $map->setMapOption('scrollwheel', $mapp->scrollwheelzoom).','."\n"; + $output .= $map->setMapOption('scrollwheel', $mapp->scrollwheelzoom, TRUE).','."\n"; } $output .= $map->setMapOption('disableDoubleClickZoom', $mapp->disabledoubleclickzoom).','."\n"; diff --git a/phocamaps.png b/phocamaps.png index e3e8296..831d236 100755 Binary files a/phocamaps.png and b/phocamaps.png differ diff --git a/phocamaps.xml b/phocamaps.xml index 4a0db26..c906153 100755 --- a/phocamaps.xml +++ b/phocamaps.xml @@ -2,12 +2,12 @@ plg_content_phocamaps Jan Pavelka (www.phoca.cz) - 26/01/2022 + 04/03/2023 https://www.phoca.cz Jan Pavelka GNU/GPL - 4.0.0Beta2 + 4.0.1 PLG_CONTENT_PHOCAMAPS_DESCRIPTION PhocaMapsPlugin