"Press down effect" on map icons.
authorphilipp <philipp@7aebc617-e5e2-0310-91dc-80fb5f6d2477>
Thu, 14 Nov 2013 21:27:15 +0000 (21:27 +0000)
committerphilipp <philipp@7aebc617-e5e2-0310-91dc-80fb5f6d2477>
Thu, 14 Nov 2013 21:27:15 +0000 (21:27 +0000)
git-svn-id: http://www.winterrodeln.org/svn/servermediawiki/mediawiki_extensions/wrmap/trunk@1805 7aebc617-e5e2-0310-91dc-80fb5f6d2477

wrmap.js

index 2ed6de837b95b9db930185801db13e4a273ccfd3..ae02ab2b1385cd91819cad8b81a0e65aa2301bb0 100644 (file)
--- a/wrmap.js
+++ b/wrmap.js
@@ -193,8 +193,14 @@ function init_wrmap(i, jq_map) {
                                                new OpenLayers.Rule({
                                                        filter: filter_point_sledrun,
                                                        symbolizer: {
                                                new OpenLayers.Rule({
                                                        filter: filter_point_sledrun,
                                                        symbolizer: {
-                                                               externalGraphic: '/vorlagen/bahnzustand${getCondition}nh.png'
+                                                               externalGraphic: '/vorlagen/bahnzustand${getCondition}nh.png',
+                                                               backgroundGraphic: false,
+                                                               graphicXOffset: -6,
+                                                               graphicYOffset: -6
                                                        }
                                                        }
+                                               }),
+                                               new OpenLayers.Rule({
+                                                       elseFilter: true
                                                })
                                        ]
                                })
                                                })
                                        ]
                                })