TypoScript¶
This page is divided into the following sections which are all configurable by using TypoScript:
Plugin settings¶
This section covers all settings, which can be defined in the plugin itself.
Important
Every setting can also be defined by TypoScript: plugin.tx_maps2.settings.[propertyName]
Properties¶
Property | Title | Sheet | Type |
---|---|---|---|
poiCollection | Show poiCollection | General | integer |
categories | Categories | General | string |
mapWidth | Map width | General | string |
mapHeight | Map height | General | string |
allowMapTemplatePath | AllowMap template path | General | string |
zoom | Zoom | Map Options | integer |
mapTypeId | Map type | Map Options | string |
zoomControl | Zoom control | Map Options | boolean |
mapTypeControl | Map type control | Map Options | boolean |
scaleControl | Scale control | Map Options | boolean |
streetViewControl | Street view control | Map Options | boolean |
fullScreenControl | Full Screen control | Map Options | boolean |
activateScrollWheel | Activate Scroll Wheel zoom | Map Options | boolean |
poiCollection¶
- Property
- poiCollection
- Data type
- integer
Description
Define a poiCollection which should be shown on the website
categories¶
Property
categories
Data type
string
Description
If you have not set a fixed poiCollection above you can choose one or more categories here. If you have chosen more than one category some checkboxes will appear below the map in frontend where you can switch the markers of the chosen category on and off.
mapWidth¶
Property
mapWidth
Data type
string
Description
The width of the map.
mapHeight¶
Property
mapHeight
Data type
string
Description
The height of the map.
allowMapTemplatePath¶
Property
allowMapTemplatePath
Data type
string
Description
With this setting you can override the default template from extension configuration. This setting it not part of the plugin configuration and can only be set within the settings-part in TS setup. File prefixes like EXT: are allowed. Please have a look into the extension configuration for a detailed explaination.
zoom¶
Property
zoom
Data type
integer
Description
A zoom value how deep to zoom in into the map.
mapTypeId¶
Property
mapTypeId
Data type
string
Description
Show Roadmap, Earthview or Streetview
zoomControl¶
Property
zoomControl
Data type
boolean
Description
Show a zoom control.
mapTypeControl¶
Property
mapTypeControl
Data type
boolean
Description
Show a map type control.
scaleControl¶
Property
scaleControl
Data type
boolean
Description
Show a scale control.
streetViewControl¶
Property
streetViewControl
Data type
boolean
Description
Show a street view control.
fullScreenControl¶
Property
fullScreenControl
Data type
boolean
Description
Toggle between normal and full screen mode.
activateScrollWheel¶
Property
activateScrollWheel
Data type
boolean
Description
If deactivated you can not zoom via your mouse scroll wheel.
General Settings¶
This section covers all TypoScript settings, which can not be configured by a plugin.
Properties¶
Property | Title | Type |
---|---|---|
infoWindowContentTemplatePath | Info windows template path | string |
markerClusterer | Configure Marker Clusterer | boolean |
infoWindowContentTemplatePath¶
Property
infoWindowContentTemplatePath
Data type
string
Description
The info-window of a marker has its own html template, which you can set to your own destination. This setting it not part of the plugin configuration and can only be set within the settings-part in TS setup. File prefixes like EXT: are allowed. For extension developers: If you have build your own extension and you want to use the maps2 widgets, you have to provide this setting with the exact same name to your extension, too. If not, we will use the default template path of extension configuration in extension manager.
markerClusterer¶
Property
markerClusterer.enable
Data type
boolean
Description
If you have really much PoiCollections defined it would be helpful to group them into one Poi Marker. This special marker contains the amount of markers it just has grouped. The web visitor has to zoom in to ungroup these special markers to see the original markers again.
Important
Please activate this option in Constant Editor, as the Constant was checked at multiple sections in TS setup.
Property
markerClusterer.imagePath
Data type
string
Description
Define the path to the images which have to be used for MarkerClustering. Do not define the full image path, as 1.png, 2.png, 3.png, … will be added automatically. You can prefix imagePath with EXT: is you want.