Initial commit - Typo3 11.5.41
This commit is contained in:
9
typo3conf/ext/ods_osm/Configuration/Backend/Routes.php
Normal file
9
typo3conf/ext/ods_osm/Configuration/Backend/Routes.php
Normal file
@@ -0,0 +1,9 @@
|
||||
<?php
|
||||
|
||||
use Bobosch\OdsOsm\Wizard\Coordinatepicker;
|
||||
return [
|
||||
'coordinatepicker' => [
|
||||
'path' => '/wizard/ods_osm/coordinatepicker',
|
||||
'target' => Coordinatepicker::class . '::mainAction'
|
||||
],
|
||||
];
|
||||
441
typo3conf/ext/ods_osm/Configuration/Flexform/flexform_basic.xml
Normal file
441
typo3conf/ext/ods_osm/Configuration/Flexform/flexform_basic.xml
Normal file
@@ -0,0 +1,441 @@
|
||||
<T3DataStructure>
|
||||
<meta>
|
||||
<langDisable>1</langDisable>
|
||||
</meta>
|
||||
<sheets>
|
||||
<sDEF>
|
||||
<ROOT>
|
||||
<TCEforms>
|
||||
<sheetTitle>LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tt_content.pi_flexform.sheet_sDEF</sheetTitle>
|
||||
</TCEforms>
|
||||
<type>array</type>
|
||||
<el>
|
||||
<marker>
|
||||
<TCEforms>
|
||||
<label>LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tt_content.pi_flexform.marker</label>
|
||||
<description>LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tt_content.pi_flexform.marker.description</description>
|
||||
<config>
|
||||
<type>group</type>
|
||||
<internal_type>db</internal_type>
|
||||
<allowed>*</allowed>
|
||||
<size>5</size>
|
||||
<minitems>0</minitems>
|
||||
<maxitems>9999</maxitems>
|
||||
<autoSizeMax>20</autoSizeMax>
|
||||
</config>
|
||||
</TCEforms>
|
||||
</marker>
|
||||
<cluster>
|
||||
<TCEforms>
|
||||
<label>LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tt_content.pi_flexform.cluster</label>
|
||||
<config>
|
||||
<type>check</type>
|
||||
</config>
|
||||
</TCEforms>
|
||||
</cluster>
|
||||
<cluster_radius>
|
||||
<TCEforms>
|
||||
<label>LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tt_content.pi_flexform.cluster_radius</label>
|
||||
<displayCond>FIELD:cluster:!=:0</displayCond>
|
||||
<config>
|
||||
<type>input</type>
|
||||
<size>5</size>
|
||||
<eval>int</eval>
|
||||
</config>
|
||||
</TCEforms>
|
||||
</cluster_radius>
|
||||
<width>
|
||||
<TCEforms>
|
||||
<label>LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tt_content.pi_flexform.width</label>
|
||||
<config>
|
||||
<type>input</type>
|
||||
<size>5</size>
|
||||
</config>
|
||||
</TCEforms>
|
||||
</width>
|
||||
<height>
|
||||
<TCEforms>
|
||||
<label>LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tt_content.pi_flexform.height</label>
|
||||
<config>
|
||||
<type>input</type>
|
||||
<size>5</size>
|
||||
</config>
|
||||
</TCEforms>
|
||||
</height>
|
||||
<lon>
|
||||
<TCEforms>
|
||||
<label>LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tx_odsosm_lon</label>
|
||||
<config>
|
||||
<type>input</type>
|
||||
<size>11</size>
|
||||
<eval>Bobosch\OdsOsm\Evaluation\LonLat</eval>
|
||||
<fieldControl>
|
||||
<locationMap>
|
||||
<renderType>coordinatepickerWizard</renderType>
|
||||
</locationMap>
|
||||
</fieldControl>
|
||||
</config>
|
||||
</TCEforms>
|
||||
</lon>
|
||||
<lat>
|
||||
<TCEforms>
|
||||
<label>LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tx_odsosm_lat</label>
|
||||
<config>
|
||||
<type>input</type>
|
||||
<size>10</size>
|
||||
<eval>Bobosch\OdsOsm\Evaluation\LonLat</eval>
|
||||
</config>
|
||||
</TCEforms>
|
||||
</lat>
|
||||
<use_coords_only_nomarker>
|
||||
<TCEforms>
|
||||
<label>LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tt_content.pi_flexform.use_coords_only_nomarker</label>
|
||||
<config>
|
||||
<type>check</type>
|
||||
</config>
|
||||
</TCEforms>
|
||||
</use_coords_only_nomarker>
|
||||
<zoom>
|
||||
<TCEforms>
|
||||
<label>LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tt_content.pi_flexform.zoom</label>
|
||||
<config>
|
||||
<type>select</type>
|
||||
<renderType>selectSingle</renderType>
|
||||
<items type="array">
|
||||
<numIndex index="0" type="array">
|
||||
<numIndex index="0"></numIndex>
|
||||
<numIndex index="1"></numIndex>
|
||||
</numIndex>
|
||||
<numIndex index="1" type="array">
|
||||
<numIndex index="0">1</numIndex>
|
||||
<numIndex index="1">1</numIndex>
|
||||
</numIndex>
|
||||
<numIndex index="2" type="array">
|
||||
<numIndex index="0">2</numIndex>
|
||||
<numIndex index="1">2</numIndex>
|
||||
</numIndex>
|
||||
<numIndex index="3" type="array">
|
||||
<numIndex index="0">3</numIndex>
|
||||
<numIndex index="1">3</numIndex>
|
||||
</numIndex>
|
||||
<numIndex index="4" type="array">
|
||||
<numIndex index="0">4</numIndex>
|
||||
<numIndex index="1">4</numIndex>
|
||||
</numIndex>
|
||||
<numIndex index="5" type="array">
|
||||
<numIndex index="0">5</numIndex>
|
||||
<numIndex index="1">5</numIndex>
|
||||
</numIndex>
|
||||
<numIndex index="6" type="array">
|
||||
<numIndex index="0">6</numIndex>
|
||||
<numIndex index="1">6</numIndex>
|
||||
</numIndex>
|
||||
<numIndex index="7" type="array">
|
||||
<numIndex index="0">7</numIndex>
|
||||
<numIndex index="1">7</numIndex>
|
||||
</numIndex>
|
||||
<numIndex index="8" type="array">
|
||||
<numIndex index="0">8</numIndex>
|
||||
<numIndex index="1">8</numIndex>
|
||||
</numIndex>
|
||||
<numIndex index="9" type="array">
|
||||
<numIndex index="0">9</numIndex>
|
||||
<numIndex index="1">9</numIndex>
|
||||
</numIndex>
|
||||
<numIndex index="10" type="array">
|
||||
<numIndex index="0">10</numIndex>
|
||||
<numIndex index="1">10</numIndex>
|
||||
</numIndex>
|
||||
<numIndex index="11" type="array">
|
||||
<numIndex index="0">11</numIndex>
|
||||
<numIndex index="1">11</numIndex>
|
||||
</numIndex>
|
||||
<numIndex index="12" type="array">
|
||||
<numIndex index="0">12</numIndex>
|
||||
<numIndex index="1">12</numIndex>
|
||||
</numIndex>
|
||||
<numIndex index="13" type="array">
|
||||
<numIndex index="0">13</numIndex>
|
||||
<numIndex index="1">13</numIndex>
|
||||
</numIndex>
|
||||
<numIndex index="14" type="array">
|
||||
<numIndex index="0">14</numIndex>
|
||||
<numIndex index="1">14</numIndex>
|
||||
</numIndex>
|
||||
<numIndex index="15" type="array">
|
||||
<numIndex index="0">15</numIndex>
|
||||
<numIndex index="1">15</numIndex>
|
||||
</numIndex>
|
||||
<numIndex index="16" type="array">
|
||||
<numIndex index="0">16</numIndex>
|
||||
<numIndex index="1">16</numIndex>
|
||||
</numIndex>
|
||||
<numIndex index="17" type="array">
|
||||
<numIndex index="0">17</numIndex>
|
||||
<numIndex index="1">17</numIndex>
|
||||
</numIndex>
|
||||
<numIndex index="18" type="array">
|
||||
<numIndex index="0">18</numIndex>
|
||||
<numIndex index="1">18</numIndex>
|
||||
</numIndex>
|
||||
</items>
|
||||
</config>
|
||||
</TCEforms>
|
||||
</zoom>
|
||||
<library>
|
||||
<TCEforms>
|
||||
<label>LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tt_content.pi_flexform.library</label>
|
||||
<onChange>reload</onChange>
|
||||
<config>
|
||||
<type>select</type>
|
||||
<renderType>selectSingle</renderType>
|
||||
<items type="array">
|
||||
<numIndex index="0" type="array">
|
||||
<numIndex index="0"></numIndex>
|
||||
<numIndex index="1"></numIndex>
|
||||
</numIndex>
|
||||
<numIndex index="1" type="array">
|
||||
<numIndex index="0">Leaflet</numIndex>
|
||||
<numIndex index="1">leaflet</numIndex>
|
||||
</numIndex>
|
||||
<numIndex index="2" type="array">
|
||||
<numIndex index="0">OpenLayers</numIndex>
|
||||
<numIndex index="1">openlayers</numIndex>
|
||||
</numIndex>
|
||||
<numIndex index="4" type="array">
|
||||
<numIndex index="0">Static Map</numIndex>
|
||||
<numIndex index="1">staticmap</numIndex>
|
||||
</numIndex>
|
||||
</items>
|
||||
</config>
|
||||
</TCEforms>
|
||||
</library>
|
||||
<base_layer>
|
||||
<TCEforms>
|
||||
<label>LLL:EXT:ods_osm/Resources/Private/Language/locallang.xlf:base_layer</label>
|
||||
<description>Select used map base layer. Multiple layers may be selected here. The first layer will be used initially. All other layers are shown in the given order in the layer switcher (see below).</description>
|
||||
<displayCond>FIELD:library:IN:leaflet,openlayers</displayCond>
|
||||
<config>
|
||||
<type>select</type>
|
||||
<size>3</size>
|
||||
<renderType>selectMultipleSideBySide</renderType>
|
||||
<minitems>0</minitems>
|
||||
<maxitems>99</maxitems>
|
||||
<autoSizeMax>20</autoSizeMax>
|
||||
<foreign_table>tx_odsosm_layer</foreign_table>
|
||||
<foreign_table_where>AND tx_odsosm_layer.hidden=0 AND tx_odsosm_layer.overlay=0 AND (tx_odsosm_layer.tile_url!="") ORDER BY tx_odsosm_layer.sorting</foreign_table_where>
|
||||
</config>
|
||||
</TCEforms>
|
||||
</base_layer>
|
||||
<overlays>
|
||||
<TCEforms>
|
||||
<label>LLL:EXT:ods_osm/Resources/Private/Language/locallang.xlf:overlays</label>
|
||||
<description>LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tt_content.pi_flexform.overlays.description</description>
|
||||
<displayCond>FIELD:library:IN:leaflet,openlayers</displayCond>
|
||||
<config>
|
||||
<type>select</type>
|
||||
<size>3</size>
|
||||
<renderType>selectMultipleSideBySide</renderType>
|
||||
<minitems>0</minitems>
|
||||
<maxitems>99</maxitems>
|
||||
<autoSizeMax>20</autoSizeMax>
|
||||
<foreign_table>tx_odsosm_layer</foreign_table>
|
||||
<foreign_table_where>AND tx_odsosm_layer.hidden=0 AND tx_odsosm_layer.overlay=1 AND (tx_odsosm_layer.tile_url!="") ORDER BY tx_odsosm_layer.sorting</foreign_table_where>
|
||||
</config>
|
||||
</TCEforms>
|
||||
</overlays>
|
||||
<overlays_active>
|
||||
<TCEforms>
|
||||
<label>LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tt_content.pi_flexform.overlays_active</label>
|
||||
<description>LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tt_content.pi_flexform.overlays_active.description</description>
|
||||
<displayCond>
|
||||
<and>
|
||||
<value1>FIELD:show_layerswitcher:!=:0</value1>
|
||||
<value2>FIELD:library:IN:leaflet,openlayers</value2>
|
||||
</and>
|
||||
</displayCond>
|
||||
<config>
|
||||
<type>select</type>
|
||||
<size>3</size>
|
||||
<renderType>selectMultipleSideBySide</renderType>
|
||||
<minitems>0</minitems>
|
||||
<maxitems>99</maxitems>
|
||||
<autoSizeMax>20</autoSizeMax>
|
||||
<foreign_table>tx_odsosm_layer</foreign_table>
|
||||
<foreign_table_where>AND tx_odsosm_layer.hidden=0 AND tx_odsosm_layer.overlay=1 AND (tx_odsosm_layer.tile_url!="") ORDER BY tx_odsosm_layer.sorting</foreign_table_where>
|
||||
</config>
|
||||
</TCEforms>
|
||||
</overlays_active>
|
||||
<staticmap_layer>
|
||||
<TCEforms>
|
||||
<label>LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tt_content.pi_flexform.layer</label>
|
||||
<displayCond>FIELD:library:=:staticmap</displayCond>
|
||||
<config>
|
||||
<type>select</type>
|
||||
<renderType>selectSingle</renderType>
|
||||
<foreign_table>tx_odsosm_layer</foreign_table>
|
||||
<foreign_table_where>AND tx_odsosm_layer.hidden=0 AND tx_odsosm_layer.static_url!="" ORDER BY tx_odsosm_layer.sorting</foreign_table_where>
|
||||
<items type="array">
|
||||
<numIndex index="0" type="array">
|
||||
<numIndex index="0"></numIndex>
|
||||
<numIndex index="1"></numIndex>
|
||||
</numIndex>
|
||||
</items>
|
||||
<eval>required</eval>
|
||||
</config>
|
||||
</TCEforms>
|
||||
</staticmap_layer>
|
||||
<show_popups>
|
||||
<TCEforms>
|
||||
<label>LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tt_content.pi_flexform.show_popups</label>
|
||||
<displayCond>FIELD:library:IN:openlayers,leaflet</displayCond>
|
||||
<onChange>reload</onChange>
|
||||
<config>
|
||||
<type>select</type>
|
||||
<renderType>selectSingle</renderType>
|
||||
<items type="array">
|
||||
<numIndex index="0" type="array">
|
||||
<numIndex index="0">LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tt_content.pi_flexform.show_popups.I.0</numIndex>
|
||||
<numIndex index="1">-1</numIndex>
|
||||
</numIndex>
|
||||
<numIndex index="1" type="array">
|
||||
<numIndex index="0">LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tt_content.pi_flexform.show_popups.I.1</numIndex>
|
||||
<numIndex index="1">1</numIndex>
|
||||
</numIndex>
|
||||
<numIndex index="2" type="array">
|
||||
<numIndex index="0">LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tt_content.pi_flexform.show_popups.I.2</numIndex>
|
||||
<numIndex index="1">2</numIndex>
|
||||
</numIndex>
|
||||
</items>
|
||||
<default>1</default>
|
||||
</config>
|
||||
</TCEforms>
|
||||
</show_popups>
|
||||
<marker_popup_initial>
|
||||
<TCEforms>
|
||||
<label>LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tt_content.pi_flexform.marker_popup_intial</label>
|
||||
<displayCond>FIELD:show_popups:IN:1,3</displayCond>
|
||||
<config>
|
||||
<type>group</type>
|
||||
<internal_type>db</internal_type>
|
||||
<allowed>*</allowed>
|
||||
<size>1</size>
|
||||
<minitems>0</minitems>
|
||||
<maxitems>1</maxitems>
|
||||
</config>
|
||||
</TCEforms>
|
||||
</marker_popup_initial>
|
||||
<show_layerswitcher>
|
||||
<TCEforms>
|
||||
<label>LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tt_content.pi_flexform.show_layerswitcher</label>
|
||||
<displayCond>FIELD:library:IN:leaflet,openlayers</displayCond>
|
||||
<onChange>reload</onChange>
|
||||
<config>
|
||||
<type>select</type>
|
||||
<renderType>selectSingle</renderType>
|
||||
<items type="array">
|
||||
<numIndex index="1" type="array">
|
||||
<numIndex index="0">LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tt_content.pi_flexform.show_layerswitcher.I.0</numIndex>
|
||||
<numIndex index="1">-1</numIndex>
|
||||
</numIndex>
|
||||
<numIndex index="2" type="array">
|
||||
<numIndex index="0">LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tt_content.pi_flexform.show_layerswitcher.I.1</numIndex>
|
||||
<numIndex index="1">1</numIndex>
|
||||
</numIndex>
|
||||
<numIndex index="3" type="array">
|
||||
<numIndex index="0">LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tt_content.pi_flexform.show_layerswitcher.I.2</numIndex>
|
||||
<numIndex index="1">2</numIndex>
|
||||
</numIndex>
|
||||
</items>
|
||||
<default>1</default>
|
||||
</config>
|
||||
</TCEforms>
|
||||
</show_layerswitcher>
|
||||
<layerswitcher_activationMode>
|
||||
<TCEforms>
|
||||
<label>LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tt_content.pi_flexform.layerswitcher_activationMode</label>
|
||||
<displayCond>
|
||||
<and>
|
||||
<value1>FIELD:library:IN:openlayers</value1>
|
||||
<value2>FIELD:show_layerswitcher:!=:0</value2>
|
||||
</and>
|
||||
</displayCond>
|
||||
<config>
|
||||
<type>select</type>
|
||||
<renderType>selectSingle</renderType>
|
||||
<items type="array">
|
||||
<numIndex index="1" type="array">
|
||||
<numIndex index="0">LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tt_content.pi_flexform.show_popups.I.1</numIndex>
|
||||
<numIndex index="1">1</numIndex>
|
||||
</numIndex>
|
||||
<numIndex index="2" type="array">
|
||||
<numIndex index="0">LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tt_content.pi_flexform.show_popups.I.2</numIndex>
|
||||
<numIndex index="1">2</numIndex>
|
||||
</numIndex>
|
||||
</items>
|
||||
<default>2</default>
|
||||
</config>
|
||||
</TCEforms>
|
||||
</layerswitcher_activationMode>
|
||||
<show_fullscreen>
|
||||
<TCEforms>
|
||||
<label>LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tt_content.pi_flexform.show_fullscreen</label>
|
||||
<displayCond>FIELD:library:IN:openlayers,leaflet</displayCond>
|
||||
<config>
|
||||
<type>check</type>
|
||||
<default>1</default>
|
||||
</config>
|
||||
</TCEforms>
|
||||
</show_fullscreen>
|
||||
<show_scalebar>
|
||||
<TCEforms>
|
||||
<label>LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tt_content.pi_flexform.show_scalebar</label>
|
||||
<displayCond>FIELD:library:IN:openlayers,leaflet</displayCond>
|
||||
<config>
|
||||
<type>check</type>
|
||||
</config>
|
||||
</TCEforms>
|
||||
</show_scalebar>
|
||||
<enable_dragging>
|
||||
<TCEforms>
|
||||
<label>LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tt_content.pi_flexform.enable_dragging</label>
|
||||
<displayCond>FIELD:library:=:leaflet</displayCond>
|
||||
<config>
|
||||
<type>check</type>
|
||||
<default>1</default>
|
||||
</config>
|
||||
</TCEforms>
|
||||
</enable_dragging>
|
||||
<enable_scrollwheelzoom>
|
||||
<TCEforms>
|
||||
<label>LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tt_content.pi_flexform.enable_scrollwheelzoom</label>
|
||||
<displayCond>FIELD:library:=:leaflet</displayCond>
|
||||
<config>
|
||||
<type>check</type>
|
||||
<default>1</default>
|
||||
</config>
|
||||
</TCEforms>
|
||||
</enable_scrollwheelzoom>
|
||||
<position>
|
||||
<TCEforms>
|
||||
<label>LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tt_content.pi_flexform.position_show</label>
|
||||
<displayCond>FIELD:library:=:leaflet</displayCond>
|
||||
<config>
|
||||
<type>check</type>
|
||||
</config>
|
||||
</TCEforms>
|
||||
</position>
|
||||
<mouse_position>
|
||||
<TCEforms>
|
||||
<label>LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tt_content.pi_flexform.mouse_position</label>
|
||||
<displayCond>FIELD:library:=:openlayers</displayCond>
|
||||
<config>
|
||||
<type>check</type>
|
||||
</config>
|
||||
</TCEforms>
|
||||
</mouse_position>
|
||||
</el>
|
||||
</ROOT>
|
||||
</sDEF>
|
||||
</sheets>
|
||||
</T3DataStructure>
|
||||
21
typo3conf/ext/ods_osm/Configuration/Icons.php
Normal file
21
typo3conf/ext/ods_osm/Configuration/Icons.php
Normal file
@@ -0,0 +1,21 @@
|
||||
<?php
|
||||
|
||||
declare(strict_types=1);
|
||||
|
||||
use TYPO3\CMS\Core\Imaging\IconProvider\BitmapIconProvider;
|
||||
|
||||
$iconPath = 'EXT:ods_osm/Resources/Public/Icons/';
|
||||
return [
|
||||
'coordinate-picker-wizard' => [
|
||||
'provider' => BitmapIconProvider::class,
|
||||
'source' => $iconPath . 'ce_wiz.png',
|
||||
],
|
||||
'vectordraw-wizard' => [
|
||||
'provider' => BitmapIconProvider::class,
|
||||
'source' => $iconPath . 'vector.png',
|
||||
],
|
||||
'ods_osm' => [
|
||||
'provider' => BitmapIconProvider::class,
|
||||
'source' => $iconPath . 'osm.png',
|
||||
],
|
||||
];
|
||||
16
typo3conf/ext/ods_osm/Configuration/Services.yaml
Normal file
16
typo3conf/ext/ods_osm/Configuration/Services.yaml
Normal file
@@ -0,0 +1,16 @@
|
||||
# PSR-14 EventListener for eventExtendedMultiple() in CalendarController
|
||||
services:
|
||||
_defaults:
|
||||
autowire: true
|
||||
autoconfigure: true
|
||||
public: false
|
||||
|
||||
Bobosch\OdsOsm\:
|
||||
resource: '../Classes/*'
|
||||
|
||||
Bobosch\OdsOsm\EventListener\CalendarizeOdsOsmSqlListener:
|
||||
tags:
|
||||
- name: event.listener
|
||||
identifier: 'calendarizeOdsOsmSql'
|
||||
event: TYPO3\CMS\Core\Database\Event\AlterTableDefinitionStatementsEvent
|
||||
after: 'calendarizeField'
|
||||
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
defined('TYPO3') || die();
|
||||
|
||||
use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
|
||||
|
||||
/* --------------------------------------------------
|
||||
Extend existing tables
|
||||
-------------------------------------------------- */
|
||||
|
||||
$tempColumns = [
|
||||
'tx_odsosm_marker' => [
|
||||
'exclude' => 1,
|
||||
'label' => 'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tt_address_group.tx_odsosm_marker',
|
||||
'config' => [
|
||||
'type' => 'group',
|
||||
'allowed' => 'tx_odsosm_marker',
|
||||
'size' => 1,
|
||||
'minitems' => 0,
|
||||
'maxitems' => 1,
|
||||
'default' => 0,
|
||||
],
|
||||
],
|
||||
];
|
||||
|
||||
ExtensionManagementUtility::addTCAcolumns('fe_groups', $tempColumns);
|
||||
ExtensionManagementUtility::addToAllTCAtypes('fe_groups', 'tx_odsosm_marker');
|
||||
@@ -0,0 +1,40 @@
|
||||
<?php
|
||||
defined('TYPO3') || die();
|
||||
|
||||
use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
|
||||
use Bobosch\OdsOsm\Evaluation\LonLat;
|
||||
|
||||
$tempColumns = [
|
||||
'tx_odsosm_lon' => [ // DECIMAL(9,6)
|
||||
'exclude' => 1,
|
||||
'label' => 'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tx_odsosm_lon',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'size' => 11,
|
||||
'max' => 11,
|
||||
'checkbox' => '0.000000',
|
||||
'eval' => LonLat::class,
|
||||
'fieldControl' => [
|
||||
'locationMap' => [
|
||||
'renderType' => 'coordinatepickerWizard'
|
||||
]
|
||||
],
|
||||
'default' => 0.000000,
|
||||
]
|
||||
],
|
||||
'tx_odsosm_lat' => [ // DECIMAL(8,6)
|
||||
'exclude' => 1,
|
||||
'label' => 'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tx_odsosm_lat',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'size' => 10,
|
||||
'max' => 10,
|
||||
'eval' => LonLat::class,
|
||||
'default' => 0.000000,
|
||||
]
|
||||
],
|
||||
];
|
||||
|
||||
ExtensionManagementUtility::addTCAcolumns('fe_users', $tempColumns);
|
||||
ExtensionManagementUtility::addToAllTCAtypes('fe_users', 'tx_odsosm_lon', '', 'after:country');
|
||||
ExtensionManagementUtility::addFieldsToAllPalettesOfField('fe_users', 'tx_odsosm_lon', 'tx_odsosm_lat');
|
||||
@@ -0,0 +1,26 @@
|
||||
<?php
|
||||
defined('TYPO3') || die();
|
||||
|
||||
use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
|
||||
|
||||
/* --------------------------------------------------
|
||||
Extend existing tables
|
||||
-------------------------------------------------- */
|
||||
|
||||
$tempColumns = [
|
||||
'tx_odsosm_marker' => [
|
||||
'exclude' => 1,
|
||||
'label' => 'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tt_address_group.tx_odsosm_marker',
|
||||
'config' => [
|
||||
'type' => 'group',
|
||||
'allowed' => 'tx_odsosm_marker',
|
||||
'size' => 1,
|
||||
'minitems' => 0,
|
||||
'maxitems' => 1,
|
||||
'default' => 0,
|
||||
]
|
||||
],
|
||||
];
|
||||
|
||||
ExtensionManagementUtility::addTCAcolumns('sys_category', $tempColumns);
|
||||
ExtensionManagementUtility::addToAllTCAtypes('sys_category', 'tx_odsosm_marker');
|
||||
@@ -0,0 +1,16 @@
|
||||
<?php
|
||||
defined('TYPO3') || die();
|
||||
|
||||
use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
|
||||
|
||||
ExtensionManagementUtility::addStaticFile(
|
||||
'ods_osm',
|
||||
'Configuration/TypoScript/',
|
||||
'Template OpenStreetMap'
|
||||
);
|
||||
|
||||
ExtensionManagementUtility::addStaticFile(
|
||||
'ods_osm',
|
||||
'Configuration/TypoScript/Calendarize/',
|
||||
'Template OpenStreetMap for Calendarize'
|
||||
);
|
||||
@@ -0,0 +1,25 @@
|
||||
<?php
|
||||
defined('TYPO3') || die();
|
||||
|
||||
use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
|
||||
|
||||
/* --------------------------------------------------
|
||||
Plugin
|
||||
-------------------------------------------------- */
|
||||
|
||||
ExtensionManagementUtility::addPlugin(
|
||||
[
|
||||
'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tt_content.list_type_pi1',
|
||||
'ods_osm_pi1'
|
||||
],
|
||||
'list_type',
|
||||
'ods_osm'
|
||||
);
|
||||
|
||||
ExtensionManagementUtility::addPiFlexFormValue(
|
||||
'ods_osm_pi1',
|
||||
'FILE:EXT:ods_osm/Configuration/Flexform/flexform_basic.xml'
|
||||
);
|
||||
|
||||
$GLOBALS['TCA']['tt_content']['types']['list']['subtypes_addlist']['ods_osm_pi1'] = 'pi_flexform';
|
||||
$GLOBALS['TCA']['tt_content']['types']['list']['subtypes_excludelist']['ods_osm_pi1'] = 'layout,select_key,pages,recursive';
|
||||
@@ -0,0 +1,43 @@
|
||||
<?php
|
||||
defined('TYPO3') || die();
|
||||
|
||||
use Bobosch\OdsOsm\Evaluation\LonLat;
|
||||
|
||||
use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
|
||||
|
||||
if (ExtensionManagementUtility::isLoaded('calendarize')) {
|
||||
$tempColumns = [
|
||||
'tx_odsosm_lon' => [ // DECIMAL(9,6)
|
||||
'exclude' => 1,
|
||||
'label' => 'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tx_odsosm_lon',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'size' => 11,
|
||||
'max' => 11,
|
||||
'checkbox' => '0.000000',
|
||||
'eval' => LonLat::class,
|
||||
'fieldControl' => [
|
||||
'locationMap' => [
|
||||
'renderType' => 'coordinatepickerWizard'
|
||||
]
|
||||
],
|
||||
'default' => 0.000000,
|
||||
]
|
||||
],
|
||||
'tx_odsosm_lat' => [ // DECIMAL(8,6)
|
||||
'exclude' => 1,
|
||||
'label' => 'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tx_odsosm_lat',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'size' => 10,
|
||||
'max' => 10,
|
||||
'eval' => LonLat::class,
|
||||
'default' => 0.000000,
|
||||
]
|
||||
],
|
||||
];
|
||||
|
||||
ExtensionManagementUtility::addTCAcolumns('tx_calendarize_domain_model_event', $tempColumns);
|
||||
ExtensionManagementUtility::addToAllTCAtypes('tx_calendarize_domain_model_event', 'tx_odsosm_lon', '', 'after:location');
|
||||
ExtensionManagementUtility::addFieldsToAllPalettesOfField('tx_calendarize_domain_model_event', 'tx_odsosm_lon', 'tx_odsosm_lat');
|
||||
}
|
||||
131
typo3conf/ext/ods_osm/Configuration/TCA/tx_odsosm_geocache.php
Normal file
131
typo3conf/ext/ods_osm/Configuration/TCA/tx_odsosm_geocache.php
Normal file
@@ -0,0 +1,131 @@
|
||||
<?php
|
||||
|
||||
use Bobosch\OdsOsm\Evaluation\LonLat;
|
||||
return [
|
||||
'ctrl' => [
|
||||
'title' => 'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tx_odsosm_geocache',
|
||||
'label' => 'zip',
|
||||
'tstamp' => 'tstamp',
|
||||
'crdate' => 'crdate',
|
||||
'default_sortby' => 'ORDER BY zip',
|
||||
'delete' => 'deleted',
|
||||
'rootLevel' => 1,
|
||||
'iconfile' => 'EXT:ods_osm/Resources/Public/Icons/icon_tx_odsosm_geocache.png',
|
||||
],
|
||||
'columns' => [
|
||||
'cache_hit' => [
|
||||
'exclude' => 0,
|
||||
'label' => 'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tx_odsosm_geocache.cache_hit',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'size' => 10,
|
||||
'max' => 10,
|
||||
'eval' => '',
|
||||
]
|
||||
],
|
||||
'service_hit' => [
|
||||
'exclude' => 0,
|
||||
'label' => 'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tx_odsosm_geocache.service_hit',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'size' => 10,
|
||||
'max' => 10,
|
||||
'eval' => '',
|
||||
]
|
||||
],
|
||||
'search_city' => [
|
||||
'exclude' => 0,
|
||||
'label' => 'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tx_odsosm_geocache.city',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'size' => 30,
|
||||
'max' => 255,
|
||||
]
|
||||
],
|
||||
'country' => [
|
||||
'exclude' => 0,
|
||||
'label' => 'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tx_odsosm_geocache.country',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'size' => 2,
|
||||
'max' => 2,
|
||||
]
|
||||
],
|
||||
'state' => [
|
||||
'exclude' => 0,
|
||||
'label' => 'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tx_odsosm_geocache.state',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'size' => 30,
|
||||
'max' => 255,
|
||||
]
|
||||
],
|
||||
'city' => [
|
||||
'exclude' => 0,
|
||||
'label' => 'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tx_odsosm_geocache.city',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'size' => 30,
|
||||
'max' => 255,
|
||||
]
|
||||
],
|
||||
'zip' => [
|
||||
'exclude' => 0,
|
||||
'label' => 'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tx_odsosm_geocache.zip',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'size' => 5,
|
||||
'max' => 5,
|
||||
]
|
||||
],
|
||||
'street' => [
|
||||
'exclude' => 0,
|
||||
'label' => 'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tx_odsosm_geocache.street',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'size' => 30,
|
||||
'max' => 255,
|
||||
]
|
||||
],
|
||||
'housenumber' => [
|
||||
'exclude' => 0,
|
||||
'label' => 'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tx_odsosm_geocache.housenumber',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'size' => 5,
|
||||
'max' => 5,
|
||||
]
|
||||
],
|
||||
'lon' => [
|
||||
'exclude' => 0,
|
||||
'label' => 'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tx_odsosm_geocache.lon',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'size' => 11,
|
||||
'max' => 11,
|
||||
'eval' => LonLat::class,
|
||||
]
|
||||
],
|
||||
'lat' => [
|
||||
'exclude' => 0,
|
||||
'label' => 'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tx_odsosm_geocache.lat',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'size' => 11,
|
||||
'max' => 10,
|
||||
'eval' => LonLat::class,
|
||||
]
|
||||
],
|
||||
],
|
||||
'types' => [
|
||||
'0' => [
|
||||
'showitem' => 'cache_hit,service_hit,search_city,country,state,city,zip,street,housenumber,lon,
|
||||
--palette--;;latinfo'
|
||||
]
|
||||
],
|
||||
'palettes' => [
|
||||
'latinfo' => [
|
||||
'showitem' => 'lat'
|
||||
]
|
||||
]
|
||||
];
|
||||
138
typo3conf/ext/ods_osm/Configuration/TCA/tx_odsosm_layer.php
Normal file
138
typo3conf/ext/ods_osm/Configuration/TCA/tx_odsosm_layer.php
Normal file
@@ -0,0 +1,138 @@
|
||||
<?php
|
||||
return [
|
||||
'ctrl' => [
|
||||
'title' => 'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tx_odsosm_layer',
|
||||
'label' => 'title',
|
||||
'tstamp' => 'tstamp',
|
||||
'crdate' => 'crdate',
|
||||
'sortby' => 'sorting',
|
||||
'delete' => 'deleted',
|
||||
'rootLevel' => 1,
|
||||
'enablecolumns' => [
|
||||
'disabled' => 'hidden',
|
||||
],
|
||||
'iconfile' => 'EXT:ods_osm/Resources/Public/Icons/icon_tx_odsosm_layer.png',
|
||||
],
|
||||
'columns' => [
|
||||
'hidden' => [
|
||||
'exclude' => true,
|
||||
'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.enabled',
|
||||
'config' => [
|
||||
'type' => 'check',
|
||||
'renderType' => 'checkboxToggle',
|
||||
'default' => 0,
|
||||
'items' => [
|
||||
[
|
||||
0 => '',
|
||||
'invertStateDisplay' => true
|
||||
]
|
||||
],
|
||||
]
|
||||
],
|
||||
'title' => [
|
||||
'exclude' => 0,
|
||||
'label' => 'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tx_odsosm_layer.title',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'size' => '30',
|
||||
]
|
||||
],
|
||||
'overlay' => [
|
||||
'exclude' => 0,
|
||||
'label' => 'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tx_odsosm_layer.overlay',
|
||||
'config' => [
|
||||
'type' => 'check',
|
||||
'default' => '0'
|
||||
]
|
||||
],
|
||||
'javascript_include' => [
|
||||
'exclude' => 0,
|
||||
'label' => 'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tx_odsosm_layer.javascript_include',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'size' => '30',
|
||||
'checkbox' => '',
|
||||
]
|
||||
],
|
||||
'javascript_openlayers' => [
|
||||
'exclude' => 0,
|
||||
'label' => 'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tx_odsosm_layer.javascript_openlayers',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'size' => '30',
|
||||
]
|
||||
],
|
||||
'static_url' => [
|
||||
'exclude' => 0,
|
||||
'label' => 'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tx_odsosm_layer.static_url',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'size' => '30',
|
||||
]
|
||||
],
|
||||
'tile_url' => [
|
||||
'exclude' => 0,
|
||||
'label' => 'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tx_odsosm_layer.tile_url',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'size' => '30',
|
||||
]
|
||||
],
|
||||
'tile_https' => [
|
||||
'exclude' => 0,
|
||||
'label' => 'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tx_odsosm_layer.tile_https',
|
||||
'config' => [
|
||||
'type' => 'check',
|
||||
'default' => '0',
|
||||
]
|
||||
],
|
||||
'min_zoom' => [
|
||||
'exclude' => 0,
|
||||
'label' => 'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tx_odsosm_layer.min_zoom',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'size' => '2',
|
||||
'eval' => 'num',
|
||||
]
|
||||
],
|
||||
'max_zoom' => [
|
||||
'exclude' => 0,
|
||||
'label' => 'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tx_odsosm_layer.max_zoom',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'size' => '2',
|
||||
'eval' => 'num',
|
||||
]
|
||||
],
|
||||
'subdomains' => [
|
||||
'exclude' => 0,
|
||||
'label' => 'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tx_odsosm_layer.subdomains',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'size' => '5',
|
||||
]
|
||||
],
|
||||
'attribution' => [
|
||||
'exclude' => 0,
|
||||
'label' => 'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tx_odsosm_layer.attribution',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'size' => '30',
|
||||
]
|
||||
],
|
||||
'homepage' => [
|
||||
'exclude' => 0,
|
||||
'label' => 'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tx_odsosm_layer.homepage',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'size' => '30',
|
||||
]
|
||||
],
|
||||
],
|
||||
'types' => [
|
||||
'0' => ['showitem' => 'hidden, title, overlay, javascript_include, javascript_openlayers, static_url, tile_url, tile_https, min_zoom, max_zoom, subdomains, attribution, homepage']
|
||||
],
|
||||
'palettes' => [
|
||||
'1' => ['showitem' => '']
|
||||
]
|
||||
];
|
||||
118
typo3conf/ext/ods_osm/Configuration/TCA/tx_odsosm_marker.php
Normal file
118
typo3conf/ext/ods_osm/Configuration/TCA/tx_odsosm_marker.php
Normal file
@@ -0,0 +1,118 @@
|
||||
<?php
|
||||
|
||||
use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
|
||||
return [
|
||||
'ctrl' => [
|
||||
'title' => 'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tx_odsosm_marker',
|
||||
'label' => 'title',
|
||||
'tstamp' => 'tstamp',
|
||||
'crdate' => 'crdate',
|
||||
'default_sortby' => 'ORDER BY title',
|
||||
'delete' => 'deleted',
|
||||
'iconfile' => 'EXT:ods_osm/Resources/Public/Icons/icon_tx_odsosm_marker.png',
|
||||
],
|
||||
'columns' => [
|
||||
'title' => [
|
||||
'exclude' => 0,
|
||||
'label' => 'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tx_odsosm_marker.title',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'size' => '30',
|
||||
]
|
||||
],
|
||||
'icon' => [
|
||||
'exclude' => 0,
|
||||
'label' => 'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tx_odsosm_marker.icon',
|
||||
'config' => ExtensionManagementUtility::getFileFieldTCAConfig(
|
||||
'icon',
|
||||
[
|
||||
'maxitems' => 1,
|
||||
'appearance' => [
|
||||
'createNewRelationLinkTitle' => 'LLL:EXT:frontend/Resources/Private/Language/locallang_ttc.xlf:images.addFileReference'
|
||||
],
|
||||
'foreign_match_fields' => [
|
||||
'fieldname' => 'icon',
|
||||
'tablenames' => 'tx_odsosm_marker',
|
||||
],
|
||||
'default' => 0,
|
||||
],
|
||||
$GLOBALS['TYPO3_CONF_VARS']['GFX']['imagefile_ext']
|
||||
)
|
||||
],
|
||||
'size_x' => [
|
||||
'exclude' => 0,
|
||||
'label' => 'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tx_odsosm_marker.size_x',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'size' => 4,
|
||||
'max' => 4,
|
||||
'eval' => 'int',
|
||||
'checkbox' => 0,
|
||||
'range' => [
|
||||
'lower' => 0,
|
||||
'upper' => 9999,
|
||||
],
|
||||
'default' => 0
|
||||
]
|
||||
],
|
||||
'size_y' => [
|
||||
'exclude' => 0,
|
||||
'label' => 'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tx_odsosm_marker.size_y',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'size' => 4,
|
||||
'max' => 4,
|
||||
'eval' => 'int',
|
||||
'checkbox' => 0,
|
||||
'range' => [
|
||||
'lower' => 0,
|
||||
'upper' => 9999,
|
||||
],
|
||||
'default' => 0
|
||||
]
|
||||
],
|
||||
'offset_x' => [
|
||||
'exclude' => 0,
|
||||
'label' => 'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tx_odsosm_marker.offset_x',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'size' => 5,
|
||||
'max' => 5,
|
||||
'eval' => 'int',
|
||||
'checkbox' => 0,
|
||||
'range' => [
|
||||
'lower' => -9999,
|
||||
'upper' => 9999,
|
||||
],
|
||||
'default' => 0
|
||||
]
|
||||
],
|
||||
'offset_y' => [
|
||||
'exclude' => 0,
|
||||
'label' => 'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tx_odsosm_marker.offset_y',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'size' => 5,
|
||||
'max' => 5,
|
||||
'eval' => 'int',
|
||||
'checkbox' => 0,
|
||||
'range' => [
|
||||
'lower' => -9999,
|
||||
'upper' => 9999,
|
||||
],
|
||||
'default' => 0
|
||||
]
|
||||
],
|
||||
],
|
||||
'types' => [
|
||||
'0' => [
|
||||
'showitem' => 'title, icon,
|
||||
--palette--;;sizeinfo'
|
||||
]
|
||||
],
|
||||
'palettes' => [
|
||||
'sizeinfo' => [
|
||||
'showitem' => 'size_x, size_y, offset_x, offset_y'
|
||||
]
|
||||
]
|
||||
];
|
||||
131
typo3conf/ext/ods_osm/Configuration/TCA/tx_odsosm_track.php
Normal file
131
typo3conf/ext/ods_osm/Configuration/TCA/tx_odsosm_track.php
Normal file
@@ -0,0 +1,131 @@
|
||||
<?php
|
||||
|
||||
use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
|
||||
return [
|
||||
'ctrl' => [
|
||||
'title' => 'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tx_odsosm_track',
|
||||
'label' => 'title',
|
||||
'tstamp' => 'tstamp',
|
||||
'crdate' => 'crdate',
|
||||
'default_sortby' => 'ORDER BY title',
|
||||
'delete' => 'deleted',
|
||||
'enablecolumns' => [
|
||||
'disabled' => 'hidden',
|
||||
],
|
||||
'iconfile' => 'EXT:ods_osm/Resources/Public/Icons/icon_tx_odsosm_track.png',
|
||||
],
|
||||
'columns' => [
|
||||
'hidden' => [
|
||||
'exclude' => true,
|
||||
'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.enabled',
|
||||
'config' => [
|
||||
'type' => 'check',
|
||||
'renderType' => 'checkboxToggle',
|
||||
'default' => 0,
|
||||
'items' => [
|
||||
[
|
||||
0 => '',
|
||||
'invertStateDisplay' => true
|
||||
]
|
||||
],
|
||||
]
|
||||
],
|
||||
'title' => [
|
||||
'exclude' => 0,
|
||||
'label' => 'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tx_odsosm_track.title',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'size' => 30,
|
||||
]
|
||||
],
|
||||
'color' => [
|
||||
'exclude' => 0,
|
||||
'label' => 'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tx_odsosm_track.color',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'size' => 10,
|
||||
'max' => 10,
|
||||
'default' => '#37b7ff',
|
||||
'eval' => 'nospace,trim',
|
||||
'renderType' => 'colorpicker',
|
||||
]
|
||||
],
|
||||
'width' => [
|
||||
'exclude' => 0,
|
||||
'label' => 'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tx_odsosm_track.width',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'size' => 3,
|
||||
'max' => 3,
|
||||
'default' => 5,
|
||||
'range' => [
|
||||
'lower' => 1,
|
||||
'upper' => 255
|
||||
],
|
||||
'eval' => 'int',
|
||||
]
|
||||
],
|
||||
'file' => [
|
||||
'exclude' => 0,
|
||||
'label' => 'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tx_odsosm_track.file',
|
||||
'config' => ExtensionManagementUtility::getFileFieldTCAConfig(
|
||||
'file',
|
||||
[
|
||||
'maxitems' => 1,
|
||||
'appearance' => [
|
||||
'createNewRelationLinkTitle' => 'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db:tx_odsosm_track.file.add'
|
||||
],
|
||||
'foreign_match_fields' => [
|
||||
'fieldname' => 'file',
|
||||
'tablenames' => 'tx_odsosm_track',
|
||||
],
|
||||
'default' => 0,
|
||||
],
|
||||
'gpx,kml'
|
||||
)
|
||||
],
|
||||
'min_lon' => [
|
||||
'exclude' => 0,
|
||||
'label' => 'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tx_odsosm_track.min_lon',
|
||||
'config' => [
|
||||
'type' => 'none',
|
||||
'size' => 8,
|
||||
]
|
||||
],
|
||||
'min_lat' => [
|
||||
'exclude' => 0,
|
||||
'label' => 'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tx_odsosm_track.min_lat',
|
||||
'config' => [
|
||||
'type' => 'none',
|
||||
'size' => 8,
|
||||
]
|
||||
],
|
||||
'max_lon' => [
|
||||
'exclude' => 0,
|
||||
'label' => 'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tx_odsosm_track.max_lon',
|
||||
'config' => [
|
||||
'type' => 'none',
|
||||
'size' => 8,
|
||||
]
|
||||
],
|
||||
'max_lat' => [
|
||||
'exclude' => 0,
|
||||
'label' => 'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tx_odsosm_track.max_lat',
|
||||
'config' => [
|
||||
'type' => 'none',
|
||||
'size' => 8,
|
||||
]
|
||||
],
|
||||
],
|
||||
'types' => [
|
||||
'0' => [
|
||||
'showitem' => 'hidden, title, color, width, file,
|
||||
--palette--;;lonlatinfo'
|
||||
]
|
||||
],
|
||||
'palettes' => [
|
||||
'lonlatinfo' => [
|
||||
'showitem' => 'min_lon, min_lat, max_lon, max_lat'
|
||||
]
|
||||
]
|
||||
];
|
||||
165
typo3conf/ext/ods_osm/Configuration/TCA/tx_odsosm_vector.php
Normal file
165
typo3conf/ext/ods_osm/Configuration/TCA/tx_odsosm_vector.php
Normal file
@@ -0,0 +1,165 @@
|
||||
<?php
|
||||
|
||||
use TYPO3\CMS\Core\Utility\ExtensionManagementUtility;
|
||||
return [
|
||||
'ctrl' => [
|
||||
'title' => 'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tx_odsosm_vector',
|
||||
'label' => 'title',
|
||||
'tstamp' => 'tstamp',
|
||||
'crdate' => 'crdate',
|
||||
'default_sortby' => 'ORDER BY title',
|
||||
'delete' => 'deleted',
|
||||
'enablecolumns' => [
|
||||
'disabled' => 'hidden',
|
||||
],
|
||||
'iconfile' => 'EXT:ods_osm/Resources/Public/Icons/icon_tx_odsosm_vector.png',
|
||||
],
|
||||
'columns' => [
|
||||
'hidden' => [
|
||||
'exclude' => true,
|
||||
'label' => 'LLL:EXT:core/Resources/Private/Language/locallang_general.xlf:LGL.enabled',
|
||||
'config' => [
|
||||
'type' => 'check',
|
||||
'renderType' => 'checkboxToggle',
|
||||
'default' => 0,
|
||||
'items' => [
|
||||
[
|
||||
0 => '',
|
||||
'invertStateDisplay' => true
|
||||
]
|
||||
],
|
||||
]
|
||||
],
|
||||
'title' => [
|
||||
'exclude' => 0,
|
||||
'label' => 'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tx_odsosm_vector.title',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'size' => 30,
|
||||
]
|
||||
],
|
||||
'data' => [
|
||||
'exclude' => 0,
|
||||
'label' => 'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tx_odsosm_vector.data',
|
||||
'config' => [
|
||||
'type' => 'text',
|
||||
'rows' => 10,
|
||||
'cols' => 60,
|
||||
'max' => 20000,
|
||||
'fieldControl' => [
|
||||
'vectordrawWizard' => [
|
||||
'renderType' => 'vectordrawWizard'
|
||||
]
|
||||
]
|
||||
]
|
||||
],
|
||||
'color' => [
|
||||
'exclude' => 0,
|
||||
'label' => 'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tx_odsosm_track.color',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'size' => 10,
|
||||
'max' => 10,
|
||||
'default' => '#3388ff',
|
||||
'eval' => 'nospace,trim',
|
||||
'renderType' => 'colorpicker',
|
||||
]
|
||||
],
|
||||
'width' => [
|
||||
'exclude' => 0,
|
||||
'label' => 'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tx_odsosm_track.width',
|
||||
'config' => [
|
||||
'type' => 'input',
|
||||
'size' => 3,
|
||||
'max' => 3,
|
||||
'default' => 3,
|
||||
'range' => [
|
||||
'lower' => 0,
|
||||
'upper' => 255
|
||||
],
|
||||
'eval' => 'int',
|
||||
]
|
||||
],
|
||||
'file' => [
|
||||
'exclude' => 0,
|
||||
'label' => 'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tx_odsosm_vector.file',
|
||||
'config' => ExtensionManagementUtility::getFileFieldTCAConfig(
|
||||
'file',
|
||||
[
|
||||
'maxitems' => 1,
|
||||
'appearance' => [
|
||||
'createNewRelationLinkTitle' => 'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db:tx_odsosm_vector.file.add'
|
||||
],
|
||||
'foreign_match_fields' => [
|
||||
'fieldname' => 'file',
|
||||
'tablenames' => 'tx_odsosm_vector',
|
||||
],
|
||||
'default' => 0,
|
||||
],
|
||||
'geojson,json'
|
||||
)
|
||||
],
|
||||
'properties' => [
|
||||
'exclude' => 0,
|
||||
'label' => 'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tx_odsosm_vector.properties',
|
||||
'config' => [
|
||||
'type' => 'text',
|
||||
'rows' => 5,
|
||||
'cols' => 60,
|
||||
'max' => 2000,
|
||||
]
|
||||
],
|
||||
'properties_from_file' => [
|
||||
'exclude' => true,
|
||||
'label' => 'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tx_odsosm_vector.properties_from_file',
|
||||
'config' => [
|
||||
'type' => 'check',
|
||||
'renderType' => 'checkboxToggle',
|
||||
'default' => 1,
|
||||
]
|
||||
],
|
||||
'min_lon' => [
|
||||
'exclude' => 0,
|
||||
'label' => 'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tx_odsosm_track.min_lon',
|
||||
'config' => [
|
||||
'type' => 'none',
|
||||
'size' => 8,
|
||||
]
|
||||
],
|
||||
'min_lat' => [
|
||||
'exclude' => 0,
|
||||
'label' => 'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tx_odsosm_track.min_lat',
|
||||
'config' => [
|
||||
'type' => 'none',
|
||||
'size' => 8,
|
||||
]
|
||||
],
|
||||
'max_lon' => [
|
||||
'exclude' => 0,
|
||||
'label' => 'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tx_odsosm_track.max_lon',
|
||||
'config' => [
|
||||
'type' => 'none',
|
||||
'size' => 8,
|
||||
]
|
||||
],
|
||||
'max_lat' => [
|
||||
'exclude' => 0,
|
||||
'label' => 'LLL:EXT:ods_osm/Resources/Private/Language/locallang_db.xlf:tx_odsosm_track.max_lat',
|
||||
'config' => [
|
||||
'type' => 'none',
|
||||
'size' => 8,
|
||||
]
|
||||
],
|
||||
],
|
||||
'types' => [
|
||||
'0' => [
|
||||
'showitem' => 'hidden, title, data, color, width, file, properties, properties_from_file,
|
||||
--palette--;;lonlatinfo'
|
||||
]
|
||||
],
|
||||
'palettes' => [
|
||||
'lonlatinfo' => [
|
||||
'showitem' => 'min_lon, min_lat, max_lon, max_lat'
|
||||
]
|
||||
]
|
||||
];
|
||||
@@ -0,0 +1,24 @@
|
||||
plugin.tx_calendarize.view.templateRootPaths.200 = EXT:ods_osm/Resources/Private/Extensions/Calendarize/Templates/
|
||||
|
||||
plugin.tx_odsosm_pi1 {
|
||||
|
||||
marker.tx_calendarize_domain_model_event.data = GP:tx_calendarize_calendar|index
|
||||
|
||||
use_coords_only_nomarker = 1
|
||||
|
||||
width = 480px
|
||||
height = 360px
|
||||
|
||||
zoom = 14
|
||||
|
||||
layer = 1
|
||||
|
||||
show_popups = 1
|
||||
marker_popup_initial = 1
|
||||
|
||||
show_fullscreen = 1
|
||||
|
||||
show_scalebar = 1
|
||||
|
||||
library = leaflet
|
||||
}
|
||||
@@ -0,0 +1,52 @@
|
||||
plugin.tx_odsosm_pi1 {
|
||||
# cat=OpenStreetMap//0010; type=options[none,jquery]; label=JavaScript library
|
||||
JSlibrary = none
|
||||
|
||||
# cat=OpenStreetMap//0021; type=options[Leaflet=leaflet,Openlayers=openlayers,Static=staticmap]; label=Library: Choose between https://leafletjs.com/, http://openlayers.org/ or a static map without javascript.
|
||||
library = leaflet
|
||||
|
||||
# cat=OpenStreetMap//0030; type=boolean; label=External control: Allow control with GET or POST.
|
||||
external_control = 0
|
||||
|
||||
# cat=OpenStreetMap//1000; type=string; label=Width: Width of the map.
|
||||
width = 80vw
|
||||
|
||||
# cat=OpenStreetMap//1010; type=string; label=Height: Height of the map.
|
||||
height = 80vh
|
||||
|
||||
# cat=OpenStreetMap//1020; type=options[1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18]; label=Zoom: Zoom level.
|
||||
zoom = 15
|
||||
|
||||
# cat=OpenStreetMap//1030; type=string; label=Base layer IDs: Show maps with the given IDs. The user can switch between these base layers if the layerswitcher is enabled.
|
||||
layer = 1
|
||||
|
||||
# cat=OpenStreetMap//1040; type=boolean; label=Cluster: Cluster marker at lower map zoom.
|
||||
cluster = 0
|
||||
|
||||
# cat=OpenStreetMap//1041; type=int; label=Cluster radius: Cluster marker in given radius.
|
||||
cluster_radius = 80
|
||||
|
||||
# cat=OpenStreetMap//1050; type=options[Hide map=0,Show map=1]; label=No marker: What to do if no marker is defined.
|
||||
no_marker = 1
|
||||
|
||||
# cat=OpenStreetMap//1060; type=boolean; label=Use coordinates only if no marker exists: Use the default coordinates only if no marker exists.
|
||||
use_coords_only_nomarker = 1
|
||||
|
||||
# cat=OpenStreetMap//1060; type=boolean; label=Position: Get current user postion from browser to center the map.
|
||||
position = 0
|
||||
|
||||
# cat=OpenStreetMap//2000; type=boolean; label=Show mouse position.
|
||||
mouse_position = 0
|
||||
|
||||
# cat=OpenStreetMap//2020; type=options[No=0,Click=1,Hover=2]; label=Show popup: Show popup window with record information.
|
||||
show_popups = 1
|
||||
|
||||
# cat=OpenStreetMap//2030; type=options[No=0,Closed=1,Opened=2]; label=Show layerswitcher: Show layerswitcher which allows the user to hide markers from the same group.
|
||||
show_layerswitcher = 1
|
||||
|
||||
# cat=OpenStreetMap//2030; type=boolean; label=Show Fullscreen: Show Fullscreen Button.
|
||||
show_fullscreen = 1
|
||||
|
||||
# cat=OpenStreetMap//2050; type=boolean; label=Show ScaleBar: Show a scale line on the map.
|
||||
show_scalebar = 0
|
||||
}
|
||||
151
typo3conf/ext/ods_osm/Configuration/TypoScript/setup.typoscript
Normal file
151
typo3conf/ext/ods_osm/Configuration/TypoScript/setup.typoscript
Normal file
@@ -0,0 +1,151 @@
|
||||
plugin.tx_odsosm_pi1 {
|
||||
userFunc = Bobosch\OdsOsm\Controller\PluginController->main
|
||||
|
||||
# Script configuration
|
||||
|
||||
JSlibrary = {$plugin.tx_odsosm_pi1.JSlibrary}
|
||||
library = {$plugin.tx_odsosm_pi1.library}
|
||||
external_control = {$plugin.tx_odsosm_pi1.external_control}
|
||||
|
||||
# Marker
|
||||
|
||||
marker {
|
||||
pages =
|
||||
fe_users =
|
||||
fe_groups =
|
||||
tx_odsosm_track =
|
||||
tx_odsosm_marker =
|
||||
tt_address =
|
||||
sys_category =
|
||||
tx_calendarize_domain_model_event =
|
||||
}
|
||||
|
||||
# see documentation for examples
|
||||
icon {
|
||||
fe_users = IMAGE
|
||||
tt_address = IMAGE
|
||||
}
|
||||
|
||||
popup {
|
||||
tx_odsosm_vector = COA
|
||||
tx_odsosm_vector {
|
||||
10 = TEXT
|
||||
10 {
|
||||
field = title
|
||||
wrap = <h2>|</h2>
|
||||
}
|
||||
}
|
||||
fe_users = COA
|
||||
fe_users {
|
||||
9 = FILES
|
||||
9 {
|
||||
references {
|
||||
table = fe_users
|
||||
fieldName = image
|
||||
}
|
||||
renderObj = IMAGE
|
||||
renderObj {
|
||||
file {
|
||||
import.data = file:current:uid
|
||||
treatIdAsReference = 1
|
||||
width = 150c
|
||||
height = 150c
|
||||
}
|
||||
altText.data = file:current:alternative
|
||||
titleText.data = file:current:title
|
||||
stdWrap.typolink.parameter.data = file:current:link
|
||||
}
|
||||
}
|
||||
10 = TEXT
|
||||
10 {
|
||||
field = name
|
||||
wrap = <h2>|</h2>
|
||||
override = {field:first_name} {field:middle_name} {field:last_name}
|
||||
override.insertData = 1
|
||||
override.if.isFalse.field = name
|
||||
}
|
||||
20 = TEXT
|
||||
20 {
|
||||
field = description
|
||||
htmlSpecialChars = 1
|
||||
}
|
||||
}
|
||||
tt_address = COA
|
||||
tt_address {
|
||||
9 = FILES
|
||||
9 {
|
||||
references {
|
||||
table = tt_address
|
||||
fieldName = image
|
||||
}
|
||||
renderObj = IMAGE
|
||||
renderObj {
|
||||
file {
|
||||
import.data = file:current:uid
|
||||
treatIdAsReference = 1
|
||||
width = 150c
|
||||
height = 150c
|
||||
}
|
||||
altText.data = file:current:alternative
|
||||
titleText.data = file:current:title
|
||||
stdWrap.typolink.parameter.data = file:current:link
|
||||
}
|
||||
}
|
||||
10 = TEXT
|
||||
10 {
|
||||
field = name
|
||||
wrap = <h2>|</h2>
|
||||
}
|
||||
20 = TEXT
|
||||
20 {
|
||||
field = description
|
||||
htmlSpecialChars = 0
|
||||
}
|
||||
}
|
||||
tx_calendarize_domain_model_event = COA
|
||||
tx_calendarize_domain_model_event {
|
||||
10 = TEXT
|
||||
10 {
|
||||
field = location
|
||||
wrap = <h2>|</h2>
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
# Map configuration
|
||||
|
||||
width = {$plugin.tx_odsosm_pi1.width}
|
||||
height = {$plugin.tx_odsosm_pi1.height}
|
||||
zoom = {$plugin.tx_odsosm_pi1.zoom}
|
||||
layer = {$plugin.tx_odsosm_pi1.layer}
|
||||
cluster = {$plugin.tx_odsosm_pi1.cluster}
|
||||
cluster_radius = {$plugin.tx_odsosm_pi1.cluster_radius}
|
||||
no_marker = {$plugin.tx_odsosm_pi1.no_marker}
|
||||
use_coords_only_nomarker = {$plugin.tx_odsosm_pi1.use_coords_only_nomarker}
|
||||
position = {$plugin.tx_odsosm_pi1.position}
|
||||
|
||||
# User controls
|
||||
|
||||
mouse_position = {$plugin.tx_odsosm_pi1.mouse_position}
|
||||
show_popups = {$plugin.tx_odsosm_pi1.show_popups}
|
||||
marker_popup_initial =
|
||||
show_layerswitcher = {$plugin.tx_odsosm_pi1.show_layerswitcher}
|
||||
show_scalebar = {$plugin.tx_odsosm_pi1.show_scalebar}
|
||||
|
||||
show_fullscreen = {$plugin.tx_odsosm_pi1.show_fullscreen}
|
||||
|
||||
# Leaflet only
|
||||
enable_scrollwheelzoom = 1
|
||||
enable_dragging = 1
|
||||
position = 0
|
||||
|
||||
# OpenLayers only
|
||||
layerswitcher_activationMode = 1
|
||||
mouse_position = 0
|
||||
}
|
||||
|
||||
page {
|
||||
includeCSS {
|
||||
ods-osm = EXT:ods_osm/Resources/Public/Css/ods_osm.css
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user