Posted by alex_b on November 4, 2009 at 11:21pm
| Project: | Nice Map |
| Version: | 6.x-1.x-dev |
| Component: | Code |
| Category: | bug report |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | needs review |
Issue Summary
In the case of adjustments for targets *wider* than the map, nicemap_mercator_projection::getmap() does correct adjustments in radians, but then converts back the wrong values into degrees:
<?php
$map['miny'] = rad2deg($map['miny']);
$map['maxy'] = rad2deg($map['maxy']);
?>It should be:
<?php
$map['minx'] = rad2deg($map['minx']);
$map['maxx'] = rad2deg($map['maxx']);
?>Patch coming.
Comments
#1
There you go.