+ var defaultStyle = new OpenLayers.Style({
+ externalGraphic: this.Settings.MARKER_ICON,
+ graphicHeight: "${height}"
+ }, {
+ context: {
+ height: function(feature) {
+ var defaultHeight = SYP.Settings.MARKER_ICON_HEIGHT || 32;
+ var increase = 4 * (feature.attributes.count - 1);
+ return Math.min(defaultHeight + increase, 50);
+ }
+ }
+ });
+ var selectStyle = new OpenLayers.Style({
+ externalGraphic: this.Settings.MARKER_SELECT_ICON,
+ graphicHeight: this.Settings.MARKER_SELECT_ICON_HEIGHT || 32
+ });