[Lada-commits] [PATCH] Re-Styled the markers in the map: Increased icon-size of selected-marker to 15px, added colored labels to the markers showing the bezeichnung of the location
Wald Commits
scm-commit at wald.intevation.org
Tue Jul 21 12:05:28 CEST 2015
# HG changeset patch
# User Dustin Demuth <dustin at intevation.de>
# Date 1437473119 -7200
# Node ID 729bfea7e8b1c1c9fac43b993eb6a85a45dfc0cf
# Parent 545b8913601d72b0e1632d26c3bd7167fba68552
Re-Styled the markers in the map: Increased icon-size of selected-marker to 15px, added colored labels to the markers showing the bezeichnung of the location
diff -r 545b8913601d -r 729bfea7e8b1 app/view/panel/Map.js
--- a/app/view/panel/Map.js Fri Jul 17 15:44:51 2015 +0200
+++ b/app/view/panel/Map.js Tue Jul 21 12:05:19 2015 +0200
@@ -75,7 +75,8 @@
this.locationStore.getAt(i).get('latitude')
),
{
- id: this.locationStore.getAt(i).get('id')
+ id: this.locationStore.getAt(i).get('id'),
+ bez: this.locationStore.getAt(i).get('bezeichnung')
}
));
}
@@ -84,10 +85,19 @@
'default': new OpenLayers.Style(OpenLayers.Util.applyDefaults({
externalGraphic: 'resources/lib/OpenLayers/img/marker-green.png',
graphicOpacity: 1,
- pointRadius: 10
+ pointRadius: 10,
+ label: '${bez}',
+ labelAlign: 'rt',
+ fontColor: 'green',
+ fontWeight: 'bold'
}, OpenLayers.Feature.Vector.style['default'])),
'select': new OpenLayers.Style({
- externalGraphic: 'resources/lib/OpenLayers/img/marker-blue.png'
+ externalGraphic: 'resources/lib/OpenLayers/img/marker-blue.png',
+ pointRadius: 15,
+ label: '${bez}',
+ labelAlign: 'rt',
+ fontColor: 'blue',
+ fontWeight: 'bold'
})
})
});
More information about the Lada-commits
mailing list