Opened 8 years ago

Closed 6 years ago

#292 closed enhancement (fixed)

add print encoder for Markers layer

Reported by: bartvde Owned by: bartvde
Priority: major Milestone: 1.1
Component: Version: trunk
Keywords: Cc:
State: Commit


Something like:

            "Markers": function(layer) {
                var features = [];
                for (var i=0, len=layer.markers.length; i<len; i++) {
                    var marker = layer.markers[i];
                    var geometry = new OpenLayers.Geometry.Point(marker.lonlat.lon,;
                    var style = new OpenLayers.Style({externalGraphic: marker.icon.url,
                        graphicWidth: marker.icon.size.w, graphicHeight: marker.icon.size.h,
                        graphicXOffset: marker.icon.offset.x, graphicYOffset: marker.icon.offset.y});
                    var feature = new OpenLayers.Feature.Vector(geometry, {}, style);
                var vector = new OpenLayers.Layer.Vector(;
                return, vector);

Attachments (1)

geoext-292.patch (10.8 KB) - added by bartvde 6 years ago.

Download all attachments as: .zip

Change History (6)

comment:1 Changed 7 years ago by bartvde

  • Owner set to bartvde
  • Status changed from new to assigned

comment:2 Changed 7 years ago by ahocevar

  • Milestone changed from 1.0 to 1.1

Bumping to 1.1. Bart, if you manage to get this ready for review today, you can set the milestone back to 1.0

Changed 6 years ago by bartvde

comment:3 Changed 6 years ago by bartvde

  • State changed from None to Review

Tests pass in FF5 and IE8, please review.

comment:4 Changed 6 years ago by ahocevar

  • State changed from Review to Commit

Looks good to me. Please commit.

comment:5 Changed 6 years ago by bartvde

  • Resolution set to fixed
  • Status changed from assigned to closed
Note: See TracTickets for help on using tickets.