Revision: 43481
Author: siebrand
Date: 2008-11-14 09:35:13 +0000 (Fri, 14 Nov 2008)
Log Message:
-----------
Fix 2 XHTML issues and update the example
Modified Paths:
--------------
trunk/extensions/SlippyMap/SlippyMap.class.php
Modified: trunk/extensions/SlippyMap/SlippyMap.class.php
===================================================================
--- trunk/extensions/SlippyMap/SlippyMap.class.php 2008-11-14 09:21:25 UTC
(rev 43480)
+++ trunk/extensions/SlippyMap/SlippyMap.class.php 2008-11-14 09:35:13 UTC
(rev 43481)
@@ -7,7 +7,7 @@
# the OpenLayers javascript, to show a slippy map.
#
# Usage example:
-# <slippymap lat=51.485 lon=-0.15 z=11 w=300 h=200 layer=osmarender
marker=0></slippymap>
+# <slippymap lat="51.485" lon="-0.15" z="11" w="300" h="200" layer=osmarender
marker=0></slippymap>
#
# Tile images are not cached local to the wiki.
# To acheive this (remove the OSM dependency) you might set up a squid proxy,
@@ -290,7 +290,7 @@
$output .= "<div style=\"width: {$width}px;
height:{$height}px; border-style:solid; border-width:1px;
border-color:lightgrey;\" id=\"map\">";
$output .= "<noscript><a
href=\"http://www.openstreetmap.org/?lat=$lat&lon=$lon&zoom=$zoom\" title=\"See
this map on OpenStreetMap.org\" style=\"text-decoration:none\">";
- $output .= "<img src=\"" . $wgMapOfServiceUrl .
"lat=${lat}&long=${lon}&z=${zoom}&w=${width}&h=${height}&format=jpeg\"
width=\"${width}\" height=\"${height}\" border=\"0\"><br/>";
+ $output .= "<img src=\"" . $wgMapOfServiceUrl .
"lat=${lat}&long=${lon}&z=${zoom}&w=${width}&h=${height}&format=jpeg\"
width=\"${width}\" height=\"${height}\" border=\"0\" alt=\"Slippy Map\"><br />";
$output .= '</a></noscript>';
$output .= '</div>';
_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs