Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

Fix issue with bbox not transforming coords

  • Loading branch information...
commit b6e5a46a9797ad71871ce865d6e06d8d1c444101 1 parent 34501e8
@probins authored
Showing with 4 additions and 0 deletions.
  1. +4 −0 web/maps/js/page_routes.js
View
4 web/maps/js/page_routes.js
@@ -63,6 +63,10 @@ Map.specifics = {
notice: function (bounds) {
var ll = this.map.getLonLatFromPixel({ x: bounds.left, y: bounds.bottom });
var ur = this.map.getLonLatFromPixel({ x: bounds.right, y: bounds.top });
+ if (this.map.projection != 'EPSG:4326') {
+ ll.transform(this.map.projection, Map.wgs84);
+ ur.transform(this.map.projection, Map.wgs84);
+ }
var boundString = ll.lon+','+ll.lat+','+ur.lon+','+ur.lat;
$('bounds').innerHTML = boundString;
jQuery('#boundsConfirm').dialog('open');
Please sign in to comment.
Something went wrong with that request. Please try again.