Change order of Marker creation from icon, latlon to latlon,icon. I don't know why I would have done it the other way.
git-svn-id: http://svn.openlayers.org/trunk/openlayers@215 dc9f47b5-9b13-0410-9fdd-eb0c1a62fdaf
This commit is contained in:
@@ -25,7 +25,7 @@ OpenLayers.Feature.prototype= {
|
||||
&& this.data.iconH) {
|
||||
var size = new OpenLayers.Size(this.data.iconW, this.data.iconH);
|
||||
var icon = new OpenLayers.Icon(this.data.iconURL, size);
|
||||
var marker = new OpenLayers.Marker(icon,this.lonlat);
|
||||
var marker = new OpenLayers.Marker(this.lonlat,icon);
|
||||
if (this.title) {
|
||||
var popup = new OpenLayers.Popup(this.latlon,
|
||||
this.getContentHTML());
|
||||
|
||||
Reference in New Issue
Block a user