diff options
author | Matthew Somerville <matthew@mysociety.org> | 2012-01-12 17:38:41 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2012-01-12 17:49:16 +0000 |
commit | 07e8d5d7a68756ebed5e65fb55bed46fb1526b22 (patch) | |
tree | 190fd126b06163f16c97f38c4f9e35b6ed4b22f7 /web/js/map-OpenLayers.js | |
parent | e9ed87041e8c99cf069396cf2f452f1e1c7cd54f (diff) |
New logo and pins.
Diffstat (limited to 'web/js/map-OpenLayers.js')
-rw-r--r-- | web/js/map-OpenLayers.js | 19 |
1 files changed, 13 insertions, 6 deletions
diff --git a/web/js/map-OpenLayers.js b/web/js/map-OpenLayers.js index 2a67eb811..1ddad2fbb 100644 --- a/web/js/map-OpenLayers.js +++ b/web/js/map-OpenLayers.js @@ -35,7 +35,7 @@ function fms_markers_list(pins, transform) { var marker = new OpenLayers.Feature.Vector(loc, { type: cols[pin[2]], id: pin[3], - title: pin[4] + title: pin[4] || '' }); markers.push( marker ); } @@ -61,13 +61,20 @@ function fixmystreet_onload() { var pin_layer_options = { styleMap: new OpenLayers.StyleMap({ 'default': new OpenLayers.Style({ - externalGraphic: "/i/pin${type}.gif", + externalGraphic: "/i/pin${type}.png", graphicTitle: "${title}", - graphicWidth: 32, - graphicHeight: 59, + graphicWidth: 44, + graphicHeight: 58, graphicOpacity: 1, - graphicXOffset: -2, - graphicYOffset: -59 + graphicXOffset: -22, + graphicYOffset: -58, + backgroundGraphic: "/i/pin-shadow.png", + backgroundWidth: 50, + backgroundHeight: 19, + backgroundXOffset: -7, + backgroundYOffset: -19 + //graphicZIndex: 11, + //backgroundGraphicZIndex: 10, }) }) }; |