[TYPO3-english] wec_map 3.1.3, API

Axel Joensson a.joensson at web.de
Sun Nov 13 03:40:10 CET 2016


Axel Joensson <a.joensson at web.de> wrote:

> Axel Joensson <a.joensson at web.de> wrote:
> 
> > Thx for the hint, after I fixed some referrer issues, the map now shows
> > in the cloned developing installation and I may head for updating the
> > productive website, too. 
> 
> Reading the manual, registering another Static maps key for the secret
> and testing around a bit now even enables showing a static map when JS
> is disabled. Great feature, thanks for that!

just found that changing three lines in
wec_map/map-service/google/class.tx_wecmap_map_google.php 
as shown below turns the extension's output into valid xhmtl 1 code: 

line 295: 
$GLOBALS['TSFE']->additionalHeaderData['wec_map_googleMaps'] = '<script
src="'.htmlspecialchars($apiURL).'" type="text/javascript"></script>'

line 304: 
$htmlContent .= '<script src="'.htmlspecialchars($apiURL).'"
type="text/javascript"></script>';

line 434: 
return '<img class="tx-wecmap-api-staticmap" alt="'.$alt.'" src="' .
htmlspecialchars($url) .'" />';

thx,
Axel


More information about the TYPO3-english mailing list