Template
With EXT:maps2 version 10.0.0 we have remove PoiCollection- and EditPoiCollection ViewHelper. This part will explain how to change your template to use the new implementation.
PoiCollection
Add static TS template Maps2 Default
and one of
the Maps2 for Google Maps
or Maps2 for Open Street Map
templates to the page where your extension/plugin belongs to, as far as not
already done in root page.
In case of Maps2 for Google Maps
please check, if following
TS constant is set:
plugin.tx_maps2.view.googleMapsJavaScriptApiKey
Add a further entry for maps2
to partial
configuration of your
extension, so that fluid can find our new partials:
plugin.tx_myext.view.partialRootPaths {
0 = EXT:my_ext/Resources/Private/Partials/
1 = EXT:maps2/Resources/Private/Partials/
}
Replace old maps2:
ViewHelper in templates of your
extension:
<maps2:widget.poiCollection poiCollection="{location.txMaps2Uid}" override="{settings: {mapWidth: '100%', mapHeight: '300', zoom: '14'}}" />
with following HTML:
<f:render partial="Maps2/PoiCollection"
section="showMap"
arguments="{poiCollection: location.txMaps2Uid, override: {settings: {mapWidth: '100%', mapHeight: '300', zoom: '14'}}}" />
EditPoiCollection
Add static TS template Maps2 Default
and one of the
Maps2 for Google Maps
or Maps2 for Open Street Map
templates
to the page where your extension/plugin belongs to, as far as not already done
in root page.
In case of Maps2 for Google Maps
please check, if following
TS constant is set:
plugin.tx_maps2.view.googleMapsJavaScriptApiKey
Add a further entry for maps2
to partial
configuration of your
extension, so that fluid can find our new partials:
plugin.tx_myext.view.partialRootPaths {
0 = EXT:my_ext/Resources/Private/Partials/
1 = EXT:maps2/Resources/Private/Partials/
}
Replace old maps2:
ViewHelper in templates of your
extension:
<maps2:widget.editPoi property="txMaps2Uid"
title="{company.company}"
poiCollection="{company.txMaps2Uid}"
override="{settings: {mapWidth: '100%', mapHeight: '300'}}" />
with following html:
<f:render partial="Maps2/EditPoiCollection"
section="editMap"
arguments="{poiCollection: company.txMaps2Uid, property: 'txMaps2Uid', title: company.company, override: {settings: {mapWidth: '100%', mapHeight: '300', zoom: '14'}}}" />