Skip to content
Browse files

Bug: bounds is not always pre-calculated

  • Loading branch information...
1 parent 0594b59 commit b774b05497104ee803916cf4b649fa1ae25b6de8 Samuel Cochran committed Aug 2, 2011
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/main/js/bdrs/location.js
View
2 src/main/js/bdrs/location.js
@@ -34,7 +34,7 @@ bdrs.location.initLocationMapAndTable = function(locationRowURL) {
layer.destroyFeatures([feature]);
});
- var lonLat = feature.geometry.bounds.getCenterLonLat();
+ var lonLat = feature.geometry.getBounds().getCenterLonLat();
lonLat.transform(bdrs.map.GOOGLE_PROJECTION,
bdrs.map.WGS84_PROJECTION);

0 comments on commit b774b05

Please sign in to comment.
Something went wrong with that request. Please try again.