.. _feature-1790618147:
=================================================
Feature: The partner map is configurable per site
=================================================
Description
===========
Everything about the map of the :guilabel:`Partner Map` content element was
fixed in its JavaScript: the centre over Germany, the zoom, how far it zooms in,
the padding around the partners, the tile server and the attribution. A map
with a single partner zoomed in to street level, and a site outside Germany or
with a tile server of its own had to copy and rebuild the script.
* Seven site settings of the set `fgtclb/academic-partners-map`, and
constants of the same names for the static template:
:typoscript:`plugin.tx_academicpartners.map.centerLatitude`,
:typoscript:`centerLongitude`, :typoscript:`zoom`, :typoscript:`maxZoom`,
:typoscript:`padding`, :typoscript:`tileUrl` and :typoscript:`attribution`.
Their defaults are the values the map used so far.
* A tab :guilabel:`Layout` on the content element with the field
:guilabel:`Map width`. :guilabel:`Full width` adds the class
`layout-fullWidth` to the element, for the theme to style.
The extension ships no style for it.
* The map moved from the plugin template into the partial
:file:`Partner/Map.html`, which takes a list of partners or a single
partner, and the map settings. The data processor `partner-data` of the
partner page adds the map settings as :html:`{mapSettings}`, so a page
template can show the location of the partner of the page:
.. code-block:: html