Skip to content

Commit

Permalink
Openlayers: marker icons were not set correctly after mouse events, f…
Browse files Browse the repository at this point in the history
…ixed it.
  • Loading branch information
mar000 committed Apr 25, 2012
1 parent 2ca14f0 commit 9966ce7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions source/mxn.openlayers.core.js
Original file line number Diff line number Diff line change
Expand Up @@ -515,8 +515,8 @@ mxn.register('openlayers', {
});

if(this.hoverIconUrl) {
icon = this.iconUrl || 'http://openlayers.org/dev/img/marker-gold.png';
hovericon = this.hoverIconUrl;
var icon = this.iconUrl || 'http://openlayers.org/dev/img/marker-gold.png';
var hovericon = this.hoverIconUrl;
marker.events.register("mouseover", marker, function(event) {
marker.setUrl(hovericon);
});
Expand Down

0 comments on commit 9966ce7

Please sign in to comment.