Changeset 33185 for main/trunk/greenstone3
- Timestamp:
- 2019-06-21T20:37:49+12:00 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
main/trunk/greenstone3/web/interfaces/default/js/map-scripts.js
r33184 r33185 150 150 //Check which increment to use for longitude (i.e. 0.001, 0.01, 0.1 or 1 degree increments) 151 151 var lngDelta; 152 var lngPrecision; 152 153 for(var i = 3; i >= 0; i--) 153 154 { … … 205 206 var query = ""; 206 207 var iMax = Math.floor(latDistance / latDelta) + 1; 207 var jMax = Math.floor(lngDistance / lngDelta) + 1; ;208 var jMax = Math.floor(lngDistance / lngDelta) + 1; 208 209 for(var i = 0; i <= iMax; i++) //for(var i = 0; i <= Math.floor(latDistance / latDelta) + 1; i++) 209 210 { … … 355 356 { 356 357 if(doc.shapes) { 357 //console.log("@@@ making doc.shapes["+x+"] visible");358 358 for(var x = 0; x < doc.shapes.length; x++) { 359 359 doc.shapes[x].setVisible(true); … … 369 369 if(doc.shapes) { 370 370 console.log("@@@@ HERE IN doc.shapes"); 371 bounds = ShapesUtil.overlayBounds(doc.shapes); 371 var docSection_overlay_bounds = ShapesUtil.overlayBounds(doc.shapes); 372 // We now have the current document or document subsection's bounds. 373 // Use this to extend the overall bounds (the cumulative bounds for all nearby documents, 374 // or at least the cumulative bounds for this document with all its subsections). 375 bounds.extend(docSection_overlay_bounds.getNorthEast()); 376 bounds.extend(docSection_overlay_bounds.getSouthWest()); 372 377 } 373 378 else {
Note:
See TracChangeset
for help on using the changeset viewer.