Author: carlb613
Description:
HTML output under MediaWiki 1.17alpha for GoogleMaps extension
[[mw;Extension:Google Maps]] appears to be breaking under MediaWiki 1.19 in an installation where it used to work under MediaWiki 1.17; the MW 1.19 output seems to be missing a long list of "div" tags and links to "transparent gif" files which were in both the GoogleMaps extension under MW 1.17 and in the MW 1.19 output for another extension, [[mw:Extension:Maps]].
Apparently the two extensions are not identical in functionality (GoogleMaps allowed users to create vector paths for display on the map, Maps did not) so I can't just substitute one for the other.
Affected site is currently MW 1.17 on http://mechelen.mapt.be and MW 1.19 on http://www.mapt.be until I find either a solution or a workaround.
The attached file contains the original (MediaWiki 1.17) output from this extension. That output is substantially longer (with links to a long list of "transparent gif" entries on Google's map site) than the following as the output of the extension under MediaWiki 1.19:
<center>
<div class="thumb tcenter" style="border: 1px solid silver;">
<div style="padding: 3px;">
<div id="map1" style="width: 525px; height: 400px; direction: ltr;">
<noscript>
<img alt="Map" height="400" width="525" src="http://maps.google.com/maps/api/staticmap?center=51.042257%2C4.470749&zoom=13&size=525x400&key=ABQIAAAAEklKXT2gAMY9UkQEFLX_aRTwjjVbwzpqSNUGtxNhX9U-hCtnuxQPDQwcUmPKcWO3w2pAc22WtCGV4A&language=nl&sensor=false&maptype=hybrid" />
</noscript>
<div id="map1_fallback" style="display: none;">
<img alt="Map" src="http://maps.google.com/maps/api/staticmap?center=51.042257%2C4.470749&zoom=13&size=525x400&key=ABQIAAAAEklKXT2gAMY9UkQEFLX_aRTwjjVbwzpqSNUGtxNhX9U-hCtnuxQPDQwcUmPKcWO3w2pAc22WtCGV4A&language=nl&sensor=false&maptype=hybrid" height="400" width="525">
</div>
</div>
<script type="text/javascript">
//
<![CDATA[
function makeMap1() { if (!GBrowserIsCompatible()) { document.getElementById("map1_fallback").style.display = ''; return; } var map = new GMap2(document.getElementById("map1"), { 'mapTypes': [G_NORMAL_MAP, G_HYBRID_MAP, G_PHYSICAL_MAP, G_SATELLITE_MAP] }); GME_DEFAULT_ICON = G_DEFAULT_ICON; map.setCenter(new GLatLng(51.042257, 4.470749), 13, G_HYBRID_MAP); GEvent.addListener(map, 'click', function(overlay, point) { if (overlay) { if (overlay.tabs) { overlay.openInfoWindowTabsHtml(overlay.tabs); } elseif (overlay.title_link || overlay.caption || overlay.maxContent) { overlay.openInfoWindowHtml('
<div class="gmapinfowindow">'+ (overlay.title?('
<b>'+overlay.title_link+'
</b>
<br />'):'')+overlay.caption+'
</div>', { 'maxTitle': overlay.maxContent?overlay.title:undefined, 'maxContent': overlay.maxContent }); if (overlay.maxContent) { map.getInfoWindow().enableMaximize(); } else { map.getInfoWindow().disableMaximize(); } } } }); map.addControl(new GHierarchicalMapTypeControl()); map.addControl(new GSmallMapControl()); GME_DEFAULT_ICON = G_DEFAULT_ICON;} addLoadEvent(makeMap1);
//]]>
</script>
</div>
</div>
</center>
Version: unspecified
Severity: normal
Attached: