Skip to content

Commit

Permalink
Merge pull request openlayers#469 from elemoine/indexof
Browse files Browse the repository at this point in the history
Use Util.indexOf in Layer.Bing
  • Loading branch information
Éric Lemoine committed May 16, 2012
2 parents adcf5bb + 62bd06f commit af3615f
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion lib/OpenLayers/Layer/Bing.js
Original file line number Diff line number Diff line change
Expand Up @@ -224,7 +224,8 @@ OpenLayers.Layer.Bing = OpenLayers.Class(OpenLayers.Layer.XYZ, {
new OpenLayers.Projection("EPSG:4326")
);
var providers = res.imageryProviders,
zoom = this.serverResolutions.indexOf(this.getServerResolution()),
zoom = OpenLayers.Util.indexOf(this.serverResolutions,
this.getServerResolution()),
copyrights = "", provider, i, ii, j, jj, bbox, coverage;
for (i=0,ii=providers.length; i<ii; ++i) {
provider = providers[i];
Expand Down

0 comments on commit af3615f

Please sign in to comment.