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:
crschmidt
2006-05-20 20:39:33 +00:00
parent 334fb4c2ed
commit e7c6d4df19
7 changed files with 9 additions and 9 deletions
+1 -1
View File
@@ -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());
+1 -1
View File
@@ -62,7 +62,7 @@ OpenLayers.Layer.Text.prototype =
}
}
if (set) {
this.addMarker(new OpenLayers.Marker(icon, location));
this.addMarker(new OpenLayers.Marker(location,icon));
}
}
}
+1 -1
View File
@@ -26,7 +26,7 @@ OpenLayers.Marker.prototype = {
* @param {OpenLayers.Icon} icon
* @param {OpenLayers.LonLat lonlat
*/
initialize: function(icon, lonlat) {
initialize: function(lonlat, icon) {
this.icon = icon;
this.lonlat = lonlat;
this.object = OpenLayers.Util.createImage(
+1 -1
View File
@@ -96,7 +96,7 @@ OpenLayers.Tile.WFS.prototype =
var icon = new OpenLayers.Icon(feature.markerImage, feature.size);
//make new marker
var marker = new OpenLayers.Marker(icon, feature.lonlat);
var marker = new OpenLayers.Marker(feature.lonlat, icon);
this.addMarker(marker);
}