aboutsummaryrefslogtreecommitdiffstats
path: root/web/js/map-OpenLayers.js
diff options
context:
space:
mode:
Diffstat (limited to 'web/js/map-OpenLayers.js')
-rw-r--r--web/js/map-OpenLayers.js19
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,
})
})
};