[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [TYPO3-english] wec_map 3.1.3, API



Axel Joensson <[email protected]> wrote:

> Axel Joensson <[email protected]> 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
_______________________________________________
TYPO3-english mailing list
[email protected]
http://lists.typo3.org/cgi-bin/mailman/listinfo/typo3-english