The title is now shown with spaces instead of underscores and the label position...
authorphilipp <philipp@7aebc617-e5e2-0310-91dc-80fb5f6d2477>
Mon, 10 Dec 2012 22:11:26 +0000 (22:11 +0000)
committerphilipp <philipp@7aebc617-e5e2-0310-91dc-80fb5f6d2477>
Mon, 10 Dec 2012 22:11:26 +0000 (22:11 +0000)
git-svn-id: http://www.winterrodeln.org/svn/servermediawiki/trunk/extensions/wrmap@1229 7aebc617-e5e2-0310-91dc-80fb5f6d2477

wrmap.body.php
wrmap.js

index e71b1eacaf81d8ba34c97565e0d714546339733c..546a778507e4d142d5b894526eecd359e4831155 100644 (file)
@@ -32,7 +32,8 @@ class WrMap {
                        $lat = $sledrun['position_latitude'];
                        $lon = $sledrun['position_longitude'];
                        if (!$lat || !$lon) continue;
-                       $output .= "<p data-lon=\"$lon\" data-lat=\"$lat\" data-title=\"{$sledrun['page_title']}\" />\n";
+                       $title = Title::newFromText($sledrun['page_title']);
+                       $output .= "<p data-lon=\"$lon\" data-lat=\"$lat\" data-title=\"{$title->getText()}\" data-url=\"{$title->getLocalUrl()}\" />\n";
                }
                $output .= "</div>\n";
                
index 42b71a912bac1ba0d8f4ba71983aa5b34b8aef4b..d269823bfbeef6081f881b87dd078001c5111cf9 100644 (file)
--- a/wrmap.js
+++ b/wrmap.js
@@ -35,20 +35,21 @@ function init_wrmap(i, jq_map) {
                                externalGraphic: "/vorlagen/gmap_rodelbahn_c.png",
                                graphicWidth: 17,
                                graphicHeight: 17,
-                               graphicXOffset: 0,
-                               graphicYOffset: 0,
+                               graphicXOffset: -8,
+                               graphicYOffset: -8,
                                graphicZIndex: 11,
                                backgroundGraphic: "/vorlagen/gmap_rodelbahn_c_s.png",
                                backgroundWidth: 23,
                                backgroundHeight: 23,
-                               backgroundXOffset: 0,
-                               backgroundYOffset: 0,
+                               backgroundXOffset: -8,
+                               backgroundYOffset: -8,
                                backgroundZIndex: 12,
                                title: "${label}"
                        }),
                        "highlight": new OpenLayers.Style({
                                label: "${label}",
                                labelOutlineColor: "white",
+                               labelYOffset: 12,
                                fontWeight: "bold"
                        })