Ticket #1730 (closed bug: fixed)
getComponentString causes getShortString to fail if a geometry has only two components
| Reported by: | openlayers | Owned by: | |
|---|---|---|---|
| Priority: | critical | Milestone: | 2.7 Release |
| Component: | Renderer.SVG | Version: | 2.7 RC1 |
| Keywords: | Cc: | ||
| State: | Complete |
Description
getShortString() fail if point parameter isn't define. It's can appends when call from getComponentsString()
getShortString must be change into:
getShortString: function(point) {
if( point ){
var resolution = this.getResolution();
var x = (point.x / resolution + this.left);
var y = (this.top - point.y / resolution);
if (this.inValidRange(x, y)) {
return x + "," + y;
} else {
return false;
}
}
return false;},
Attachments
Change History
Note: See
TracTickets for help on using
tickets.

