Skip to content

Commit

Permalink
Merge pull request #168 from simonschaufi/use-extensionname
Browse files Browse the repository at this point in the history
[BUGFIX] Use extension name instead of extension key
  • Loading branch information
albig authored Mar 27, 2024
2 parents e5e4883 + 29b9b28 commit 639c1ad
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion Classes/Provider/BaseProvider.php
Original file line number Diff line number Diff line change
Expand Up @@ -182,7 +182,7 @@ protected function getHtml()
$popupcode = '';
if ($this->config['library'] == 'openlayers') {
if ($this->config['mouse_position']) {
$mousePosition = '<div id="mouse-position-' . $this->config['id'] . '">' . LocalizationUtility::translate('mouse_position', 'ods_osm') . ':&nbsp;</div>';
$mousePosition = '<div id="mouse-position-' . $this->config['id'] . '">' . LocalizationUtility::translate('mouse_position', 'OdsOsm') . ':&nbsp;</div>';
}
$popupcode = '
<div id="popup" class="ol-popup">
Expand Down
2 changes: 1 addition & 1 deletion Classes/Provider/Leaflet.php
Original file line number Diff line number Diff line change
Expand Up @@ -253,7 +253,7 @@ protected function getMarker($item, $table)

// Add vector file to layerswitcher
$this->layers[1][] = [
'title' => $item['title'] . ' ('. LocalizationUtility::translate('file', 'ods_osm') .')',
'title' => $item['title'] . ' ('. LocalizationUtility::translate('file', 'OdsOsm') .')',
'table' => $table,
'uid' => $item['uid'] . '_file'
];
Expand Down
12 changes: 6 additions & 6 deletions Classes/Provider/Openlayers.php
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ className: 'ods-osm-mouse-position',
baselayergroup = new ol.layer.Group({
name: 'baselayergroup',
title: '" . LocalizationUtility::translate('base_layer', 'ods_osm') . "',
title: '" . LocalizationUtility::translate('base_layer', 'OdsOsm') . "',
layers: [
new ol.layer.Tile({
type: 'base',
Expand All @@ -107,14 +107,14 @@ className: 'ods-osm-mouse-position',
overlaygroup = new ol.layer.Group({
name: 'overlaygroup',
title: '" . LocalizationUtility::translate('overlays', 'ods_osm') . "',
title: '" . LocalizationUtility::translate('overlays', 'OdsOsm') . "',
layers: []
});
const styleCache = {};
clusters = new ol.layer.Vector({
name: 'clusters',
title: '" . LocalizationUtility::translate('openlayers.clusterLayer', 'ods_osm') . "',
title: '" . LocalizationUtility::translate('openlayers.clusterLayer', 'OdsOsm') . "',
source: new ol.source.Cluster({
distance: " . (int)$this->config['cluster_radius'] . ",
minDistance: 10,
Expand Down Expand Up @@ -255,8 +255,8 @@ protected function getLayerSwitcher()
var layerSwitcher = new ol.control.LayerSwitcher({
activationMode: \'' . ($this->config['layerswitcher_activationMode'] == '1' ? 'click' : 'mouseover') . '\',
startActive: ' . ($this->config['show_layerswitcher'] == '2' ? 'true' : 'false') . ',
tipLabel: \'' . LocalizationUtility::translate('openlayers.showLayerList', 'ods_osm') . '\',
collapseTipLabel: \'' . LocalizationUtility::translate('openlayers.hideLayerList', 'ods_osm') . '\',
tipLabel: \'' . LocalizationUtility::translate('openlayers.showLayerList', 'OdsOsm') . '\',
collapseTipLabel: \'' . LocalizationUtility::translate('openlayers.hideLayerList', 'OdsOsm') . '\',
groupSelectStyle: \'children\',
reverse: false
});
Expand Down Expand Up @@ -498,7 +498,7 @@ protected function getMarker($item, $table)

$jsMarker .= 'var ' . $jsElementVar . '_file_properties = ' . json_encode($properties) . ';';
$jsMarker .= 'var ' . $jsElementVar . '_file = new ol.layer.Vector({
title: \'' .$item['title'] . ' ('. LocalizationUtility::translate('file', 'ods_osm') .')\',
title: \'' .$item['title'] . ' ('. LocalizationUtility::translate('file', 'OdsOsm') .')\',
source: new ol.source.Vector({
projection: \'EPSG:3857\',
url: \'' . $filename . '\',
Expand Down

0 comments on commit 639c1ad

Please sign in to comment.