make Icon's default offset 0,0. nullify a few more tests... :-)
git-svn-id: http://svn.openlayers.org/trunk/openlayers@414 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -25,13 +25,7 @@ OpenLayers.Icon.prototype = {
|
||||
initialize: function(url, size, offset) {
|
||||
this.size = size;
|
||||
this.url = url;
|
||||
|
||||
this.offset = offset;
|
||||
if ((size != null) && (offset == null)) {
|
||||
// default offset
|
||||
this.offset = new OpenLayers.Pixel(-(size.w / 2), -size.h);
|
||||
}
|
||||
|
||||
this.offset = (offset) ? offset : new OpenLayers.Pixel(0, 0);
|
||||
},
|
||||
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user